#include <rvc/cad.h>
Public Types | |
| enum | TYPE { TYPE_Insert = 0, TYPE_Point = 1, TYPE_Circle = 2, TYPE_Arc = 3, TYPE_ArcChord = 4, TYPE_Text = 5, TYPE_Line = 7, TYPE_RotationBox = 8, TYPE_Polygon = 9, TYPE_Mesh = 10, TYPE_Ellipse = 11, TYPE_EllipticalArc = 12, TYPE_ArcWedge = 14, TYPE_EllipticalArcWedge = 15, TYPE_EllipticalArcChord = 16, TYPE_MultiLine = 17, TYPE_MultiPoint = 18, TYPE_MultiPolygon = 19, TYPE_LAST } |
Public Member Functions | |
| void | Clear () |
| double | ComputeDistanceFrom (const DPOINT2D &point) const |
| bool | ComputeExtents (DRECT3D &Extents) const |
| bool | ComputeInsertBorder (const CAD &CadObj, POLYLINE &Border) const |
| bool | ComputeInsertExtents (const CAD &CadObj, DRECT3D &Extents) const |
| void | ConvertForward (const TRANS3D &t3d) |
| ERRVALUE | ConvertForward (const TRANS2D_MAPGEN &tmg) |
| void | ConvertForward (const TRANS2D_AFFINE &taf) |
| ERRVALUE | ConvertForwardDense (const TRANS2D_MAPGEN &tmg) |
| void | ConvertInverse (const TRANS3D &t3d) |
| ERRVALUE | ConvertInverse (const TRANS2D_MAPGEN &tmg) |
| void | ConvertInverse (const TRANS2D_AFFINE &taf) |
| ERRVALUE | ConvertInverseDense (const TRANS2D_MAPGEN &tmg) |
| ERRVALUE | DrawElement (DRAW &Draw, const TRANS2D_AFFINE &BlockToCAD, double MinChordDist=0.0) |
| ELEMENT (const ELEMENT &rhs) | |
| ELEMENT () | |
| ELEMTYPE | GetAppoxElementType () const |
| bool | GetBox (BOX &Box) const |
| INT32 | GetDatabaseIndex () const |
| bool | GetElementStyle (POLYSTYLE &polystyle) const |
| bool | GetElementStyle (LINESTYLE &linestyle) const |
| bool | GetElementStyle (POINTSTYLE &pointstyle) const |
| bool | GetElementStyle (TEXTSTYLE &textstyle) const |
| TYPE | GetElementType () const |
| bool | GetGMLElement (MISTRING &GMLElement, const MILIST< std::pair< MISTRING, MISTRING > > &AttribList) |
| bool | GetInsert (INSERT &Insert) const |
| bool | GetLabelFrameParms (LABELFRAMEPARMS &FrameParms) const |
| bool | GetLines (POLYLINELIST &PolyLineList) const |
| bool | GetMesh (MESH &Mesh) const |
| bool | GetPlaneConic (PLANECONIC &Conic) const |
| bool | GetPoints (POLYLINE &PointArray) const |
| bool | GetRegion (REGION2D &Region, bool Validate=false) const |
| bool | GetSubRegion (SUBREGION2D &SubRegion, bool Validate=false) const |
| bool | GetTextElement (POLYLINELIST &PolyLineList, MISTRING &text, TEXTSTYLE &style, LABELFRAMEPARMS *FrameParms=0) const |
| SCREENUNIT | GetWidthUnits () const |
| double | GetZValue () const |
| bool | IsBaselineFit () const |
| bool | IsBaselineSplineFit () const |
| bool | IsClipUnderSet () const |
| bool | IsInsertion () const |
| bool | IsLine () const |
| bool | IsPlaneConic () const |
| bool | IsPoint () const |
| bool | IsPointInside (const DPOINT2D &pt) const |
| bool | IsPolygon () const |
| bool | IsText () const |
| bool | IsValid () const |
| ELEMENT & | operator= (const ELEMENT &rhs) |
| void | SetBaselineFit (bool value) |
| void | SetBaselineSplineFit (bool value) |
| void | SetBox (const BOX &Box) |
| void | SetClipUnder (bool value) |
| void | SetDatabaseIndex (INT32 index) |
| bool | SetElementFromGML (const MISTRING &GMLElement, MILIST< std::pair< MISTRING, MISTRING > > &AttribList) |
| void | SetElementStyle (const POLYSTYLE &polystyle) |
| void | SetElementStyle (const LINESTYLE &linestyle) |
| void | SetElementStyle (const POINTSTYLE &pointstyle) |
| void | SetElementStyle (const TEXTSTYLE &textstyle) |
| void | SetInsert (const INSERT &Insert) |
| void | SetLines (const POLYLINELIST &PolyLineList) |
| void | SetMesh (const MESH &Mesh) |
| void | SetPlaneConic (const PLANECONIC &Conic) |
| void | SetPoint (const DPOINT3D &point) |
| void | SetPoints (const POLYLINE &PointArray) |
| void | SetPolyLine (const POLYLINE &PolyLine) |
| void | SetRegion (const REGION2D &Region) |
| void | SetSubRegion (const SUBREGION2D &SubRegion) |
| void | SetTextElement (const POLYLINELIST &PolyLineList, const MISTRING &text, const TEXTSTYLE &style, const LABELFRAMEPARMS *FrameParms=0) |
| void | SetWidthUnits (SCREENUNIT WidthUnits) |
| void | SetZValue (double zvalue) |
| bool | TestElement (const REGION2D &Region, TESTCRITERIA TestMode) const |
| ~ELEMENT () | |
Static Public Member Functions | |
| TEXTID | GetElementTypeTextID (TYPE CadType) |
Definition at line 574 of file cad.h.
|
|
Enumeration of the different CAD element types in use.
|
|
|
Default Constructor.
|
|
|
Copy Constructor.
|
|
|
Destructor.
|
|
|
Clear the element.
|
|
|
Compute the closest distance from an element to the point given NOTE: Does not compute distance from a TYPE_Insert element.
|
|
|
Compute the extents of this element NOTE: Does not compute extents from a TYPE_Insert element, use ComputeInsertExtents().
|
|
||||||||||||
|
Compute the border polygon (rotated box) of the inserted CAD block defined by this element.
|
|
||||||||||||
|
Compute the extents of the inserted CAD block defined by this element.
|
|
|
Convert point coordinates using 3D perspective transformation.
|
|
|
Convert point coordinates using generic transformation.
|
|
|
Convert point coordinates using affine transformation.
|
|
|
Convert point coordinates using generic transformation with densification.
|
|
|
Convert point coordinates using 3D perspective transformation.
|
|
|
Convert point coordinates using generic transformation.
|
|
|
Convert point coordinates using affine transformation.
|
|
|
Convert point coordinates using generic transformation with densification.
|
|
||||||||||||||||
|
'Draw' the element using the "DRAW" interface class passed in This method takes the individual elements and does a transformation to a well known construct to simplify handling of multiple data types. See RVC::CAD::ELEMENT::DRAW class for the primitives that the ELEMENT class is transformed to. NOTE: Does not 'draw' from an TYPE_Insert element
|
|
|
Get the approximate element type.
|
|
|
Get the TYPE_RotationBox from this.
|
|
|
Get the database index for this element.
|
|
|
Get the POLYSTYLE for this type.
|
|
|
Get the LINESTYLE for this type.
|
|
|
Get the POINTSTYLE for this type.
|
|
|
Get the TEXTSTYLE for this type.
|
|
|
Get the ELEMENT::TYPE designation for this.
|
|
|
Get the TEXTID for the CAD::ELEMENT::TYPE specified.
|
|
||||||||||||
|
Get the GML element string based on 'this'.
|
|
|
Get the TYPE_Insert from this.
|
|
|
Get the Text Label frame parms information from this.
|
|
|
Get the line primitives from this.
|
|
|
Get the TYPE_Mesh from this.
|
|
|
Get the PLANECONIC representation from this.
|
|
|
Get the point primitives from this.
|
|
||||||||||||
|
Get the REGION2D representation from this.
|
|
||||||||||||
|
Get the SUBREGION2D representation from this.
|
|
||||||||||||||||||||
|
Get the Text element information from this.
|
|
|
Get the units of width.
|
|
|
Get the Z value assiociated with this element.
|
|
|
Does the label follow the baseline?
|
|
|
Does the label follow the splined baseline?
|
|
|
Clip vector features under the label when rendering.
|
|
|
Is the element an insertion element?
|
|
|
Can the element be represented by open lines?
|
|
|
Can the element be represented by a PLANECONIC.
|
|
|
Can the element be represented by one or more points?
|
|
|
Is the point inside the element?
|
|
|
Can the element be represented by closed lines?
|
|
|
Is the element a text element?
|
|
|
Is the element valid? Does 'this' represent a CAD element.
|
|
|
Assignment Operator.
|
|
|
Set the label to follow the baseline.
|
|
|
Set the label to follow the splined baseline.
|
|
|
Set the TYPE_RotationBox from 'Box'.
|
|
|
Set the label clip under flag.
|
|
|
Set the database index for this element: '-1' if no database element index exists for this element, >=0 for valid database element index.
|
|
||||||||||||
|
Set 'this' based on the GML element which MUST derive from gml:AbstractGeometryType.
|
|
|
Set the POLYSTYLE for this type.
|
|
|
Set the LINESTYLE for this type.
|
|
|
Set the POINTSTYLE for this type.
|
|
|
Set the TEXTSTYLE for this type.
|
|
|
Set the TYPE_Insert from 'Insert'.
|
|
|
Set the element type and the data based on 'PolyLineList'.
|
|
|
Set the TYPE_Mesh from 'Mesh'.
|
|
|
Set the element type and data based on 'Conic'.
|
|
|
Set the element type and data based on 'point'.
|
|
|
Set the element type and data based on 'PointArray'.
|
|
|
Set the element type and data based on 'PolyLine'.
|
|
|
Set the element type and data based on 'Region'.
|
|
|
Set the element type and data based on 'SubRegion'.
|
|
||||||||||||||||||||
|
Set the TYPE_Text from the information passed in.
|
|
|
Set the units of width.
|
|
|
Set the Z value assiociated with this element.
|
|
||||||||||||
|
Test this to see if it passes the TEXTCRITERIA given using the REGION2D passed in NOTE: Cannot test a TYPE_Insert element.
|
1.3.8-20040913