CDxfWrite Class Reference

#include <dxf.h>

Public Member Functions

void addBlockName (std::string s, std::string blkRecordHandle)
 
 CDxfWrite (const char *filepath)
 
 CDxfWrite (const char *filepath)
 
 CDxfWrite (const char *filepath)
 
void endRun (void)
 assemble pieces into output file More...
 
bool Failed ()
 
bool Failed ()
 
bool Failed ()
 
std::string getLayerName ()
 
void init (void)
 
void makeBlockRecordTableBody (void)
 
void makeBlockRecordTableHead (void)
 
void makeBlockSectionHead (void)
 
void makeLayerTable (void)
 
void setLayerName (std::string s)
 
void setPolyOverride (bool b)
 
void setVersion (int v)
 
void writeAngularDim (const double *textMidPoint, const double *lineDefPoint, const double *startExt1, const double *endExt1, const double *startExt2, const double *endExt2, const char *dimText)
 
void writeAngularDimBlock (const double *textMidPoint, const double *lineDefPoint, const double *startExt1, const double *endExt1, const double *startExt2, const double *endExt2, const char *dimText)
 
void writeArc (const double *s, const double *e, const double *c, bool dir)
 
void WriteArc (const double *s, const double *e, const double *c, bool dir, const char *layer_name)
 
void WriteArc (const double *s, const double *e, const double *c, bool dir, const char *layer_name)
 
void writeBlocksSection (void)
 
void writeBlockTrailer (void)
 
void writeCircle (const double *c, double radius)
 
void WriteCircle (const double *c, double radius, const char *layer_name)
 
void WriteCircle (const double *c, double radius, const char *layer_name)
 
void writeClassesSection (void)
 
void writeDiametricDim (const double *textMidPoint, const double *arcPoint1, const double *arcPoint2, const char *dimText)
 
void writeDiametricDimBlock (const double *textMidPoint, const double *arcPoint1, const double *arcPoint2, const char *dimText)
 
void writeDimBlockPreamble ()
 
void WriteEllipse (const double *c, double major_radius, double minor_radius, double rotation, double start_angle, double end_angle, bool dir, const char *layer_name)
 
void WriteEllipse (const double *c, double major_radius, double minor_radius, double rotation, double start_angle, double end_angle, bool dir, const char *layer_name)
 
void writeEllipse (const double *c, double major_radius, double minor_radius, double rotation, double start_angle, double end_angle, bool endIsCW)
 
void writeEntitiesSection (void)
 
void writeHeaderSection (void)
 
void writeLine (const double *s, const double *e)
 
void WriteLine (const double *s, const double *e, const char *layer_name)
 
void WriteLine (const double *s, const double *e, const char *layer_name)
 
void writeLinearDim (const double *textMidPoint, const double *lineDefPoint, const double *extLine1, const double *extLine2, const char *dimText, int type)
 
void writeLinearDimBlock (const double *textMidPoint, const double *lineDefPoint, const double *extLine1, const double *extLine2, const char *dimText, int type)
 
void writeLWPolyLine (const LWPolyDataOut &pd)
 
void writeObjectsSection (void)
 
void writePoint (const double *)
 
void WritePoint (const double *, const char *)
 
void WritePoint (const double *, const char *)
 
void writePolyline (const LWPolyDataOut &pd)
 
void writeRadialDim (const double *centerPoint, const double *textMidPoint, const double *arcPoint, const char *dimText)
 
void writeRadialDimBlock (const double *centerPoint, const double *textMidPoint, const double *arcPoint, const char *dimText)
 
void writeSpline (const SplineDataOut &sd)
 
void writeTablesSection (void)
 
void writeText (const char *text, const double *location1, const double *location2, const double height, const int horizJust)
 
void writeVertex (double x, double y, double z)
 
 ~CDxfWrite ()
 
 ~CDxfWrite ()
 
 ~CDxfWrite ()
 

Protected Member Functions

std::string getBlkRecordHandle (void)
 
std::string getBlockHandle (void)
 
std::string getEntityHandle (void)
 
std::string getHandle (void)
 
std::string getLayerHandle (void)
 
std::string getPlateFile (std::string fileSpec)
 copy boiler plate file More...
 
void putArrow (Base::Vector3d arrowPos, Base::Vector3d barb1Pos, Base::Vector3d barb2Pos, std::ostringstream *outStream, const std::string handle, const std::string ownerHandle)
 
void putLine (const Base::Vector3d s, const Base::Vector3d e, std::ostringstream *outStream, const std::string handle, const std::string ownerHandle)
 
void putText (const char *text, const Base::Vector3d location1, const Base::Vector3d location2, const double height, const int horizJust, std::ostringstream *outStream, const std::string handle, const std::string ownerHandle)
 
void setDataDir (std::string s)
 

Protected Attributes

int m_blkRecordHandle
 
std::vector< std::string > m_blkRecordList
 
int m_blockHandle
 
std::vector< std::string > m_blockList
 
std::string m_currentBlock
 
std::string m_dataDir
 
int m_entityHandle
 
int m_handle
 
int m_layerHandle
 
std::vector< std::string > m_layerList
 
std::string m_layerName
 
std::string m_optionSource
 
bool m_polyOverride
 
std::string m_saveBlkRecordHandle
 
std::string m_saveBlockRecordTableHandle
 
std::string m_saveModelSpaceHandle
 
std::string m_savePaperSpaceHandle
 
int m_version
 

Constructor & Destructor Documentation

◆ CDxfWrite() [1/3]

CDxfWrite::CDxfWrite ( const char *  filepath)

◆ ~CDxfWrite() [1/3]

CDxfWrite::~CDxfWrite ( )

◆ CDxfWrite() [2/3]

CDxfWrite::CDxfWrite ( const char *  filepath)

◆ ~CDxfWrite() [2/3]

CDxfWrite::~CDxfWrite ( )

◆ CDxfWrite() [3/3]

CDxfWrite::CDxfWrite ( const char *  filepath)

◆ ~CDxfWrite() [3/3]

CDxfWrite::~CDxfWrite ( )

Member Function Documentation

◆ addBlockName()

void CDxfWrite::addBlockName ( std::string  s,
std::string  blkRecordHandle 
)

References m_blkRecordList, and m_blockList.

Referenced by writeDimBlockPreamble().

◆ endRun()

◆ Failed() [1/3]

bool CDxfWrite::Failed ( )

◆ Failed() [2/3]

bool CDxfWrite::Failed ( )

◆ Failed() [3/3]

bool CDxfWrite::Failed ( )

◆ getBlkRecordHandle()

std::string CDxfWrite::getBlkRecordHandle ( void  )
protected

◆ getBlockHandle()

◆ getEntityHandle()

◆ getHandle()

std::string CDxfWrite::getHandle ( void  )
protected

◆ getLayerHandle()

std::string CDxfWrite::getLayerHandle ( void  )
protected

References getHandle().

Referenced by makeLayerTable().

◆ getLayerName()

◆ getPlateFile()

◆ init()

◆ makeBlockRecordTableBody()

void CDxfWrite::makeBlockRecordTableBody ( void  )

◆ makeBlockRecordTableHead()

void CDxfWrite::makeBlockRecordTableHead ( void  )

◆ makeBlockSectionHead()

void CDxfWrite::makeBlockSectionHead ( void  )

◆ makeLayerTable()

void CDxfWrite::makeLayerTable ( void  )

References getLayerHandle(), m_layerList, and m_version.

Referenced by endRun().

◆ putArrow()

void CDxfWrite::putArrow ( Base::Vector3d  arrowPos,
Base::Vector3d  barb1Pos,
Base::Vector3d  barb2Pos,
std::ostringstream *  outStream,
const std::string  handle,
const std::string  ownerHandle 
)
protected

◆ putLine()

void CDxfWrite::putLine ( const Base::Vector3d  s,
const Base::Vector3d  e,
std::ostringstream *  outStream,
const std::string  handle,
const std::string  ownerHandle 
)
protected

◆ putText()

void CDxfWrite::putText ( const char *  text,
const Base::Vector3d  location1,
const Base::Vector3d  location2,
const double  height,
const int  horizJust,
std::ostringstream *  outStream,
const std::string  handle,
const std::string  ownerHandle 
)
protected

◆ setDataDir()

void CDxfWrite::setDataDir ( std::string  s)
protected

◆ setLayerName()

void CDxfWrite::setLayerName ( std::string  s)

References m_layerList, and m_layerName.

◆ setPolyOverride()

void CDxfWrite::setPolyOverride ( bool  b)

◆ setVersion()

void CDxfWrite::setVersion ( int  v)

◆ writeAngularDim()

void CDxfWrite::writeAngularDim ( const double *  textMidPoint,
const double *  lineDefPoint,
const double *  startExt1,
const double *  endExt1,
const double *  startExt2,
const double *  endExt2,
const char *  dimText 
)

◆ writeAngularDimBlock()

void CDxfWrite::writeAngularDimBlock ( const double *  textMidPoint,
const double *  lineDefPoint,
const double *  startExt1,
const double *  endExt1,
const double *  startExt2,
const double *  endExt2,
const char *  dimText 
)

◆ writeArc()

void CDxfWrite::writeArc ( const double *  s,
const double *  e,
const double *  c,
bool  dir 
)

◆ WriteArc() [1/2]

void CDxfWrite::WriteArc ( const double *  s,
const double *  e,
const double *  c,
bool  dir,
const char *  layer_name 
)

◆ WriteArc() [2/2]

void CDxfWrite::WriteArc ( const double *  s,
const double *  e,
const double *  c,
bool  dir,
const char *  layer_name 
)

◆ writeBlocksSection()

void CDxfWrite::writeBlocksSection ( void  )

References getPlateFile(), m_dataDir, and m_version.

Referenced by endRun().

◆ writeBlockTrailer()

void CDxfWrite::writeBlockTrailer ( void  )

◆ writeCircle()

void CDxfWrite::writeCircle ( const double *  c,
double  radius 
)

◆ WriteCircle() [1/2]

void CDxfWrite::WriteCircle ( const double *  c,
double  radius,
const char *  layer_name 
)

◆ WriteCircle() [2/2]

void CDxfWrite::WriteCircle ( const double *  c,
double  radius,
const char *  layer_name 
)

◆ writeClassesSection()

void CDxfWrite::writeClassesSection ( void  )

References getPlateFile(), m_dataDir, and m_version.

Referenced by endRun().

◆ writeDiametricDim()

void CDxfWrite::writeDiametricDim ( const double *  textMidPoint,
const double *  arcPoint1,
const double *  arcPoint2,
const char *  dimText 
)

◆ writeDiametricDimBlock()

void CDxfWrite::writeDiametricDimBlock ( const double *  textMidPoint,
const double *  arcPoint1,
const double *  arcPoint2,
const char *  dimText 
)

◆ writeDimBlockPreamble()

◆ WriteEllipse() [1/2]

void CDxfWrite::WriteEllipse ( const double *  c,
double  major_radius,
double  minor_radius,
double  rotation,
double  start_angle,
double  end_angle,
bool  dir,
const char *  layer_name 
)

◆ WriteEllipse() [2/2]

void CDxfWrite::WriteEllipse ( const double *  c,
double  major_radius,
double  minor_radius,
double  rotation,
double  start_angle,
double  end_angle,
bool  dir,
const char *  layer_name 
)

◆ writeEllipse()

void CDxfWrite::writeEllipse ( const double *  c,
double  major_radius,
double  minor_radius,
double  rotation,
double  start_angle,
double  end_angle,
bool  endIsCW 
)

◆ writeEntitiesSection()

void CDxfWrite::writeEntitiesSection ( void  )

References getPlateFile(), m_dataDir, and m_version.

Referenced by endRun().

◆ writeHeaderSection()

void CDxfWrite::writeHeaderSection ( void  )

◆ writeLine()

void CDxfWrite::writeLine ( const double *  s,
const double *  e 
)

◆ WriteLine() [1/2]

void CDxfWrite::WriteLine ( const double *  s,
const double *  e,
const char *  layer_name 
)

◆ WriteLine() [2/2]

void CDxfWrite::WriteLine ( const double *  s,
const double *  e,
const char *  layer_name 
)

◆ writeLinearDim()

void CDxfWrite::writeLinearDim ( const double *  textMidPoint,
const double *  lineDefPoint,
const double *  extLine1,
const double *  extLine2,
const char *  dimText,
int  type 
)

◆ writeLinearDimBlock()

void CDxfWrite::writeLinearDimBlock ( const double *  textMidPoint,
const double *  lineDefPoint,
const double *  extLine1,
const double *  extLine2,
const char *  dimText,
int  type 
)

◆ writeLWPolyLine()

◆ writeObjectsSection()

void CDxfWrite::writeObjectsSection ( void  )

References getPlateFile(), m_dataDir, and m_version.

Referenced by endRun().

◆ writePoint()

void CDxfWrite::writePoint ( const double *  s)

◆ WritePoint() [1/2]

void CDxfWrite::WritePoint ( const double *  s,
const char *  layer_name 
)

◆ WritePoint() [2/2]

void CDxfWrite::WritePoint ( const double *  ,
const char *   
)

◆ writePolyline()

◆ writeRadialDim()

void CDxfWrite::writeRadialDim ( const double *  centerPoint,
const double *  textMidPoint,
const double *  arcPoint,
const char *  dimText 
)

◆ writeRadialDimBlock()

void CDxfWrite::writeRadialDimBlock ( const double *  centerPoint,
const double *  textMidPoint,
const double *  arcPoint,
const char *  dimText 
)

◆ writeSpline()

◆ writeTablesSection()

void CDxfWrite::writeTablesSection ( void  )

References getPlateFile(), m_dataDir, and m_version.

Referenced by endRun().

◆ writeText()

void CDxfWrite::writeText ( const char *  text,
const double *  location1,
const double *  location2,
const double  height,
const int  horizJust 
)

◆ writeVertex()

void CDxfWrite::writeVertex ( double  x,
double  y,
double  z 
)

Member Data Documentation

◆ m_blkRecordHandle

int CDxfWrite::m_blkRecordHandle
protected

◆ m_blkRecordList

std::vector<std::string> CDxfWrite::m_blkRecordList
protected

◆ m_blockHandle

int CDxfWrite::m_blockHandle
protected

◆ m_blockList

std::vector<std::string> CDxfWrite::m_blockList
protected

◆ m_currentBlock

std::string CDxfWrite::m_currentBlock
protected

◆ m_dataDir

◆ m_entityHandle

int CDxfWrite::m_entityHandle
protected

◆ m_handle

int CDxfWrite::m_handle
protected

Referenced by getHandle().

◆ m_layerHandle

int CDxfWrite::m_layerHandle
protected

◆ m_layerList

std::vector<std::string> CDxfWrite::m_layerList
protected

Referenced by makeLayerTable(), and setLayerName().

◆ m_layerName

std::string CDxfWrite::m_layerName
protected

Referenced by setLayerName().

◆ m_optionSource

std::string CDxfWrite::m_optionSource
protected

◆ m_polyOverride

bool CDxfWrite::m_polyOverride
protected

◆ m_saveBlkRecordHandle

◆ m_saveBlockRecordTableHandle

std::string CDxfWrite::m_saveBlockRecordTableHandle
protected

◆ m_saveModelSpaceHandle

◆ m_savePaperSpaceHandle

std::string CDxfWrite::m_savePaperSpaceHandle
protected

◆ m_version


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