Seamly2D
Code documentation
dx_iface Class Reference

#include <dxiface.h>

Inheritance diagram for dx_iface:
Collaboration diagram for dx_iface:

Public Member Functions

 dx_iface (const std::string &file, DRW::Version v, VarMeasurement varMeasurement, VarInsunits varInsunits)
 
virtual ~dx_iface ()
 
bool fileExport (bool binary)
 
void writeEntity (DRW_Entity *e)
 
virtual void writeHeader (DRW_Header &data)
 
virtual void writeBlocks ()
 
virtual void writeBlockRecords ()
 
virtual void writeEntities ()
 
virtual void writeLTypes ()
 
virtual void writeLayers ()
 
virtual void writeTextstyles ()
 
virtual void writeVports ()
 
virtual void writeDimstyles ()
 
virtual void writeAppId ()
 
void AddEntity (DRW_Entity *e)
 
UTF8STRING AddFont (const QFont &f)
 
void AddBlock (dx_ifaceBlock *block)
 
void AddQtLTypes ()
 
void AddDefLayers ()
 
void AddAAMALayers ()
 
void AddAAMAHeaderData ()
 

Private Member Functions

void InitHeader (VarMeasurement varMeasurement, VarInsunits varInsunits)
 
void InitTextstyles ()
 
void InitAppId ()
 

Static Private Member Functions

static std::string LocaleToISO ()
 

Private Attributes

dxfRW * dxfW
 
dx_data cData
 
DRW::Version version
 

Detailed Description

Definition at line 96 of file dxiface.h.

Constructor & Destructor Documentation

◆ dx_iface()

dx_iface::dx_iface ( const std::string &  file,
DRW::Version  v,
VarMeasurement  varMeasurement,
VarInsunits  varInsunits 
)

Definition at line 22 of file dxiface.cpp.

References InitAppId(), InitHeader(), and InitTextstyles().

◆ ~dx_iface()

dx_iface::~dx_iface ( )
virtual

Definition at line 32 of file dxiface.cpp.

References dxfW.

Member Function Documentation

◆ AddAAMAHeaderData()

void dx_iface::AddAAMAHeaderData ( )

Definition at line 280 of file dxiface.cpp.

References cData, and dx_data::headerC.

◆ AddAAMALayers()

void dx_iface::AddAAMALayers ( )

Definition at line 238 of file dxiface.cpp.

References cData, and dx_data::layers.

◆ AddBlock()

void dx_iface::AddBlock ( dx_ifaceBlock block)

Definition at line 349 of file dxiface.cpp.

References dx_data::blocks, and cData.

◆ AddDefLayers()

void dx_iface::AddDefLayers ( )

Definition at line 285 of file dxiface.cpp.

References cData, and dx_data::layers.

◆ AddEntity()

void dx_iface::AddEntity ( DRW_Entity *  e)

Definition at line 311 of file dxiface.cpp.

References cData, dx_ifaceBlock::ent, and dx_data::mBlock.

◆ AddFont()

UTF8STRING dx_iface::AddFont ( const QFont &  f)

Definition at line 316 of file dxiface.cpp.

References cData, and dx_data::textStyles.

◆ AddQtLTypes()

void dx_iface::AddQtLTypes ( )

Definition at line 193 of file dxiface.cpp.

References cData, and dx_data::lineTypes.

◆ fileExport()

bool dx_iface::fileExport ( bool  binary)

Definition at line 37 of file dxiface.cpp.

References dxfW, and version.

◆ InitAppId()

void dx_iface::InitAppId ( )
private

Definition at line 304 of file dxiface.cpp.

References dx_data::appIds, and cData.

Referenced by dx_iface().

◆ InitHeader()

void dx_iface::InitHeader ( VarMeasurement  varMeasurement,
VarInsunits  varInsunits 
)
private

Definition at line 168 of file dxiface.cpp.

References cData, dx_data::headerC, LocaleToISO(), and version.

Referenced by dx_iface().

◆ InitTextstyles()

void dx_iface::InitTextstyles ( )
private

Definition at line 294 of file dxiface.cpp.

References cData, and dx_data::textStyles.

Referenced by dx_iface().

◆ LocaleToISO()

std::string dx_iface::LocaleToISO ( )
staticprivate

Definition at line 354 of file dxiface.cpp.

References qApp.

Referenced by InitHeader().

◆ writeAppId()

void dx_iface::writeAppId ( )
virtual

Definition at line 163 of file dxiface.cpp.

References dx_data::appIds, cData, and dxfW.

◆ writeBlockRecords()

void dx_iface::writeBlockRecords ( )
virtual

Definition at line 128 of file dxiface.cpp.

References dx_data::blocks, cData, and dxfW.

◆ writeBlocks()

void dx_iface::writeBlocks ( )
virtual

Definition at line 117 of file dxiface.cpp.

References dx_data::blocks, cData, dxfW, dx_ifaceBlock::ent, and writeEntity().

◆ writeDimstyles()

void dx_iface::writeDimstyles ( )
virtual

Definition at line 158 of file dxiface.cpp.

References cData, dx_data::dimStyles, and dxfW.

◆ writeEntities()

void dx_iface::writeEntities ( )
virtual

Definition at line 133 of file dxiface.cpp.

References cData, dx_ifaceBlock::ent, dx_data::mBlock, and writeEntity().

◆ writeEntity()

void dx_iface::writeEntity ( DRW_Entity *  e)

Definition at line 43 of file dxiface.cpp.

References dxfW.

Referenced by writeBlocks(), and writeEntities().

◆ writeHeader()

void dx_iface::writeHeader ( DRW_Header &  data)
virtual

Definition at line 109 of file dxiface.cpp.

References cData, and dx_data::headerC.

◆ writeLayers()

void dx_iface::writeLayers ( )
virtual

Definition at line 143 of file dxiface.cpp.

References cData, dxfW, and dx_data::layers.

◆ writeLTypes()

void dx_iface::writeLTypes ( )
virtual

Definition at line 138 of file dxiface.cpp.

References cData, dxfW, and dx_data::lineTypes.

◆ writeTextstyles()

void dx_iface::writeTextstyles ( )
virtual

Definition at line 148 of file dxiface.cpp.

References cData, dxfW, and dx_data::textStyles.

◆ writeVports()

void dx_iface::writeVports ( )
virtual

Definition at line 153 of file dxiface.cpp.

References cData, dxfW, and dx_data::VPorts.

Member Data Documentation

◆ cData

◆ dxfW

◆ version

DRW::Version dx_iface::version
private

Definition at line 132 of file dxiface.h.

Referenced by fileExport(), and InitHeader().


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