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

#include <DXFWriter.h>

Public Member Functions

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

Static Public Member Functions

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

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()

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 files: