NDEVR
API Documentation
CADWriteModifierabstract

An interface that can handle writing certain entities in a special way to the CAD environment. More...

Public Member Functions

virtual bool canHandleBlock (const Model &model)=0
 Checks whether this modifier can handle the given model as a block.
virtual bool canHandleInsert (const Model &model)=0
 Checks whether this modifier can handle the given model as an insert.
virtual ModelIterator::ParseResult handleBlock (const Model &model, DXFBlockWriter &options)=0
 Handles writing the model during the block-write phase.
virtual ModelIterator::ParseResult handleBlock (const Model &model, DXFTableWriteIterator &options)=0
 Handles writing the model during the table-write phase.
virtual void handleInsert (const Matrix< fltp08 > &parent_transform, const Model &model, uint04 parent_handle, CADGeometryWriter &options)=0
 Writes the model as an insert entity via geometry writer.
virtual void handleInsert (const Matrix< fltp08 > &parent_transform, const Model &model, uint04 parent_handle, DXFBlockWriter &options)=0
 Writes the model as an insert entity via block writer.

Detailed Description

An interface that can handle writing certain entities in a special way to the CAD environment.


Definition at line 13 of file CADWriteModifier.h.

Member Function Documentation

◆ canHandleBlock()

virtual bool CADWriteModifier::canHandleBlock ( const Model & model)
pure virtual

Checks whether this modifier can handle the given model as a block.

Parameters
[in]modelThe model to check.
Returns
True if this modifier handles the model.

◆ canHandleInsert()

virtual bool CADWriteModifier::canHandleInsert ( const Model & model)
pure virtual

Checks whether this modifier can handle the given model as an insert.

Parameters
[in]modelThe model to check.
Returns
True if this modifier handles the insert.

◆ handleBlock() [1/2]

virtual ModelIterator::ParseResult CADWriteModifier::handleBlock ( const Model & model,
DXFBlockWriter & options )
pure virtual

Handles writing the model during the block-write phase.

Parameters
[in]modelThe model to write.
[in]optionsThe block writer.
Returns
The parse result indicating how to proceed.

◆ handleBlock() [2/2]

virtual ModelIterator::ParseResult CADWriteModifier::handleBlock ( const Model & model,
DXFTableWriteIterator & options )
pure virtual

Handles writing the model during the table-write phase.

Parameters
[in]modelThe model to write.
[in]optionsThe table write iterator.
Returns
The parse result indicating how to proceed.

◆ handleInsert() [1/2]

virtual void CADWriteModifier::handleInsert ( const Matrix< fltp08 > & parent_transform,
const Model & model,
uint04 parent_handle,
CADGeometryWriter & options )
pure virtual

Writes the model as an insert entity via geometry writer.

Parameters
[in]parent_transformThe parent transformation matrix.
[in]modelThe model to write.
[in]parent_handleThe parent entity handle.
[in]optionsThe geometry writer.

◆ handleInsert() [2/2]

virtual void CADWriteModifier::handleInsert ( const Matrix< fltp08 > & parent_transform,
const Model & model,
uint04 parent_handle,
DXFBlockWriter & options )
pure virtual

Writes the model as an insert entity via block writer.

Parameters
[in]parent_transformThe parent transformation matrix.
[in]modelThe model to write.
[in]parent_handleThe parent entity handle.
[in]optionsThe block writer.

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