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

Handles writing data to a CAD entity stream. More...

#include <DXFWriter.h>

Public Member Functions

void add3dFace (bool is_solid, const TraceData &face)
 
void add3dFace (bool is_solid, const Triangle< 3, fltp08 > &tri)
 
void addArc ()
 
void addAttribute ()
 
void addAttribute (const Attrib &attrib)
 
void addCircle ()
 
bool addColorInfo (const CADColorInfo &data, bool is_off=false)
 
void addDictionary (const String &dictionary_name, const CADDictionaryObject &dictionary)
 
void addDimAligned (const DimAlignedData &alignment)
 
void addDimAngular ()
 
void addDimAngular3P ()
 
void addDimDiametric ()
 
void addDimLinear ()
 
void addDimOrdinate ()
 
void addDimRadial ()
 
void addEllipse ()
 
void addFast3dFace (bool is_solid, const TraceData &face)
 
void addFastPoint (const PointData &face)
 
void addImageDef ()
 
void addInsert (const BlockInsert &insert)
 
void addLayer (const LayerData &data)
 
void addLine (const LineData &line)
 
void addMaterialObject (const DXFMaterial &material)
 
void addMesh (const CADMeshData &data)
 
void addMText (const TextData &data)
 
void addPoint (const PointData &point)
 
void addPolyline (const Polyline< 3, fltp08 > &poly)
 
void addPolyline (const PolylineData &data)
 
void addPolyline (const PolylineData &data, const Polyline< 3, fltp08 > &poly)
 
void addRay (const LineSegment< 3, fltp08 > &line)
 
void addSpline ()
 
void addText (const TextData &data)
 
void addTrace (bool is_solid, const TraceData &face)
 
void addVertex (const Vector< 3, fltp08 > &point)
 
void addXLine (const LineSegment< 3, fltp08 > &line)
 
void cleanupCADName (String &name)
 
XDataWriter createVertexXData (uint04 start_offset, const Buffer< RGBColor > &vertices)
 
XDataWriter createVertexXData (uint04 start_offset, const Buffer< Vertex< 3, fltp08 > > &vertices)
 
Buffer< BlockDatadefaultBlocks ()
 
 DXFWriter ()
 
void endBlock (const BlockData &data)
 
void endEntity ()
 
void endFast3DFaces ()
 
void endFastPoints ()
 
void endSequence ()
 
void finish ()
 
uint04 generateTempHandleIndex ()
 
uint04 getHandleIndex (const String &handle_name)
 
bool handleLinetypeData ()
 
bool handleLWPolylineData ()
 
const DynamicPointer< CADHandleManager > & handleManager () const
 
bool handleMTextData ()
 
void setBinary (bool is_binary)
 
void setDecimalPlaces (uint04 decimals)
 
void setFileTarget (File &file)
 
void setHandleManager (const DynamicPointer< CADHandleManager > &manager)
 
void setVersion (DXFVersion version)
 
void startBlock (const BlockData &data)
 
void startBlocks (const Buffer< BlockData > &data)
 
void startEntities ()
 
void startFast3DFaces (bool is_solid)
 
void startFastPoints ()
 
void startLayers (uint04 max_layer_count)
 
void writeAPPIDTable ()
 
void writeAttributesFast (const EntityData &data)
 
void writeClasses ()
 
void writeDictionaries ()
 
void writeDictionary (const CADDictionaryObject &data)
 
void writeDimStyleTable ()
 
void writeDouble (fltp08 value_index)
 
void writeHandle (uint02 value_index, const uint04 &value)
 
void writeInteger (sint02 value_index)
 
void writeInteger (uint02 value_index)
 
void writeIntegerL (sint04 value_index)
 
void writeIntegerL (uint04 value_index)
 
void writeIntegerS (uint01 value_index)
 
void writeLabel (uint02 value_index)
 
void writeLTypeTable ()
 
void writeObjects ()
 
void writeOptions (const Buffer< CADVariable > &data)
 
bool writePointers () const
 
void writeReactors (uint04 dictionary_handle)
 
void writeStyleTable ()
 
void writeUCSTable ()
 
void writeValue (uint02 value_index, const char *const value)
 
void writeValue (uint02 value_index, const String &value)
 
void writeValue (uint02 value_index, const Vector< 3, fltp08 > &value)
 
void writeValue (uint02 value_index, fltp04 value)
 
void writeValue (uint02 value_index, fltp08 value)
 
void writeValue (uint02 value_index, sint04 value)
 
void writeValue (uint02 value_index, uint04 value)
 
void writeValueL (uint02 value_index, sint04 value)
 
void writeValueL (uint02 value_index, uint04 value)
 
void writeValueS (uint02 value_index, uint01 value)
 
void writeVariableValue (const CADVariable &variable)
 
void writeViewports (Buffer< ViewportData > cameras)
 
void writeViewStyleObject ()
 
void writeViewTable ()
 
void writeVPortTableEntree (const ViewportData &data)
 

Static Public Member Functions

static bool getFileLine (String &s, std::ifstream &in, bool stripSpace=true)
 

Detailed Description

Handles writing data to a CAD entity stream.


Constructor & Destructor Documentation

◆ DXFWriter()

DXFWriter ( )
explicit

Member Function Documentation

◆ add3dFace() [1/2]

void add3dFace ( bool is_solid,
const TraceData & face )

◆ add3dFace() [2/2]

void add3dFace ( bool is_solid,
const Triangle< 3, fltp08 > & tri )

◆ addArc()

void addArc ( )

◆ addAttribute() [1/2]

void addAttribute ( )

◆ addAttribute() [2/2]

void addAttribute ( const Attrib & attrib)

◆ addCircle()

void addCircle ( )

◆ addColorInfo()

bool addColorInfo ( const CADColorInfo & data,
bool is_off = false )

◆ addDictionary()

void addDictionary ( const String & dictionary_name,
const CADDictionaryObject & dictionary )

◆ addDimAligned()

void addDimAligned ( const DimAlignedData & alignment)

◆ addDimAngular()

void addDimAngular ( )

◆ addDimAngular3P()

void addDimAngular3P ( )

◆ addDimDiametric()

void addDimDiametric ( )

◆ addDimLinear()

void addDimLinear ( )

◆ addDimOrdinate()

void addDimOrdinate ( )

◆ addDimRadial()

void addDimRadial ( )

◆ addEllipse()

void addEllipse ( )

◆ addFast3dFace()

void addFast3dFace ( bool is_solid,
const TraceData & face )

◆ addFastPoint()

void addFastPoint ( const PointData & face)

◆ addImageDef()

void addImageDef ( )

◆ addInsert()

void addInsert ( const BlockInsert & insert)

◆ addLayer()

void addLayer ( const LayerData & data)

◆ addLine()

void addLine ( const LineData & line)

◆ addMaterialObject()

void addMaterialObject ( const DXFMaterial & material)

◆ addMesh()

void addMesh ( const CADMeshData & data)

◆ addMText()

void addMText ( const TextData & data)

◆ addPoint()

void addPoint ( const PointData & point)

◆ addPolyline() [1/3]

void addPolyline ( const Polyline< 3, fltp08 > & poly)

◆ addPolyline() [2/3]

void addPolyline ( const PolylineData & data)

◆ addPolyline() [3/3]

void addPolyline ( const PolylineData & data,
const Polyline< 3, fltp08 > & poly )

◆ addRay()

void addRay ( const LineSegment< 3, fltp08 > & line)

◆ addSpline()

void addSpline ( )

◆ addText()

void addText ( const TextData & data)

◆ addTrace()

void addTrace ( bool is_solid,
const TraceData & face )

◆ addVertex()

void addVertex ( const Vector< 3, fltp08 > & point)

◆ addXLine()

void addXLine ( const LineSegment< 3, fltp08 > & line)

◆ cleanupCADName()

void cleanupCADName ( String & name)

◆ createVertexXData() [1/2]

XDataWriter createVertexXData ( uint04 start_offset,
const Buffer< RGBColor > & vertices )

◆ createVertexXData() [2/2]

XDataWriter createVertexXData ( uint04 start_offset,
const Buffer< Vertex< 3, fltp08 > > & vertices )

◆ defaultBlocks()

Buffer< BlockData > defaultBlocks ( )

◆ endBlock()

void endBlock ( const BlockData & data)

◆ endEntity()

void endEntity ( )

◆ endFast3DFaces()

void endFast3DFaces ( )

◆ endFastPoints()

void endFastPoints ( )

◆ endSequence()

void endSequence ( )

◆ finish()

void finish ( )

◆ generateTempHandleIndex()

uint04 generateTempHandleIndex ( )

◆ getFileLine()

static bool getFileLine ( String & s,
std::ifstream & in,
bool stripSpace = true )
static

◆ getHandleIndex()

uint04 getHandleIndex ( const String & handle_name)

◆ handleLinetypeData()

bool handleLinetypeData ( )

◆ handleLWPolylineData()

bool handleLWPolylineData ( )

◆ handleManager()

const DynamicPointer< CADHandleManager > & handleManager ( ) const
inline

◆ handleMTextData()

bool handleMTextData ( )

◆ setBinary()

void setBinary ( bool is_binary)
inline

◆ setDecimalPlaces()

void setDecimalPlaces ( uint04 decimals)
inline

◆ setFileTarget()

void setFileTarget ( File & file)

◆ setHandleManager()

void setHandleManager ( const DynamicPointer< CADHandleManager > & manager)

◆ setVersion()

void setVersion ( DXFVersion version)

◆ startBlock()

void startBlock ( const BlockData & data)

◆ startBlocks()

void startBlocks ( const Buffer< BlockData > & data)

◆ startEntities()

void startEntities ( )

◆ startFast3DFaces()

void startFast3DFaces ( bool is_solid)

◆ startFastPoints()

void startFastPoints ( )

◆ startLayers()

void startLayers ( uint04 max_layer_count)

◆ writeAPPIDTable()

void writeAPPIDTable ( )

◆ writeAttributesFast()

void writeAttributesFast ( const EntityData & data)

◆ writeClasses()

void writeClasses ( )

◆ writeDictionaries()

void writeDictionaries ( )

◆ writeDictionary()

void writeDictionary ( const CADDictionaryObject & data)

◆ writeDimStyleTable()

void writeDimStyleTable ( )

◆ writeDouble()

void writeDouble ( fltp08 value_index)

◆ writeHandle()

void writeHandle ( uint02 value_index,
const uint04 & value )

◆ writeInteger() [1/2]

void writeInteger ( sint02 value_index)

◆ writeInteger() [2/2]

void writeInteger ( uint02 value_index)

◆ writeIntegerL() [1/2]

void writeIntegerL ( sint04 value_index)

◆ writeIntegerL() [2/2]

void writeIntegerL ( uint04 value_index)

◆ writeIntegerS()

void writeIntegerS ( uint01 value_index)

◆ writeLabel()

void writeLabel ( uint02 value_index)

◆ writeLTypeTable()

void writeLTypeTable ( )

◆ writeObjects()

void writeObjects ( )

◆ writeOptions()

void writeOptions ( const Buffer< CADVariable > & data)

◆ writePointers()

bool writePointers ( ) const
inline

◆ writeReactors()

void writeReactors ( uint04 dictionary_handle)

◆ writeStyleTable()

void writeStyleTable ( )

◆ writeUCSTable()

void writeUCSTable ( )

◆ writeValue() [1/7]

void writeValue ( uint02 value_index,
const char *const value )

◆ writeValue() [2/7]

void writeValue ( uint02 value_index,
const String & value )

◆ writeValue() [3/7]

void writeValue ( uint02 value_index,
const Vector< 3, fltp08 > & value )

◆ writeValue() [4/7]

void writeValue ( uint02 value_index,
fltp04 value )

◆ writeValue() [5/7]

void writeValue ( uint02 value_index,
fltp08 value )

◆ writeValue() [6/7]

void writeValue ( uint02 value_index,
sint04 value )

◆ writeValue() [7/7]

void writeValue ( uint02 value_index,
uint04 value )

◆ writeValueL() [1/2]

void writeValueL ( uint02 value_index,
sint04 value )

◆ writeValueL() [2/2]

void writeValueL ( uint02 value_index,
uint04 value )

◆ writeValueS()

void writeValueS ( uint02 value_index,
uint01 value )

◆ writeVariableValue()

void writeVariableValue ( const CADVariable & variable)

◆ writeViewports()

void writeViewports ( Buffer< ViewportData > cameras)

◆ writeViewStyleObject()

void writeViewStyleObject ( )

◆ writeViewTable()

void writeViewTable ( )

◆ writeVPortTableEntree()

void writeVPortTableEntree ( const ViewportData & data)

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