#include <rvc/cad.h>
Inheritance diagram for RVC::CAD:

Public Types | |
| typedef INT32 | CADBLOCKNUM |
| enum | LINKTYPE { LINKTYPE_Internal = 0, LINKTYPE_MapInfo = 1, LINKTYPE_AtlasGIS = 2, LINKTYPE_Shapefile = 3, LINKTYPE_DGN = 5, LINKTYPE_DWG = 6, LINKTYPE_Edit = 1000 } |
Public Member Functions | |
| INT32 | AddElement (const ELEMENT &Element) |
| CAD (const RVC::CAD &obj) | |
| CAD () | |
| ERRVALUE | CopyBlock (CADBLOCKNUM DestBlockNum, CADBLOCKNUM SrcBlockNum) |
| ERRVALUE | DeleteElement (INT32 ElemNum) |
| ERRVALUE | DeleteLastElement () |
| INT32 | DrawBlock (DRAW &Draw, INT32 BlockNum=0, double MinChordDist=0.0, DIMENSION dim=DIMENSION_2D) const |
| int | DrawElement (DRAW &Draw, INT32 BlockNum, INT32 ElemNum, double MinChordDist=0.0, DIMENSION dim=DIMENSION_2D) const |
| CONST_ELEMITERATOR | ElementBegin () const |
| CONST_ELEMITERATOR | ElementEnd () const |
| ERRVALUE | EraseBlock (CADBLOCKNUM BlockNum) |
| CADBLOCKNUM | GetCurrentBlock () const |
| LINKTYPE | GetLinkType () const |
| ERRVALUE | GetMakeParms (RVC::CAD::MAKEPARMS &MakeParms) const |
| INT32 | GetNextElemID () const |
| INT32 | GetNumBlocks () const |
| DEPRECATED ERRVALUE | Link (const RVC::OBJECT &parent, const RVC::OBJECTNAME &name, const RVC::OBJECTDESC &desc, const LINKPARMS &LinkParms, const char *Source=0) |
| ERRVALUE | Link (const RVC::OBJECT &parent, const RVC::DESCRIPTOR &Descriptor, const LINKPARMS &LinkParms) |
| ERRVALUE | Make (const RVC::OBJITEM &ObjItem, const MAKEPARMS &MakeParms, const char *Source=0) |
| DEPRECATED ERRVALUE | Make (const RVC::OBJECT &parent, const RVC::OBJECTNAME &name, const RVC::OBJECTDESC &desc, const MAKEPARMS &MakeParms, const char *Source=0) |
| ERRVALUE | Make (const RVC::OBJECT &parent, const RVC::DESCRIPTOR &Descriptor, const MAKEPARMS &MakeParms) |
| RVC::CAD & | operator= (const RVC::CAD &rhs) |
| ERRVALUE | ReadBlock (CADBLOCKNUM BlockNum, CADBLOCK &block, bool MakeCurrent=true) const |
| ERRVALUE | ReadElement (INT32 ElemNum, ELEMENT &Element, DIMENSION dim=DIMENSION_2D) const |
| ERRVALUE | ReadElement (ELEMENT &Element, DIMENSION dim=DIMENSION_2D) const |
| ERRVALUE | Rewind () |
| ERRVALUE | SetEditBlock (INT32 BlockNum) |
| ERRVALUE | SetNextElemID (INT32 NextElemID) |
| ERRVALUE | SetPointType (POINTTYPE PointType) |
| ERRVALUE | SortElement (INT32 ElemNum, bool SortToFront) |
| ERRVALUE | SortElements (const BITSET_UNOWNED &SortSet, bool SortToFront) |
| ERRVALUE | UpdateElement (INT32 ElemNum, const ELEMENT &Element) |
| ERRVALUE | UpdateExtentsFromInsertElements () |
| ERRVALUE | WriteBlock (CADBLOCKNUM BlockNum, CADBLOCK &block, bool MakeCurrent=true) |
| ERRVALUE | WriteElement (INT32 ElemNum, const ELEMENT &Element) |
| virtual | ~CAD () |
The interface currently wraps the MfCAD functions.
RVC Object Types that this class supports: RVC::OBJTYPE_CAD.
Default RVC Object Type for this class: RVC::OBJTYPE_CAD.
Valid parents for this class:
Definition at line 264 of file cad.h.
|
|
Typedef for CAD block number type.
|
|
|
|
|
|
Default constructor.
|
|
|
Copy constructor.
|
|
|
Destructor.
|
|
|
Add an element to the CAD object.
|
|
||||||||||||
|
Copy a block inside a CAD object.
|
|
|
Delete the element specified. Only works if the GEOMETRIC::CAPABILITY_CanDeleteAnyElement is available.
|
|
|
|
|
||||||||||||||||||||
|
Draws the block by calling the virtual draw routines.
|
|
||||||||||||||||||||||||
|
Draws an element. Returns > 0 if drawn, 0 if not, > 0 error.
|
|
|
Obtain a constant iterator to the first CAD element in the current block.
|
|
|
Obtain an iterator to the last+1 CAD element in the current block.
|
|
|
Erase all elements from a block.
|
|
|
Get the current block number.
|
|
|
Obtain the link type.
|
|
|
Get MAKEPARM values from current CAD object instance.
|
|
|
Obtain next available element ID for element ID table.
|
|
|
Obtain the number of blocks in this CAD object.
|
|
||||||||||||||||||||||||
|
Link CAD object to external file.
|
|
||||||||||||||||
|
Link CAD object to external file.
|
|
||||||||||||||||
|
Create a new CAD object.
|
|
||||||||||||||||||||||||
|
Create a new CAD object.
|
|
||||||||||||||||
|
Create a new CAD object.
|
|
|
Assignment, will close and re-open object if possible.
|
|
||||||||||||||||
|
Read the block information.
|
|
||||||||||||||||
|
Read specific CAD element in the current block.
|
|
||||||||||||
|
Read next CAD element in the sequence in the current block.
|
|
|
Rewind CAD object block reading to the begining.
|
|
|
|
|
|
Set next available element ID for element ID table.
|
|
|
Set CAD object point coordinate type.
|
|
||||||||||||
|
Change the drawing order of an element in the CAD object.
|
|
||||||||||||
|
Change the drawing order of the set of elements in the CAD object.
|
|
||||||||||||
|
Update element information (in CADELEMOPT section).
|
|
|
|
|
||||||||||||||||
|
Write the block information.
|
|
||||||||||||
|
Write element information, only valid if linktype == LINKTYPE_Edit.
|
1.3.8-20040913