libopencad
|
The abstact CAD file class. More...
#include <cadfile.h>
Public Types | |
enum | OpenOptions { READ_ALL, READ_FAST, READ_FASTEST } |
The CAD file open options enum. More... | |
Public Member Functions | |
CADFile (CADFileIO *poFileIO) | |
const CADHeader & | getHeader () const |
const CADClasses & | getClasses () const |
const CADTables & | getTables () const |
virtual int | parseFile (enum OpenOptions eOptions) |
virtual size_t | getLayersCount () const |
virtual CADLayer & | getLayer (size_t index) |
Protected Member Functions | |
virtual CADObject * | getObject (long index, bool bHandlesOnly=false)=0 |
Get CAD Object from file. More... | |
virtual CADGeometry * | getGeometry (long index)=0 |
read geometry from CAD file More... | |
virtual int | readSectionLocator ()=0 |
initially read some basic values and section locator More... | |
virtual int | readHeader (enum OpenOptions eOptions)=0 |
Read header from CAD file. More... | |
virtual int | readClasses (enum OpenOptions eOptions)=0 |
Read classes from CAD file. More... | |
virtual int | createFileMap ()=0 |
Create the file map for fast access to CAD objects. More... | |
virtual int | readTables (enum OpenOptions eOptions) |
Read tables from CAD file. More... | |
Protected Attributes | |
CADFileIO * | fileIO |
CADHeader | header |
CADClasses | classes |
CADTables | tables |
std::map< long, long > | objectsMap |
Friends | |
class | CADTables |
class | CADLayer |
The abstact CAD file class.
enum CADFile::OpenOptions |
|
protectedpure virtual |
Create the file map for fast access to CAD objects.
Implemented in DWGFileR2000.
|
protectedpure virtual |
read geometry from CAD file
handle | Handle of CAD object |
Implemented in DWGFileR2000.
|
protectedpure virtual |
Get CAD Object from file.
index | Object index |
bHandlesOnly | set TRUE if object data should be skipped, and only object handles should be read. |
Implemented in DWGFileR2000.
|
protectedpure virtual |
Read classes from CAD file.
eOptions | Read options |
Implemented in DWGFileR2000.
|
protectedpure virtual |
Read header from CAD file.
eOptions | Read options |
Implemented in DWGFileR2000.
|
protectedpure virtual |
initially read some basic values and section locator
Implemented in DWGFileR2000.
|
protectedvirtual |
Read tables from CAD file.
eOptions | Read options |