Parameters defining the bean plant canopy. More...
#include <CanopyGenerator.h>
Public Member Functions | |
BeanParameters () | |
Default constructor. | |
BeanParameters (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 | stem_radius |
Radius of main stem at base. | |
float | stem_length |
Length of stems before splitting to leaflets. | |
float | leaflet_length |
Length of the leaflet from base to tip leaf. | |
float | plant_spacing |
Spacing between adjacent plants along the row direction. | |
float | row_spacing |
Spacing between plant rows. | |
helios::int2 | plant_count |
Number of crowns/plants in the x- and y-directions. | |
float | germination_probability |
Probability that a plant in the canopy germinated. | |
float | pod_length |
Length of bean pods. | |
helios::RGBcolor | pod_color |
Color of bean pods. | |
uint | pod_subdivisions |
Number of lengthwise subdivisions making up pods. | |
![]() | |
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 bean plant canopy.
Definition at line 969 of file CanopyGenerator.h.
BeanParameters::BeanParameters | ( | ) |
Default constructor.
Definition at line 1755 of file CanopyGenerator.cpp.
BeanParameters::BeanParameters | ( | const pugi::xml_node | canopy_node | ) |
[in] | canopy_node | XML node containing the canopy parameters |
Definition at line 1788 of file CanopyGenerator.cpp.
|
overridevirtual |
Makes the given Canopy generator build a canopy of our type with our parameters.
Implements BaseCanopyParameters.
Definition at line 1875 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 1871 of file CanopyGenerator.cpp.
void BeanParameters::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 1792 of file CanopyGenerator.cpp.
float BeanParameters::germination_probability |
Probability that a plant in the canopy germinated.
Definition at line 1025 of file CanopyGenerator.h.
float BeanParameters::leaf_length |
Maximum width of leaves.
Definition at line 992 of file CanopyGenerator.h.
helios::int2 BeanParameters::leaf_subdivisions |
Number of sub-division segments per leaf.
Definition at line 995 of file CanopyGenerator.h.
std::string BeanParameters::leaf_texture_file |
Path to texture map file for leaves.
Definition at line 998 of file CanopyGenerator.h.
float BeanParameters::leaflet_length |
Length of the leaflet from base to tip leaf.
Definition at line 1013 of file CanopyGenerator.h.
helios::int2 BeanParameters::plant_count |
Number of crowns/plants in the x- and y-directions.
Definition at line 1022 of file CanopyGenerator.h.
float BeanParameters::plant_spacing |
Spacing between adjacent plants along the row direction.
Definition at line 1016 of file CanopyGenerator.h.
helios::RGBcolor BeanParameters::pod_color |
Color of bean pods.
Definition at line 1031 of file CanopyGenerator.h.
float BeanParameters::pod_length |
Length of bean pods.
Definition at line 1028 of file CanopyGenerator.h.
uint BeanParameters::pod_subdivisions |
Number of lengthwise subdivisions making up pods.
Definition at line 1034 of file CanopyGenerator.h.
float BeanParameters::row_spacing |
Spacing between plant rows.
Definition at line 1019 of file CanopyGenerator.h.
helios::RGBcolor BeanParameters::shoot_color |
Color of shoots.
Definition at line 1001 of file CanopyGenerator.h.
int BeanParameters::shoot_subdivisions |
Number of radial subdivisions for shoot tubes.
Definition at line 1004 of file CanopyGenerator.h.
float BeanParameters::stem_length |
Length of stems before splitting to leaflets.
Definition at line 1010 of file CanopyGenerator.h.
float BeanParameters::stem_radius |
Radius of main stem at base.
Definition at line 1007 of file CanopyGenerator.h.