API Documentation
|
A base class for easily transversing a model heirarchy, applying an overritten function at each level or for each object. More...
#include <ModelIterator.h>
Public Types | |
enum | ParseResult { e_continue_parsing , e_do_not_parse_children , e_finish_parsing } |
Public Member Functions | |
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 | |
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 Member Functions | |
virtual void | parseAllModels () |
Model | popNextModel () |
virtual ParseResult | postProcess (Model &model) |
virtual ParseResult | process (Model &model) |
virtual ParseResult | process (Model &model, Geometry &geo) |
virtual ParseResult | process (Model &model, Material &mat) |
void | removeFromPostProcessStack () |
Protected Attributes | |
Buffer< uint04 > | m_model_parent_child_count |
Buffer< Model > | m_model_parent_stack |
Buffer< Model > | m_model_stack |
A base class for easily transversing a model heirarchy, applying an overritten function at each level or for each object.
enum ParseResult |
ModelIterator | ( | ) |
|
explicit |
|
explicit |
Model currentModel | ( | ) | const |
void parseAll | ( | ) |
void parseAll | ( | const Model & | model | ) |
|
protectedvirtual |
ParseResult parseNext | ( | ) |
|
protected |
|
protectedvirtual |
Reimplemented in DXFBlockWriter, and SelectionInfo.
|
protectedvirtual |
Reimplemented in BasicModelIterator, DesignParameterExecutor, DesignParameterFinder, DXFBlockWriter, DXFTableWriteIterator, and SelectionInfo.
|
protectedvirtual |
Reimplemented in BasicModelIterator, DesignParameterExecutor, DesignParameterFinder, DXFTableWriteIterator, and SelectionInfo.
|
protectedvirtual |
Reimplemented in BasicModelIterator, DesignParameterExecutor, DesignParameterFinder, and SelectionInfo.
|
protected |
bool depth_first = true |
bool is_recursive = true |
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 |