Parameters defining the strawberry plant canopy. More...
#include <CanopyGenerator.h>
Public Member Functions | |
StrawberryParameters () | |
Default constructor. | |
StrawberryParameters (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 | stem_color |
Color of stems. | |
int | stem_subdivisions |
Number of radial subdivisions for stem tubes. | |
int | stems_per_plant |
Number of stems per plant. | |
float | stem_radius |
Radius of stems. | |
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 strawberry fruit. | |
std::string | fruit_texture_file |
Texture map for strawberry fruit. | |
uint | fruit_subdivisions |
Number of azimuthal and zenithal subdivisions making up fruit (will result in roughly fruit_subdivisions^2 triangles per fruit) | |
float | clusters_per_stem |
Number of strawberry clusters per plant stem. Clusters randomly have 1, 2, or 3 berries. | |
![]() | |
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 strawberry plant canopy.
Definition at line 615 of file CanopyGenerator.h.
StrawberryParameters::StrawberryParameters | ( | ) |
Default constructor.
Definition at line 1071 of file CanopyGenerator.cpp.
StrawberryParameters::StrawberryParameters | ( | const pugi::xml_node | canopy_node | ) |
[in] | canopy_node | XML node containing the canopy parameters |
Definition at line 1104 of file CanopyGenerator.cpp.
|
overridevirtual |
Makes the given Canopy generator build a canopy of our type with our parameters.
Implements BaseCanopyParameters.
Definition at line 1186 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 1182 of file CanopyGenerator.cpp.
void StrawberryParameters::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 1108 of file CanopyGenerator.cpp.
float StrawberryParameters::clusters_per_stem |
Number of strawberry clusters per plant stem. Clusters randomly have 1, 2, or 3 berries.
Definition at line 680 of file CanopyGenerator.h.
float StrawberryParameters::fruit_radius |
Radius of strawberry fruit.
Definition at line 671 of file CanopyGenerator.h.
uint StrawberryParameters::fruit_subdivisions |
Number of azimuthal and zenithal subdivisions making up fruit (will result in roughly fruit_subdivisions^2 triangles per fruit)
Definition at line 677 of file CanopyGenerator.h.
std::string StrawberryParameters::fruit_texture_file |
Texture map for strawberry fruit.
Definition at line 674 of file CanopyGenerator.h.
float StrawberryParameters::leaf_length |
Maximum width of leaves.
Definition at line 638 of file CanopyGenerator.h.
helios::int2 StrawberryParameters::leaf_subdivisions |
Number of sub-division segments per leaf.
Definition at line 641 of file CanopyGenerator.h.
std::string StrawberryParameters::leaf_texture_file |
Path to texture map file for leaves.
Definition at line 644 of file CanopyGenerator.h.
helios::int2 StrawberryParameters::plant_count |
Number of crowns/plants in the x- and y-directions.
Definition at line 668 of file CanopyGenerator.h.
float StrawberryParameters::plant_height |
Height of the plant.
Definition at line 665 of file CanopyGenerator.h.
float StrawberryParameters::plant_spacing |
Spacing between adjacent plants along the row direction.
Definition at line 659 of file CanopyGenerator.h.
float StrawberryParameters::row_spacing |
Spacing between plant rows.
Definition at line 662 of file CanopyGenerator.h.
helios::RGBcolor StrawberryParameters::stem_color |
Color of stems.
Definition at line 647 of file CanopyGenerator.h.
float StrawberryParameters::stem_radius |
Radius of stems.
Definition at line 656 of file CanopyGenerator.h.
int StrawberryParameters::stem_subdivisions |
Number of radial subdivisions for stem tubes.
Definition at line 650 of file CanopyGenerator.h.
int StrawberryParameters::stems_per_plant |
Number of stems per plant.
Definition at line 653 of file CanopyGenerator.h.