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

Parameters defining the strawberry plant canopy. More...

#include <CanopyGenerator.h>

Inheritance diagram for StrawberryParameters:
BaseCanopyParameters

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.
 
- 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 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.
 
- 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 strawberry plant canopy.

Definition at line 615 of file CanopyGenerator.h.

Constructor & Destructor Documentation

◆ StrawberryParameters() [1/2]

StrawberryParameters::StrawberryParameters ( )

Default constructor.

Definition at line 1071 of file CanopyGenerator.cpp.

◆ StrawberryParameters() [2/2]

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

Definition at line 1104 of file CanopyGenerator.cpp.

Member Function Documentation

◆ buildCanopy()

void StrawberryParameters::buildCanopy ( CanopyGenerator canopy_generator)
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.

◆ buildPlant()

void StrawberryParameters::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 1182 of file CanopyGenerator.cpp.

◆ readParametersFromXML()

void StrawberryParameters::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 1108 of file CanopyGenerator.cpp.

Field Documentation

◆ clusters_per_stem

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.

◆ fruit_radius

float StrawberryParameters::fruit_radius

Radius of strawberry fruit.

Definition at line 671 of file CanopyGenerator.h.

◆ fruit_subdivisions

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.

◆ fruit_texture_file

std::string StrawberryParameters::fruit_texture_file

Texture map for strawberry fruit.

Definition at line 674 of file CanopyGenerator.h.

◆ leaf_length

float StrawberryParameters::leaf_length

Maximum width of leaves.

Definition at line 638 of file CanopyGenerator.h.

◆ leaf_subdivisions

helios::int2 StrawberryParameters::leaf_subdivisions

Number of sub-division segments per leaf.

Definition at line 641 of file CanopyGenerator.h.

◆ leaf_texture_file

std::string StrawberryParameters::leaf_texture_file

Path to texture map file for leaves.

Definition at line 644 of file CanopyGenerator.h.

◆ plant_count

helios::int2 StrawberryParameters::plant_count

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

Definition at line 668 of file CanopyGenerator.h.

◆ plant_height

float StrawberryParameters::plant_height

Height of the plant.

Definition at line 665 of file CanopyGenerator.h.

◆ plant_spacing

float StrawberryParameters::plant_spacing

Spacing between adjacent plants along the row direction.

Definition at line 659 of file CanopyGenerator.h.

◆ row_spacing

float StrawberryParameters::row_spacing

Spacing between plant rows.

Definition at line 662 of file CanopyGenerator.h.

◆ stem_color

helios::RGBcolor StrawberryParameters::stem_color

Color of stems.

Definition at line 647 of file CanopyGenerator.h.

◆ stem_radius

float StrawberryParameters::stem_radius

Radius of stems.

Definition at line 656 of file CanopyGenerator.h.

◆ stem_subdivisions

int StrawberryParameters::stem_subdivisions

Number of radial subdivisions for stem tubes.

Definition at line 650 of file CanopyGenerator.h.

◆ stems_per_plant

int StrawberryParameters::stems_per_plant

Number of stems per plant.

Definition at line 653 of file CanopyGenerator.h.


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