NDEVR
API Documentation
CADWriteModifier.h
1#pragma once
2#include <NDEVR/Matrix.h>
3#include <NDEVR/ModelIterator.h>
4namespace NDEVR
5{
6 class Model;
9 class DXFBlockWriter;
14 {
15 public:
19 virtual bool canHandleBlock(const Model& model) = 0;
29 virtual ModelIterator::ParseResult handleBlock(const Model& model, DXFBlockWriter& options) = 0;
33 virtual bool canHandleInsert(const Model& model) = 0;
39 virtual void handleInsert(const Matrix<fltp08>& parent_transform, const Model& model, uint04 parent_handle, DXFBlockWriter& options) = 0;
45 virtual void handleInsert(const Matrix<fltp08>& parent_transform, const Model& model, uint04 parent_handle, CADGeometryWriter& options) = 0;
46 };
47}
Streams NDEVR Geometry entities as CAD objects.
An interface that can handle writing certain entities in a special way to the CAD environment.
virtual ModelIterator::ParseResult handleBlock(const Model &model, DXFTableWriteIterator &options)=0
Handles writing the model during the table-write phase.
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 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.
A ModelIterator that iterates over each object in the model hierarchy turning them into nested BlockD...
Converts objects into entities that can be placed within a DXF Entity Table.
Templated logic for doing matrix multiplication.
Definition Matrix.hpp:182
ParseResult
The result returned by process functions to control iteration flow.
A core class that represents a node on model hierarchy.
Definition Model.h:292
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...