API Documentation
Loading...
Searching...
No Matches
DXFBlockWriter Class Reference

A ModelIterator that iterates over each object in the model heirarchy turning them into nested BlockData objects. More...

#include <DXFBlockWriter.h>

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

Public Member Functions

 DXFBlockWriter (Dictionary< UUID, BlockData > &block_data, CADGeometryWriter &geo_options)
 
void insertObject (const Model &model, uint04 parent_handle=Constant< uint04 >::Invalid)
 
ParseResult postProcess (Model &model) final override
 
ParseResult process (Model &model) final override
 
- 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

const Dictionary< UUID, BlockData > & block_data
 
CADGeometryWritergeo_options
 
const FactoryParametersparams
 
Buffer< CADWriteModifier * > write_modifiers
 
DXFWriterwriter
 
- 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
 

Additional Inherited Members

- Public Types inherited from ModelIterator
enum  ParseResult { e_continue_parsing , e_do_not_parse_children , e_finish_parsing }
 
- Protected Member Functions inherited from ModelIterator
virtual void parseAllModels ()
 
Model popNextModel ()
 
virtual ParseResult process (Model &model, Geometry &geo)
 
virtual ParseResult process (Model &model, Material &mat)
 
void removeFromPostProcessStack ()
 
- Protected Attributes inherited from ModelIterator
Buffer< uint04m_model_parent_child_count
 
Buffer< Modelm_model_parent_stack
 
Buffer< Modelm_model_stack
 

Detailed Description

A ModelIterator that iterates over each object in the model heirarchy turning them into nested BlockData objects.


Constructor & Destructor Documentation

◆ DXFBlockWriter()

DXFBlockWriter ( Dictionary< UUID, BlockData > & block_data,
CADGeometryWriter & geo_options )

Member Function Documentation

◆ insertObject()

void insertObject ( const Model & model,
uint04 parent_handle = Constantuint04 >::Invalid )

◆ postProcess()

ParseResult postProcess ( Model & model)
finaloverridevirtual

Reimplemented from ModelIterator.

◆ process()

ParseResult process ( Model & model)
finaloverridevirtual

Reimplemented from ModelIterator.

Member Data Documentation

◆ block_data

const Dictionary<UUID, BlockData>& block_data

◆ geo_options

CADGeometryWriter& geo_options

◆ params

const FactoryParameters& params

◆ write_modifiers

Buffer<CADWriteModifier*> write_modifiers

◆ writer

DXFWriter& writer

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