1.3.64
 
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
 
NitrogenParameters nitrogen_parameters
 Parameters for the nitrogen model.
 
float root_nitrogen_pool_gN = 0
 Root nitrogen pool (g N)
 
float available_nitrogen_pool_gN = 0
 Available nitrogen pool for leaves to draw from (g N)
 
float cumulative_N_uptake_gN = 0
 Cumulative nitrogen uptake tracking (g N)
 
std::map< std::string, ShootParametersshoot_types_snapshot
 
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 1697 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 1699 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 1749 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 1752 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 1758 of file PlantArchitecture.h.

◆ attraction_points

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

Vector of attraction point positions for this plant.

Definition at line 1746 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 1743 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 1755 of file PlantArchitecture.h.

◆ available_nitrogen_pool_gN

float PlantInstance::available_nitrogen_pool_gN = 0

Available nitrogen pool for leaves to draw from (g N)

Definition at line 1732 of file PlantArchitecture.h.

◆ base_position

helios::vec3 PlantInstance::base_position

Definition at line 1703 of file PlantArchitecture.h.

◆ carb_parameters

CarbohydrateParameters PlantInstance::carb_parameters

Definition at line 1722 of file PlantArchitecture.h.

◆ context_ptr

helios::Context* PlantInstance::context_ptr

Definition at line 1706 of file PlantArchitecture.h.

◆ cumulative_N_uptake_gN

float PlantInstance::cumulative_N_uptake_gN = 0

Cumulative nitrogen uptake tracking (g N)

Definition at line 1734 of file PlantArchitecture.h.

◆ current_age

float PlantInstance::current_age

Definition at line 1704 of file PlantArchitecture.h.

◆ dd_to_dormancy

float PlantInstance::dd_to_dormancy = 0

Definition at line 1716 of file PlantArchitecture.h.

◆ dd_to_dormancy_break

float PlantInstance::dd_to_dormancy_break = 0

Definition at line 1711 of file PlantArchitecture.h.

◆ dd_to_flower_initiation

float PlantInstance::dd_to_flower_initiation = 0

Definition at line 1712 of file PlantArchitecture.h.

◆ dd_to_flower_opening

float PlantInstance::dd_to_flower_opening = 0

Definition at line 1713 of file PlantArchitecture.h.

◆ dd_to_fruit_maturity

float PlantInstance::dd_to_fruit_maturity = 0

Definition at line 1715 of file PlantArchitecture.h.

◆ dd_to_fruit_set

float PlantInstance::dd_to_fruit_set = 0

Definition at line 1714 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 1708 of file PlantArchitecture.h.

◆ is_evergreen

bool PlantInstance::is_evergreen = false

Definition at line 1718 of file PlantArchitecture.h.

◆ max_age

float PlantInstance::max_age = 999

Definition at line 1720 of file PlantArchitecture.h.

◆ max_leaf_lifespan

float PlantInstance::max_leaf_lifespan = 1e6

Definition at line 1717 of file PlantArchitecture.h.

◆ nitrogen_parameters

NitrogenParameters PlantInstance::nitrogen_parameters

Parameters for the nitrogen model.

Definition at line 1727 of file PlantArchitecture.h.

◆ plant_name

std::string PlantInstance::plant_name

Definition at line 1707 of file PlantArchitecture.h.

◆ root_nitrogen_pool_gN

float PlantInstance::root_nitrogen_pool_gN = 0

Root nitrogen pool (g N)

Definition at line 1730 of file PlantArchitecture.h.

◆ shoot_tree

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

Definition at line 1702 of file PlantArchitecture.h.

◆ shoot_types_snapshot

std::map<std::string, ShootParameters> PlantInstance::shoot_types_snapshot

Snapshot of shoot parameters that were active when this plant was created This prevents parameter contamination between different plant types

Definition at line 1738 of file PlantArchitecture.h.

◆ time_since_dormancy

float PlantInstance::time_since_dormancy = 0

Definition at line 1705 of file PlantArchitecture.h.


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