Parameters defining the tomato plant canopy. More...
#include <CanopyGenerator.h>
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. | |
![]() | |
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) | |
![]() | |
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. | |
Parameters defining the tomato plant canopy.
Definition at line 555 of file CanopyGenerator.h.
TomatoParameters::TomatoParameters | ( | ) |
Default constructor.
Definition at line 967 of file CanopyGenerator.cpp.
TomatoParameters::TomatoParameters | ( | const pugi::xml_node | canopy_node | ) |
[in] | canopy_node | XML node containing the canopy parameters |
Definition at line 994 of file CanopyGenerator.cpp.
|
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.
|
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.
void TomatoParameters::readParametersFromXML | ( | const pugi::xml_node | canopy_node | ) |
Sets canopy parameters from the given XML node.
[in] | canopy_node | XML node containing the canopy parameters |
Definition at line 998 of file CanopyGenerator.cpp.
helios::RGBcolor TomatoParameters::fruit_color |
Color of tomato fruit.
Definition at line 608 of file CanopyGenerator.h.
float TomatoParameters::fruit_radius |
Radius of tomato fruit.
Definition at line 605 of file CanopyGenerator.h.
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.
float TomatoParameters::leaf_length |
Maximum width of leaves.
Definition at line 578 of file CanopyGenerator.h.
helios::int2 TomatoParameters::leaf_subdivisions |
Number of sub-division segments per leaf.
Definition at line 581 of file CanopyGenerator.h.
std::string TomatoParameters::leaf_texture_file |
Path to texture map file for leaves.
Definition at line 584 of file CanopyGenerator.h.
helios::int2 TomatoParameters::plant_count |
Number of crowns/plants in the x- and y-directions.
Definition at line 602 of file CanopyGenerator.h.
float TomatoParameters::plant_height |
Height of the plant.
Definition at line 599 of file CanopyGenerator.h.
float TomatoParameters::plant_spacing |
Spacing between adjacent plants along the row direction.
Definition at line 593 of file CanopyGenerator.h.
float TomatoParameters::row_spacing |
Spacing between plant rows.
Definition at line 596 of file CanopyGenerator.h.
helios::RGBcolor TomatoParameters::shoot_color |
Color of shoots.
Definition at line 587 of file CanopyGenerator.h.
int TomatoParameters::shoot_subdivisions |
Number of radial subdivisions for shoot tubes.
Definition at line 590 of file CanopyGenerator.h.