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

#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)
 
ParseResult process (Model &model) final override
 
ParseResult process (Model &model, Geometry &geo) final override
 
ParseResult process (Model &model, Material &mat) final override
 
void _parseAll () final override
 
void setToDefaults (const DesignObject &object)
 
void clear ()
 
- Public Member Functions inherited from ModelIterator
 ModelIterator ()
 
 ModelIterator (const Model &model)
 
 ModelIterator (Buffer< Model > models)
 
void parseAll (const Model &model)
 
void parseAll (const Buffer< Model > &models)
 
void parseAll ()
 
ParseResult parseNext ()
 
Model currentModel () const
 

Public Attributes

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

Protected Member Functions

const StringcurrentValue () const
 
bool _setupValues (const DesignObject &object)
 
void _set (DesignObject &object)
 
Matrix< fltp08_matrix (const DesignObject &object) const
 
void _setVertices (Geometry &geo, TableColumn &column)
 
void _set (DesignObject &object, uint04 row, TableColumn &column)
 
- Protected Member Functions inherited from ModelIterator
virtual ParseResult postProcess (Model &model)
 
void removeFromPostProcessStack ()
 
Model popNextModel ()
 

Protected Attributes

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

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

◆ _matrix()

Matrix< fltp08 > _matrix ( const DesignObject & object) const
protected

◆ _parseAll()

void _parseAll ( )
finaloverridevirtual

Reimplemented from ModelIterator.

◆ _set() [1/2]

void _set ( DesignObject & object)
protected

◆ _set() [2/2]

void _set ( DesignObject & object,
uint04 row,
TableColumn & column )
protected

◆ _setupValues()

bool _setupValues ( const DesignObject & object)
protected

◆ _setVertices()

void _setVertices ( Geometry & geo,
TableColumn & column )
protected

◆ clear()

void clear ( )

◆ currentValue()

const String & currentValue ( ) const
protected

◆ process() [1/3]

ModelIterator::ParseResult process ( Model & model)
finaloverridevirtual

Reimplemented from ModelIterator.

◆ process() [2/3]

ModelIterator::ParseResult process ( Model & model,
Geometry & geo )
finaloverridevirtual

Reimplemented from ModelIterator.

◆ process() [3/3]

ModelIterator::ParseResult process ( Model & model,
Material & mat )
finaloverridevirtual

Reimplemented from ModelIterator.

◆ 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>::NaN
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 files: