1.3.49
 
Loading...
Searching...
No Matches
TomatoParameters Struct Reference

Parameters defining the tomato plant canopy. More...

#include <CanopyGenerator.h>

Inheritance diagram for TomatoParameters:
BaseCanopyParameters

Public Member Functions

 TomatoParameters ()
 Default constructor.
 
 TomatoParameters (const pugi::xml_node canopy_node)
 
void readParametersFromXML (const pugi::xml_node canopy_node)
 Sets canopy parameters from the given XML node.
 
void buildPlant (CanopyGenerator &canopy_generator, helios::vec3 origin) override
 Makes the given Canopy generator build a single plant of our canopy type with our parameters at the given position.
 
void buildCanopy (CanopyGenerator &canopy_generator) override
 Makes the given Canopy generator build a canopy of our type with our parameters.
 
- Public Member Functions inherited from BaseCanopyParameters
 BaseCanopyParameters ()
 Default constructor.
 
 BaseCanopyParameters (const pugi::xml_node canopy_node)
 
void readParametersFromXML (const pugi::xml_node canopy_node)
 Sets canopy parameters from the given XML node.
 

Data Fields

float leaf_length
 Maximum width of leaves.
 
helios::int2 leaf_subdivisions
 Number of sub-division segments per leaf.
 
std::string leaf_texture_file
 Path to texture map file for leaves.
 
helios::RGBcolor shoot_color
 Color of shoots.
 
int shoot_subdivisions
 Number of radial subdivisions for shoot tubes.
 
float plant_spacing
 Spacing between adjacent plants along the row direction.
 
float row_spacing
 Spacing between plant rows.
 
float plant_height
 Height of the plant.
 
helios::int2 plant_count
 Number of crowns/plants in the x- and y-directions.
 
float fruit_radius
 Radius of tomato fruit.
 
helios::RGBcolor fruit_color
 Color of tomato fruit.
 
uint fruit_subdivisions
 Number of azimuthal and zenithal subdivisions making up fruit (will result in roughly fruit_subdivisions^2 triangles per fruit)
 
- Data Fields inherited from BaseCanopyParameters
helios::vec3 canopy_origin
 Cartesian (x,y,z) coordinate of the bottom center point of the canopy (i.e., specifying z=0 places the bottom surface of the canopy at z=0).
 
float canopy_rotation
 Azimuthal rotation of the canopy about the canopy origin. Note that if canopy_rotation is not equal to zero, the plant_spacing and plant_count parameters are defined in the x- and y-directions before rotation.
 

Detailed Description

Parameters defining the tomato plant canopy.

Definition at line 555 of file CanopyGenerator.h.

Constructor & Destructor Documentation

◆ TomatoParameters() [1/2]

TomatoParameters::TomatoParameters ( )

Default constructor.

Definition at line 967 of file CanopyGenerator.cpp.

◆ TomatoParameters() [2/2]

TomatoParameters::TomatoParameters ( const pugi::xml_node  canopy_node)
Parameters
[in]canopy_nodeXML node containing the canopy parameters

Definition at line 994 of file CanopyGenerator.cpp.

Member Function Documentation

◆ buildCanopy()

void TomatoParameters::buildCanopy ( CanopyGenerator canopy_generator)
overridevirtual

Makes the given Canopy generator build a canopy of our type with our parameters.

Implements BaseCanopyParameters.

Definition at line 1067 of file CanopyGenerator.cpp.

◆ buildPlant()

void TomatoParameters::buildPlant ( CanopyGenerator canopy_generator,
helios::vec3  origin 
)
overridevirtual

Makes the given Canopy generator build a single plant of our canopy type with our parameters at the given position.

Implements BaseCanopyParameters.

Definition at line 1063 of file CanopyGenerator.cpp.

◆ readParametersFromXML()

void TomatoParameters::readParametersFromXML ( const pugi::xml_node  canopy_node)

Sets canopy parameters from the given XML node.

Parameters
[in]canopy_nodeXML node containing the canopy parameters

Definition at line 998 of file CanopyGenerator.cpp.

Field Documentation

◆ fruit_color

helios::RGBcolor TomatoParameters::fruit_color

Color of tomato fruit.

Definition at line 608 of file CanopyGenerator.h.

◆ fruit_radius

float TomatoParameters::fruit_radius

Radius of tomato fruit.

Definition at line 605 of file CanopyGenerator.h.

◆ fruit_subdivisions

uint TomatoParameters::fruit_subdivisions

Number of azimuthal and zenithal subdivisions making up fruit (will result in roughly fruit_subdivisions^2 triangles per fruit)

Definition at line 611 of file CanopyGenerator.h.

◆ leaf_length

float TomatoParameters::leaf_length

Maximum width of leaves.

Definition at line 578 of file CanopyGenerator.h.

◆ leaf_subdivisions

helios::int2 TomatoParameters::leaf_subdivisions

Number of sub-division segments per leaf.

Definition at line 581 of file CanopyGenerator.h.

◆ leaf_texture_file

std::string TomatoParameters::leaf_texture_file

Path to texture map file for leaves.

Definition at line 584 of file CanopyGenerator.h.

◆ plant_count

helios::int2 TomatoParameters::plant_count

Number of crowns/plants in the x- and y-directions.

Definition at line 602 of file CanopyGenerator.h.

◆ plant_height

float TomatoParameters::plant_height

Height of the plant.

Definition at line 599 of file CanopyGenerator.h.

◆ plant_spacing

float TomatoParameters::plant_spacing

Spacing between adjacent plants along the row direction.

Definition at line 593 of file CanopyGenerator.h.

◆ row_spacing

float TomatoParameters::row_spacing

Spacing between plant rows.

Definition at line 596 of file CanopyGenerator.h.

◆ shoot_color

helios::RGBcolor TomatoParameters::shoot_color

Color of shoots.

Definition at line 587 of file CanopyGenerator.h.

◆ shoot_subdivisions

int TomatoParameters::shoot_subdivisions

Number of radial subdivisions for shoot tubes.

Definition at line 590 of file CanopyGenerator.h.


The documentation for this struct was generated from the following files: