Go to the source code of this file.
Data Structures | |
union | digitPtr |
Digit pointer object; union of int* and float*. More... | |
struct | obj |
Struct to represent an object or canopy. More... | |
struct | taggedPtr |
Struct to combine int* and float* objects. Also contains a bool* which is used to indicate that the associated object needs to be updated. More... | |
union | distUnion |
Distribution union object; union of normal_distribution, uniform_real_distribution, and weibull_distribution. More... | |
struct | distribution |
Struct to combine distribution objects (flag: -1 = N/A, 0 = normal, 1 = uniform, 2 = weibull) (repeat: false = randomize once per recording, true = randomize for every image) More... | |
struct | bandGroup |
Band group struct. More... | |
struct | canopy |
Canopy struct. More... | |
struct | object |
Object struct. More... | |
struct | rig |
Rig struct. More... | |
class | ProjectBuilder |
Functions | |
void | BuildGeometry (const std::string &xml_input_file, PlantArchitecture *plant_architecture_ptr, helios::Context *context_ptr) |
void | InitializeRadiation (const std::string &xml_input_file, SolarPosition *solarposition_ptr, RadiationModel *radiation_ptr, helios::Context *context_ptr) |
void | InitializeEnergyBalance (const std::string &xml_input_file, BLConductanceModel *boundarylayerconductancemodel, EnergyBalanceModel *energybalancemodel, helios::Context *context_ptr) |
void | InitializeSimulation (const std::string &xml_input_file, helios::Context *context_ptr) |
std::string | vec_to_string (const helios::vec2 &v) |
Function to convert vector to string. | |
std::string | vec_to_string (const helios::vec3 &v) |
Function to convert vector to string. | |
std::string | vec_to_string (const helios::int2 &v) |
Function to convert vector to string. | |
std::vector< helios::vec3 > | interpolate (const std::vector< int > &keypoints, const std::vector< helios::vec3 > &positions, int num_points) |
Function to return interpolated vector based on keypoints. | |
void | toggle_button (const char *str_id, bool *v) |
ImGUI toggle button function. | |
std::string | file_dialog () |
Function to open file dialog. | |
std::string | save_as_file_dialog (std::vector< std::string > extensions) |
Function to open save as file dialog. | |
std::vector< std::string > | get_xml_node_values (const std::string &xml_file, const std::string &label_name, const std::string &node_name) |
Function to get node labels for a given set of nodes. | |
taggedPtr | createTaggedPtr (int *ptr, bool *dirty) |
Function to create a tagged pointer object from an int pointer. | |
taggedPtr | createTaggedPtr (float *ptr, bool *dirty) |
Function to create a tagged pointer object from a float pointer. | |
taggedPtr | createTaggedPtr (int *ptr) |
Function to create a tagged pointer object from an int pointer. | |
taggedPtr | createTaggedPtr (float *ptr) |
Function to create a tagged pointer object from a float pointer. | |
bool | parse_distribution (const std::string &input_string, distribution &converted_distribution) |
distribution | createDistribution (const std::normal_distribution< float > &dist, bool randomize_repeat) |
Function to create a distribution struct from a normal distribution. | |
distribution | createDistribution (const std::uniform_real_distribution< float > &dist, bool randomize_repeat) |
Function to create a distribution struct from a uniform real distribution. | |
distribution | createDistribution (const std::weibull_distribution< float > &dist, bool randomize_repeat) |
Function to create a distribution struct from a weibull distribution. | |
ProjectBuilder header.
Copyright (C) 2016-2025 Brian Bailey
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Definition in file ProjectBuilder.h.
distribution createDistribution | ( | const std::normal_distribution< float > & | dist, |
bool | randomize_repeat | ||
) |
Function to create a distribution struct from a normal distribution.
[in] | dist | Distribution |
[in] | randomize_repeat | If true, randomize for every image. |
Definition at line 5569 of file ProjectBuilder.cpp.
distribution createDistribution | ( | const std::uniform_real_distribution< float > & | dist, |
bool | randomize_repeat | ||
) |
Function to create a distribution struct from a uniform real distribution.
[in] | dist | Distribution |
[in] | randomize_repeat | If true, randomize for every image. |
Definition at line 5577 of file ProjectBuilder.cpp.
distribution createDistribution | ( | const std::weibull_distribution< float > & | dist, |
bool | randomize_repeat | ||
) |
Function to create a distribution struct from a weibull distribution.
[in] | dist | Distribution |
[in] | randomize_repeat | If true, randomize for every image. |
Definition at line 5585 of file ProjectBuilder.cpp.
taggedPtr createTaggedPtr | ( | float * | ptr | ) |
Function to create a tagged pointer object from a float pointer.
[in] | ptr | Float pointer |
Definition at line 5537 of file ProjectBuilder.cpp.
taggedPtr createTaggedPtr | ( | float * | ptr, |
bool * | dirty | ||
) |
Function to create a tagged pointer object from a float pointer.
[in] | ptr | Float pointer |
[in] | dirty | Bool used to determine if associated object needs update |
Definition at line 5553 of file ProjectBuilder.cpp.
taggedPtr createTaggedPtr | ( | int * | ptr | ) |
Function to create a tagged pointer object from an int pointer.
[in] | ptr | Int pointer |
Definition at line 5545 of file ProjectBuilder.cpp.
taggedPtr createTaggedPtr | ( | int * | ptr, |
bool * | dirty | ||
) |
Function to create a tagged pointer object from an int pointer.
[in] | ptr | Int pointer |
[in] | dirty | Bool used to determine if associated object needs update |
Definition at line 5561 of file ProjectBuilder.cpp.
std::string file_dialog | ( | ) |
Function to open file dialog.
Definition at line 158 of file ProjectBuilder.cpp.
std::vector< std::string > get_xml_node_values | ( | const std::string & | xml_file, |
const std::string & | label_name, | ||
const std::string & | node_name | ||
) |
Function to get node labels for a given set of nodes.
[in] | xml_file | Path to the XML file |
[in] | label_name | Name of the label |
[in] | node_name | Name of the XML nodes to get labels from |
Definition at line 353 of file ProjectBuilder.cpp.
void InitializeEnergyBalance | ( | const std::string & | xml_input_file, |
BLConductanceModel * | boundarylayerconductancemodel, | ||
EnergyBalanceModel * | energybalancemodel, | ||
helios::Context * | context_ptr | ||
) |
Definition at line 5 of file InitializeEnergyBalance.cpp.
void InitializeRadiation | ( | const std::string & | xml_input_file, |
SolarPosition * | solarposition_ptr, | ||
RadiationModel * | radiation_ptr, | ||
helios::Context * | context_ptr | ||
) |
Definition at line 6 of file InitializeRadiation.cpp.
void InitializeSimulation | ( | const std::string & | xml_input_file, |
helios::Context * | context_ptr | ||
) |
Definition at line 5 of file InitializeSimulation.cpp.
std::vector< helios::vec3 > interpolate | ( | const std::vector< int > & | keypoints, |
const std::vector< helios::vec3 > & | positions, | ||
int | num_points | ||
) |
Function to return interpolated vector based on keypoints.
[in] | keypoints | Vector of keypoints |
[in] | positions | Vector of position vectors |
[in] | num_points | Total number of points (including points in positions) |
bool parse_distribution | ( | const std::string & | input_string, |
distribution & | converted_distribution | ||
) |
Definition at line 1303 of file ProjectBuilder.cpp.
std::string save_as_file_dialog | ( | std::vector< std::string > | extensions | ) |
Function to open save as file dialog.
[in] | extensions | List of possible extensions |
Definition at line 230 of file ProjectBuilder.cpp.
void toggle_button | ( | const char * | str_id, |
bool * | v | ||
) |
ImGUI toggle button function.
[in] | str_id | String ID |
[in] | v | Boolean representing on or off |
Definition at line 124 of file ProjectBuilder.cpp.
std::string vec_to_string | ( | const helios::int2 & | v | ) |
Function to convert vector to string.
[in] | v | Vector input |
Definition at line 74 of file ProjectBuilder.cpp.
std::string vec_to_string | ( | const helios::vec2 & | v | ) |
Function to convert vector to string.
[in] | v | Vector input |
Definition at line 80 of file ProjectBuilder.cpp.
std::string vec_to_string | ( | const helios::vec3 & | v | ) |
Function to convert vector to string.
[in] | v | Vector input |
Definition at line 86 of file ProjectBuilder.cpp.