#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 |
CDxfWrite::CDxfWrite | ( | const char * | filepath | ) |
CDxfWrite::~CDxfWrite | ( | ) |
CDxfWrite::CDxfWrite | ( | const char * | filepath | ) |
CDxfWrite::~CDxfWrite | ( | ) |
CDxfWrite::CDxfWrite | ( | const char * | filepath | ) |
CDxfWrite::~CDxfWrite | ( | ) |
void CDxfWrite::addBlockName | ( | std::string | s, |
std::string | blkRecordHandle | ||
) |
References m_blkRecordList, and m_blockList.
Referenced by writeDimBlockPreamble().
void CDxfWrite::endRun | ( | void | ) |
assemble pieces into output file
References makeBlockRecordTableBody(), makeLayerTable(), writeBlocksSection(), writeClassesSection(), writeEntitiesSection(), writeObjectsSection(), and writeTablesSection().
bool CDxfWrite::Failed | ( | ) |
bool CDxfWrite::Failed | ( | ) |
bool CDxfWrite::Failed | ( | ) |
|
protected |
References getHandle().
Referenced by makeBlockRecordTableHead(), and writeDimBlockPreamble().
|
protected |
References getHandle().
Referenced by makeBlockSectionHead(), writeAngularDimBlock(), writeBlockTrailer(), writeDiametricDimBlock(), writeDimBlockPreamble(), writeLinearDimBlock(), and writeRadialDimBlock().
|
protected |
References getHandle().
Referenced by writeAngularDim(), writeArc(), writeCircle(), writeDiametricDim(), writeEllipse(), writeLine(), writeLinearDim(), writeLWPolyLine(), writePoint(), writePolyline(), writeRadialDim(), writeSpline(), writeText(), and writeVertex().
|
protected |
References m_handle.
Referenced by getBlkRecordHandle(), getBlockHandle(), getEntityHandle(), and getLayerHandle().
|
protected |
References getHandle().
Referenced by makeLayerTable().
std::string CDxfWrite::getLayerName | ( | ) |
|
protected |
copy boiler plate file
References Base::Console(), Base::FileInfo::filePath(), Base::FileInfo::isReadable(), and Base::ConsoleSingleton::Message().
Referenced by writeBlocksSection(), writeClassesSection(), writeEntitiesSection(), writeHeaderSection(), writeObjectsSection(), and writeTablesSection().
void CDxfWrite::init | ( | void | ) |
References makeBlockRecordTableHead(), makeBlockSectionHead(), and writeHeaderSection().
Referenced by DocumentObject.DocumentObject::onChanged().
void CDxfWrite::makeBlockRecordTableBody | ( | void | ) |
References m_blkRecordList, m_blockList, m_saveBlockRecordTableHandle, and m_version.
Referenced by endRun().
void CDxfWrite::makeBlockRecordTableHead | ( | void | ) |
References getBlkRecordHandle(), m_blockList, m_saveBlockRecordTableHandle, m_saveModelSpaceHandle, m_savePaperSpaceHandle, and m_version.
Referenced by init().
void CDxfWrite::makeBlockSectionHead | ( | void | ) |
References getBlockHandle(), m_currentBlock, m_saveModelSpaceHandle, m_savePaperSpaceHandle, and m_version.
Referenced by init().
void CDxfWrite::makeLayerTable | ( | void | ) |
References getLayerHandle(), m_layerList, and m_version.
Referenced by endRun().
|
protected |
References m_version, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by writeAngularDimBlock(), writeDiametricDimBlock(), writeLinearDimBlock(), and writeRadialDimBlock().
|
protected |
References getLayerName(), and m_version.
Referenced by writeDiametricDimBlock(), writeLine(), writeLinearDimBlock(), and writeRadialDimBlock().
|
protected |
|
protected |
Referenced by Import::ImpExpDxfWrite::setOptions().
void CDxfWrite::setLayerName | ( | std::string | s | ) |
References m_layerList, and m_layerName.
void CDxfWrite::setPolyOverride | ( | bool | b | ) |
void CDxfWrite::setVersion | ( | int | v | ) |
void CDxfWrite::writeAngularDim | ( | const double * | textMidPoint, |
const double * | lineDefPoint, | ||
const double * | startExt1, | ||
const double * | endExt1, | ||
const double * | startExt2, | ||
const double * | endExt2, | ||
const char * | dimText | ||
) |
References getEntityHandle(), getLayerName(), m_saveModelSpaceHandle, m_version, writeAngularDimBlock(), writeBlockTrailer(), and writeDimBlockPreamble().
Referenced by Import::ImpExpDxfWrite::exportAngularDim().
void CDxfWrite::writeAngularDimBlock | ( | const double * | textMidPoint, |
const double * | lineDefPoint, | ||
const double * | startExt1, | ||
const double * | endExt1, | ||
const double * | startExt2, | ||
const double * | endExt2, | ||
const char * | dimText | ||
) |
void CDxfWrite::writeArc | ( | const double * | s, |
const double * | e, | ||
const double * | c, | ||
bool | dir | ||
) |
References getEntityHandle(), getLayerName(), m_saveModelSpaceHandle, and m_version.
Referenced by Import::ImpExpDxfWrite::exportArc().
void CDxfWrite::WriteArc | ( | const double * | s, |
const double * | e, | ||
const double * | c, | ||
bool | dir, | ||
const char * | layer_name | ||
) |
void CDxfWrite::WriteArc | ( | const double * | s, |
const double * | e, | ||
const double * | c, | ||
bool | dir, | ||
const char * | layer_name | ||
) |
void CDxfWrite::writeBlocksSection | ( | void | ) |
References getPlateFile(), m_dataDir, and m_version.
Referenced by endRun().
void CDxfWrite::writeBlockTrailer | ( | void | ) |
References getBlockHandle(), getLayerName(), m_saveBlkRecordHandle, and m_version.
Referenced by writeAngularDim(), writeDiametricDim(), writeLinearDim(), and writeRadialDim().
void CDxfWrite::writeCircle | ( | const double * | c, |
double | radius | ||
) |
References getEntityHandle(), getLayerName(), m_saveModelSpaceHandle, and m_version.
Referenced by Import::ImpExpDxfWrite::exportCircle().
void CDxfWrite::WriteCircle | ( | const double * | c, |
double | radius, | ||
const char * | layer_name | ||
) |
void CDxfWrite::WriteCircle | ( | const double * | c, |
double | radius, | ||
const char * | layer_name | ||
) |
void CDxfWrite::writeClassesSection | ( | void | ) |
References getPlateFile(), m_dataDir, and m_version.
Referenced by endRun().
void CDxfWrite::writeDiametricDim | ( | const double * | textMidPoint, |
const double * | arcPoint1, | ||
const double * | arcPoint2, | ||
const char * | dimText | ||
) |
References getEntityHandle(), getLayerName(), m_saveModelSpaceHandle, m_version, writeBlockTrailer(), writeDiametricDimBlock(), and writeDimBlockPreamble().
Referenced by Import::ImpExpDxfWrite::exportDiametricDim().
void CDxfWrite::writeDiametricDimBlock | ( | const double * | textMidPoint, |
const double * | arcPoint1, | ||
const double * | arcPoint2, | ||
const char * | dimText | ||
) |
void CDxfWrite::writeDimBlockPreamble | ( | void | ) |
References addBlockName(), getBlkRecordHandle(), getBlockHandle(), getLayerName(), m_currentBlock, m_saveBlkRecordHandle, and m_version.
Referenced by writeAngularDim(), writeDiametricDim(), writeLinearDim(), and writeRadialDim().
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 | ||
) |
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 | ||
) |
void CDxfWrite::writeEllipse | ( | const double * | c, |
double | major_radius, | ||
double | minor_radius, | ||
double | rotation, | ||
double | start_angle, | ||
double | end_angle, | ||
bool | endIsCW | ||
) |
References getEntityHandle(), getLayerName(), m_saveModelSpaceHandle, and m_version.
Referenced by Import::ImpExpDxfWrite::exportEllipse(), and Import::ImpExpDxfWrite::exportEllipseArc().
void CDxfWrite::writeEntitiesSection | ( | void | ) |
References getPlateFile(), m_dataDir, and m_version.
Referenced by endRun().
void CDxfWrite::writeHeaderSection | ( | void | ) |
References App::Application::Config(), getPlateFile(), m_dataDir, and m_version.
Referenced by init().
void CDxfWrite::writeLine | ( | const double * | s, |
const double * | e | ||
) |
References getEntityHandle(), m_saveModelSpaceHandle, and putLine().
Referenced by Import::ImpExpDxfWrite::exportLine().
void CDxfWrite::WriteLine | ( | const double * | s, |
const double * | e, | ||
const char * | layer_name | ||
) |
void CDxfWrite::WriteLine | ( | const double * | s, |
const double * | e, | ||
const char * | layer_name | ||
) |
void CDxfWrite::writeLinearDim | ( | const double * | textMidPoint, |
const double * | lineDefPoint, | ||
const double * | extLine1, | ||
const double * | extLine2, | ||
const char * | dimText, | ||
int | type | ||
) |
References getEntityHandle(), getLayerName(), m_saveModelSpaceHandle, m_version, writeBlockTrailer(), writeDimBlockPreamble(), and writeLinearDimBlock().
Referenced by Import::ImpExpDxfWrite::exportLinearDim().
void CDxfWrite::writeLinearDimBlock | ( | const double * | textMidPoint, |
const double * | lineDefPoint, | ||
const double * | extLine1, | ||
const double * | extLine2, | ||
const char * | dimText, | ||
int | type | ||
) |
void CDxfWrite::writeLWPolyLine | ( | const LWPolyDataOut & | pd | ) |
void CDxfWrite::writeObjectsSection | ( | void | ) |
References getPlateFile(), m_dataDir, and m_version.
Referenced by endRun().
void CDxfWrite::writePoint | ( | const double * | s | ) |
References getEntityHandle(), getLayerName(), m_saveModelSpaceHandle, and m_version.
Referenced by Import::ImpExpDxfWrite::exportShape().
void CDxfWrite::WritePoint | ( | const double * | s, |
const char * | layer_name | ||
) |
void CDxfWrite::WritePoint | ( | const double * | , |
const char * | |||
) |
void CDxfWrite::writePolyline | ( | const LWPolyDataOut & | pd | ) |
References getEntityHandle(), getLayerName(), m_saveModelSpaceHandle, m_version, and LWPolyDataOut::Verts.
Referenced by Import::ImpExpDxfWrite::exportPolyline().
void CDxfWrite::writeRadialDim | ( | const double * | centerPoint, |
const double * | textMidPoint, | ||
const double * | arcPoint, | ||
const char * | dimText | ||
) |
References getEntityHandle(), getLayerName(), m_saveModelSpaceHandle, m_version, writeBlockTrailer(), writeDimBlockPreamble(), and writeRadialDimBlock().
Referenced by Import::ImpExpDxfWrite::exportRadialDim().
void CDxfWrite::writeRadialDimBlock | ( | const double * | centerPoint, |
const double * | textMidPoint, | ||
const double * | arcPoint, | ||
const char * | dimText | ||
) |
void CDxfWrite::writeSpline | ( | const SplineDataOut & | sd | ) |
References SplineDataOut::control, SplineDataOut::control_points, SplineDataOut::degree, SplineDataOut::fit, SplineDataOut::flag, getEntityHandle(), getLayerName(), SplineDataOut::knot, SplineDataOut::knots, m_saveModelSpaceHandle, m_version, and SplineDataOut::weight.
Referenced by Import::ImpExpDxfWrite::exportBSpline().
void CDxfWrite::writeTablesSection | ( | void | ) |
References getPlateFile(), m_dataDir, and m_version.
Referenced by endRun().
void CDxfWrite::writeText | ( | const char * | text, |
const double * | location1, | ||
const double * | location2, | ||
const double | height, | ||
const int | horizJust | ||
) |
References getEntityHandle(), m_saveModelSpaceHandle, and putText().
Referenced by Import::ImpExpDxfWrite::exportText().
void CDxfWrite::writeVertex | ( | double | x, |
double | y, | ||
double | z | ||
) |
References getEntityHandle(), getLayerName(), m_saveModelSpaceHandle, and m_version.
|
protected |
|
protected |
Referenced by addBlockName(), and makeBlockRecordTableBody().
|
protected |
|
protected |
Referenced by addBlockName(), makeBlockRecordTableBody(), and makeBlockRecordTableHead().
|
protected |
Referenced by makeBlockSectionHead(), and writeDimBlockPreamble().
|
protected |
|
protected |
|
protected |
Referenced by getHandle().
|
protected |
|
protected |
Referenced by makeLayerTable(), and setLayerName().
|
protected |
Referenced by setLayerName().
|
protected |
|
protected |
Referenced by Import::ImpExpDxfWrite::exportShape(), and Import::ImpExpDxfWrite::setOptions().
|
protected |
|
protected |
Referenced by makeBlockRecordTableBody(), and makeBlockRecordTableHead().
|
protected |
|
protected |
Referenced by makeBlockRecordTableHead(), and makeBlockSectionHead().
|
protected |
Referenced by Import::ImpExpDxfWrite::exportShape(), makeBlockRecordTableBody(), makeBlockRecordTableHead(), makeBlockSectionHead(), makeLayerTable(), putArrow(), putLine(), putText(), Import::ImpExpDxfWrite::setOptions(), writeAngularDim(), writeAngularDimBlock(), writeArc(), writeBlocksSection(), writeBlockTrailer(), writeCircle(), writeClassesSection(), writeDiametricDim(), writeDimBlockPreamble(), writeEllipse(), writeEntitiesSection(), writeHeaderSection(), writeLinearDim(), writeLWPolyLine(), writeObjectsSection(), writePoint(), writePolyline(), writeRadialDim(), writeSpline(), writeTablesSection(), and writeVertex().