libopencad
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DWGFileR2000 Class Reference
Inheritance diagram for DWGFileR2000:
CADFile

Public Member Functions

 DWGFileR2000 (CADFileIO *poFileIO)
 
- Public Member Functions inherited from CADFile
 CADFile (CADFileIO *poFileIO)
 
const CADHeadergetHeader () const
 
const CADClassesgetClasses () const
 
const CADTablesgetTables () const
 
virtual int parseFile (enum OpenOptions eOptions)
 
virtual size_t getLayersCount () const
 
virtual CADLayergetLayer (size_t index)
 

Protected Member Functions

virtual int readSectionLocator () override
 initially read some basic values and section locator More...
 
virtual int readHeader (enum OpenOptions eOptions) override
 Read header from CAD file. More...
 
virtual int readClasses (enum OpenOptions eOptions) override
 Read classes from CAD file. More...
 
virtual int createFileMap () override
 Create the file map for fast access to CAD objects. More...
 
CADObjectgetObject (long index, bool bHandlesOnly=false) override
 Get CAD Object from file. More...
 
CADGeometrygetGeometry (long index) override
 read geometry from CAD file More...
 
CADBlockObjectgetBlock (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADEllipseObjectgetEllipse (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADSolidObjectgetSolid (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADPointObjectgetPoint (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADPolyline3DObjectgetPolyLine3D (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADRayObjectgetRay (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADXLineObjectgetXLine (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADLineObjectgetLine (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADTextObjectgetText (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADVertex3DObjectgetVertex3D (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADCircleObjectgetCircle (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADEndblkObjectgetEndBlock (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADPolyline2DObjectgetPolyline2D (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADAttribObjectgetAttributes (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADAttdefObjectgetAttributesDefn (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADLWPolylineObjectgetLWPolyLine (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADArcObjectgetArc (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADSplineObjectgetSpline (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADEntityObjectgetEntity (int dObjectType, long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADDictionaryObjectgetDictionary (long dObjectSize, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADLayerObjectgetLayer (long dObjectSize, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADLayerControlObjectgetLayerControl (long dObjectSize, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADBlockControlObjectgetBlockControl (long dObjectSize, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADBlockHeaderObjectgetBlockHeader (long dObjectSize, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADLineTypeControlObjectgetLineTypeControl (long dObjectSize, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADLineTypeObjectgetLineType1 (long dObjectSize, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADMLineObjectgetMLine (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADPolylinePFaceObjectgetPolylinePFace (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADImageObjectgetImage (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CAD3DFaceObjectget3DFace (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADVertexMeshObjectgetVertexMesh (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADVertexPFaceObjectgetVertexPFace (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADDimensionObjectgetDimension (short dObjectType, long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADMTextObjectgetMText (long dObjectSize, CADCommonED stCommonEntityData, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADImageDefObjectgetImageDef (long dObjectSize, const char *pabyInput, size_t &nBitOffsetFromStart)
 
CADImageDefReactorObjectgetImageDefReactor (long dObjectSize, const char *pabyInput, size_t &nBitOffsetFromStart)
 
- Protected Member Functions inherited from CADFile
virtual int readTables (enum OpenOptions eOptions)
 Read tables from CAD file. More...
 

Protected Attributes

int imageSeeker
 
std::vector< SectionLocatorRecordsectionLocatorRecords
 
- Protected Attributes inherited from CADFile
CADFileIOfileIO
 
CADHeader header
 
CADClasses classes
 
CADTables tables
 
std::map< long, long > objectsMap
 

Additional Inherited Members

- Public Types inherited from CADFile
enum  OpenOptions { READ_ALL, READ_FAST, READ_FASTEST }
 The CAD file open options enum. More...
 

Member Function Documentation

int DWGFileR2000::createFileMap ( )
overrideprotectedvirtual

Create the file map for fast access to CAD objects.

Returns
CADErrorCodes::SUCCESS if OK, or error code

Implements CADFile.

CADGeometry * DWGFileR2000::getGeometry ( long  index)
overrideprotectedvirtual

read geometry from CAD file

Parameters
handleHandle of CAD object
Returns
NULL if failed or pointer which mast be feed by user

Implements CADFile.

CADObject * DWGFileR2000::getObject ( long  index,
bool  bHandlesOnly = false 
)
overrideprotectedvirtual

Get CAD Object from file.

Parameters
indexObject index
bHandlesOnlyset TRUE if object data should be skipped, and only object handles should be read.
Returns
pointer to CADObject or nullptr. User have to free returned pointer.

Implements CADFile.

int DWGFileR2000::readClasses ( enum OpenOptions  eOptions)
overrideprotectedvirtual

Read classes from CAD file.

Parameters
eOptionsRead options
Returns
CADErrorCodes::SUCCESS if OK, or error code

Implements CADFile.

int DWGFileR2000::readHeader ( enum OpenOptions  eOptions)
overrideprotectedvirtual

Read header from CAD file.

Parameters
eOptionsRead options
Returns
CADErrorCodes::SUCCESS if OK, or error code

Implements CADFile.

int DWGFileR2000::readSectionLocator ( )
overrideprotectedvirtual

initially read some basic values and section locator

Returns
CADErrorCodes::SUCCESS if OK, or error code

Implements CADFile.


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