API Documentation
Loading...
Searching...
No Matches
DesignParameterSetter Class Referencefinal

Classes for conveniently setting parameters for a series of DesignObjects in the model hierarchy. More...

#include <DesignParameterAccumulator.h>

Inheritance diagram for DesignParameterSetter:
[legend]
Collaboration diagram for DesignParameterSetter:
[legend]

Public Types

enum  SetMode { e_set_from_strings }
 
- Public Types inherited from ModelIterator
enum  ParseResult { e_continue_parsing , e_do_not_parse_children , e_finish_parsing }
 

Public Member Functions

 DesignParameterSetter (const DesignParameter &design_parameter, SetMode mode)
 
void setToDefaults (const DesignObject &object)
 
- Public Member Functions inherited from ModelIterator
Model currentModel () const
 
 ModelIterator ()
 
 ModelIterator (Buffer< Model > models)
 
 ModelIterator (const Model &model)
 
void parseAll ()
 
void parseAll (const Buffer< Model > &models)
 
void parseAll (const Model &model)
 
ParseResult parseNext ()
 

Public Attributes

String default_value
 
Buffer< fltp08float_values
 
Buffer< uint04indices
 
bool is_normal_prop = false
 
uint04 max_num_of_values = Constant<uint04>::Max
 
DesignParameter parameter
 
bool recursive = true
 
bool recursive_matrix = false
 
SetMode set_mode
 
uint04 set_offset = 0
 
Buffer< Stringstring_values
 
uint04 total_count = 0
 
Matrix< fltp08transform = Matrix<fltp08>(1.0)
 
bool use_defaults = false
 
- Public Attributes inherited from ModelIterator
bool depth_first = true
 
std::function< bool(const Model &, const Geometry &)> geo_filter
 
bool is_recursive = true
 
std::function< bool(const Model &, const Material &)> material_filter
 
PrimitiveProperty material_property = PrimitiveProperty::Solid
 
std::function< bool(const Model &)> model_filter
 
bool post_process_model = false
 
bool process_geometry = true
 
bool process_material = false
 
bool process_model = true
 
bool use_unit = false
 

Protected Attributes

bool is_design_index = false
 
bool is_matrix_prop = false
 
bool is_special_field = false
 
bool is_vertex_index = false
 
DesignObject::DesignObjectType m_design_type = DesignObject::DesignObjectType::e_model
 
uint04 property_index = Constant<uint04>::Invalid
 
fltp08 total_value_c = 0.0
 
- Protected Attributes inherited from ModelIterator
Buffer< uint04m_model_parent_child_count
 
Buffer< Modelm_model_parent_stack
 
Buffer< Modelm_model_stack
 

Additional Inherited Members

- Protected Member Functions inherited from ModelIterator
virtual void parseAllModels ()
 
Model popNextModel ()
 
virtual ParseResult postProcess (Model &model)
 
void removeFromPostProcessStack ()
 

Detailed Description

Classes for conveniently setting parameters for a series of DesignObjects in the model hierarchy.


Member Enumeration Documentation

◆ SetMode

enum SetMode
Enumerator
e_set_from_strings 

Constructor & Destructor Documentation

◆ DesignParameterSetter()

DesignParameterSetter ( const DesignParameter & design_parameter,
SetMode mode )
explicit

Member Function Documentation

◆ setToDefaults()

void setToDefaults ( const DesignObject & object)

Member Data Documentation

◆ default_value

String default_value

◆ float_values

Buffer<fltp08> float_values

◆ indices

Buffer<uint04> indices

◆ is_design_index

bool is_design_index = false
protected

◆ is_matrix_prop

bool is_matrix_prop = false
protected

◆ is_normal_prop

bool is_normal_prop = false

◆ is_special_field

bool is_special_field = false
protected

◆ is_vertex_index

bool is_vertex_index = false
protected

◆ m_design_type

◆ max_num_of_values

uint04 max_num_of_values = Constant<uint04>::Max

◆ parameter

DesignParameter parameter

◆ property_index

uint04 property_index = Constant<uint04>::Invalid
protected

◆ recursive

bool recursive = true

◆ recursive_matrix

bool recursive_matrix = false

◆ set_mode

SetMode set_mode

◆ set_offset

uint04 set_offset = 0

◆ string_values

Buffer<String> string_values

◆ total_count

uint04 total_count = 0

◆ total_value_c

fltp08 total_value_c = 0.0
protected

◆ transform

Matrix<fltp08> transform = Matrix<fltp08>(1.0)

◆ use_defaults

bool use_defaults = false

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