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

Public Member Functions

 PlantInstance (const helios::vec3 &a_base_position, float a_current_age, const std::string &a_plant_name, helios::Context *a_context_ptr)
 

Data Fields

std::vector< std::shared_ptr< Shoot > > shoot_tree
 
helios::vec3 base_position
 
float current_age
 
float time_since_dormancy = 0
 
helios::Contextcontext_ptr
 
std::string plant_name
 
std::pair< std::string, float > epicormic_shoot_probability_perlength_per_day
 
float dd_to_dormancy_break = 0
 
float dd_to_flower_initiation = 0
 
float dd_to_flower_opening = 0
 
float dd_to_fruit_set = 0
 
float dd_to_fruit_maturity = 0
 
float dd_to_dormancy = 0
 
float max_leaf_lifespan = 1e6
 
bool is_evergreen = false
 
float max_age = 999
 
CarbohydrateParameters carb_parameters
 
bool attraction_points_enabled = false
 Flag indicating if attraction points are enabled for this plant.
 
std::vector< helios::vec3attraction_points
 Vector of attraction point positions for this plant.
 
float attraction_cone_half_angle_rad = 80.f * M_PI / 180.f
 Attraction detection cone half-angle in radians for this plant.
 
float attraction_cone_height = 0.1f
 Attraction detection cone height in meters for this plant.
 
float attraction_weight = 0.6f
 Weight factor for attraction vs natural growth for this plant (0.0 = ignore attraction, 1.0 = full attraction)
 
float attraction_obstacle_reduction_factor = 0.5f
 Reduction factor for attraction weight when hard obstacles are present for this plant (0.0 = no attraction, 1.0 = full attraction)
 

Detailed Description

Definition at line 1570 of file PlantArchitecture.h.

Constructor & Destructor Documentation

◆ PlantInstance()

PlantInstance::PlantInstance ( const helios::vec3 a_base_position,
float  a_current_age,
const std::string &  a_plant_name,
helios::Context a_context_ptr 
)
inline

Definition at line 1572 of file PlantArchitecture.h.

Field Documentation

◆ attraction_cone_half_angle_rad

float PlantInstance::attraction_cone_half_angle_rad = 80.f * M_PI / 180.f

Attraction detection cone half-angle in radians for this plant.

Definition at line 1606 of file PlantArchitecture.h.

◆ attraction_cone_height

float PlantInstance::attraction_cone_height = 0.1f

Attraction detection cone height in meters for this plant.

Definition at line 1609 of file PlantArchitecture.h.

◆ attraction_obstacle_reduction_factor

float PlantInstance::attraction_obstacle_reduction_factor = 0.5f

Reduction factor for attraction weight when hard obstacles are present for this plant (0.0 = no attraction, 1.0 = full attraction)

Definition at line 1615 of file PlantArchitecture.h.

◆ attraction_points

std::vector<helios::vec3> PlantInstance::attraction_points

Vector of attraction point positions for this plant.

Definition at line 1603 of file PlantArchitecture.h.

◆ attraction_points_enabled

bool PlantInstance::attraction_points_enabled = false

Flag indicating if attraction points are enabled for this plant.

Definition at line 1600 of file PlantArchitecture.h.

◆ attraction_weight

float PlantInstance::attraction_weight = 0.6f

Weight factor for attraction vs natural growth for this plant (0.0 = ignore attraction, 1.0 = full attraction)

Definition at line 1612 of file PlantArchitecture.h.

◆ base_position

helios::vec3 PlantInstance::base_position

Definition at line 1576 of file PlantArchitecture.h.

◆ carb_parameters

CarbohydrateParameters PlantInstance::carb_parameters

Definition at line 1595 of file PlantArchitecture.h.

◆ context_ptr

helios::Context* PlantInstance::context_ptr

Definition at line 1579 of file PlantArchitecture.h.

◆ current_age

float PlantInstance::current_age

Definition at line 1577 of file PlantArchitecture.h.

◆ dd_to_dormancy

float PlantInstance::dd_to_dormancy = 0

Definition at line 1589 of file PlantArchitecture.h.

◆ dd_to_dormancy_break

float PlantInstance::dd_to_dormancy_break = 0

Definition at line 1584 of file PlantArchitecture.h.

◆ dd_to_flower_initiation

float PlantInstance::dd_to_flower_initiation = 0

Definition at line 1585 of file PlantArchitecture.h.

◆ dd_to_flower_opening

float PlantInstance::dd_to_flower_opening = 0

Definition at line 1586 of file PlantArchitecture.h.

◆ dd_to_fruit_maturity

float PlantInstance::dd_to_fruit_maturity = 0

Definition at line 1588 of file PlantArchitecture.h.

◆ dd_to_fruit_set

float PlantInstance::dd_to_fruit_set = 0

Definition at line 1587 of file PlantArchitecture.h.

◆ epicormic_shoot_probability_perlength_per_day

std::pair<std::string, float> PlantInstance::epicormic_shoot_probability_perlength_per_day

Definition at line 1581 of file PlantArchitecture.h.

◆ is_evergreen

bool PlantInstance::is_evergreen = false

Definition at line 1591 of file PlantArchitecture.h.

◆ max_age

float PlantInstance::max_age = 999

Definition at line 1593 of file PlantArchitecture.h.

◆ max_leaf_lifespan

float PlantInstance::max_leaf_lifespan = 1e6

Definition at line 1590 of file PlantArchitecture.h.

◆ plant_name

std::string PlantInstance::plant_name

Definition at line 1580 of file PlantArchitecture.h.

◆ shoot_tree

std::vector<std::shared_ptr<Shoot> > PlantInstance::shoot_tree

Definition at line 1575 of file PlantArchitecture.h.

◆ time_since_dormancy

float PlantInstance::time_since_dormancy = 0

Definition at line 1578 of file PlantArchitecture.h.


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