35 #include "cadheader.h" 44 CADVector(
double dx,
double dy,
double dz);
46 bool operator == (
const CADVector& second);
49 void setX(
double value);
52 void setY(
double value);
55 void setZ(
double value);
57 bool getBHasZ()
const;
58 void setBHasZ(
bool value);
61 inline bool fcmp(
double x,
double y);
73 vector<unsigned char> acData;
76 typedef vector<CADHandle> CADHandleArray;
77 typedef vector<CADEed> CADEedArray;
101 VERTEX_PFACE_FACE = 0x0E,
107 DIMENSION_ORDINATE = 0x14,
108 DIMENSION_LINEAR = 0x15,
109 DIMENSION_ALIGNED = 0x16,
110 DIMENSION_ANG_3PT = 0x17,
111 DIMENSION_ANG_2LN = 0x18,
112 DIMENSION_RADIUS = 0x19,
113 DIMENSION_DIAMETER = 0x1A,
116 POLYLINE_PFACE = 0x1D,
117 POLYLINE_MESH = 0x1E,
135 BLOCK_CONTROL_OBJ = 0x30,
137 LAYER_CONTROL_OBJ = 0x32,
139 STYLE_CONTROL_OBJ = 0x34,
143 LTYPE_CONTROL_OBJ = 0x38,
147 VIEW_CONTROL_OBJ = 0x3C,
149 UCS_CONTROL_OBJ = 0x3E,
151 VPORT_CONTROL_OBJ = 0x40,
153 APPID_CONTROL_OBJ = 0x42,
155 DIMSTYLE_CONTROL_OBJ = 0x44,
157 VP_ENT_HDR_CTRL_OBJ = 0x46,
163 LONG_TRANSACTION = 0x4C,
167 ACDBPLACEHOLDER = 0x50,
173 DICTIONARYVAR = 0x55,
174 DICTIONARYWDFLT = 0x56,
176 GROUP_UNFIXED = 0x58,
177 HATCH_UNFIXED = 0x59,
181 IMAGEDEFREACTOR = 0x5D,
183 LAYOUT_UNFIXED = 0x5F,
184 LWPOLYLINE_UNFIXED = 0x60,
188 OLE2FRAME_UNFIXED = 0x64,
191 RASTERVARIABLES = 0x67,
193 SORTENTSTABLE = 0x69,
194 SPATIAL_FILTER = 0x6A,
195 SPATIAL_INDEX = 0x6B,
196 TABLEGEOMETRY = 0x6C,
198 VBA_PROJECT_UNFIXED = 0x6E,
200 WIPEOUTVARIABLE = 0x70,
201 XRECORD_UNFIXED = 0x71
205 ObjectType getType()
const;
206 long getSize()
const;
208 void setSize(
long value);
210 void setType(
const ObjectType &value);
212 short getCRC()
const;
213 void setCRC(
short value);
223 string getNameByType(CADObject::ObjectType eType);
224 bool isGeometryType(
short nType);
231 long nObjectSizeInBits;
235 bool bGraphicsPresented;
236 vector<char> abyGraphicsData;
238 unsigned char bbEntMode;
241 bool bNoXDictionaryHandlePresent;
242 bool bBinaryDataPresent;
250 unsigned char bbLTypeFlags;
251 unsigned char bbPlotStyleFlags;
252 char bbMaterialFlags;
256 unsigned char nLineWeight;
265 CADHandleArray hReactors;
300 unsigned char DataFlags;
307 double dfRotationAng;
309 double dfWidthFactor;
325 unsigned char DataFlags;
332 double dfRotationAng;
334 double dfWidthFactor;
342 unsigned char nFlags;
405 CADHandleArray hAtrribs;
429 CADHandleArray hAtrribs;
508 short dCurveNSmoothSurfType;
517 CADHandleArray hVertexes;
529 unsigned char SplinedFlags;
530 unsigned char ClosedFlags;
534 CADHandleArray hVertexes;
587 long nObjectSizeInBits;
591 bool bNoXDictionaryPresent;
595 CADHandleArray hBlocks;
605 long nObjectSizeInBits;
609 bool bNoXDictionaryPresent;
619 long nOwnedObjectsCount;
622 vector<unsigned char> adInsertCount;
623 string sBlockDescription;
624 long nSizeOfPreviewData;
625 vector<unsigned char> abyBinaryPreviewData;
630 vector<CADHandle> hReactors;
634 CADHandleArray hEntities;
636 CADHandleArray hInsertHandles;
648 long nObjectSizeInBits;
652 bool bNoXDictionaryPresent;
656 CADHandleArray hLayers;
667 long nObjectSizeInBits;
671 bool bNoXDictionaryPresent;
678 bool bFrozenInNewVPORT;
685 CADHandleArray hReactors;
702 long nObjectSizeInBits;
706 bool bNoXDictionaryPresent;
710 CADHandleArray hLTypes;
717 short dComplexShapecode;
733 long nObjectSizeInBits;
737 bool bNoXDictionaryPresent;
744 unsigned char dAlignment;
745 unsigned char nNumDashes;
746 vector<CADDash> astDashes;
747 vector<unsigned char> abyTextArea;
749 CADHandleArray hReactors;
752 CADHandleArray hShapefiles;
779 vector<CADVector> avertCorners;
831 long nObjectSizeInBits;
835 bool bNoXDictionaryPresent;
838 unsigned char dHardOwnerFlag;
840 string sDictionaryEntryName;
841 vector<string> sItemNames;
844 CADHandleArray hReactors;
846 CADHandleArray hItemHandles;
861 vector<CADVector> avertVertexes;
862 vector<double> adfBulges;
863 vector<short> adVertexesID;
864 vector<pair<double, double>> astWidths;
894 vector<double> adfKnots;
895 vector<double> adfCtrlPointsWeight;
896 vector<CADVector> avertCtrlPoints;
897 vector<CADVector> averFitPoints;
909 unsigned char dFlags;
911 double dfTextRotation;
916 double dfInsRotation;
918 short dAttachmentPoint;
919 short dLineSpacingStyle;
920 double dfLineSpacingFactor;
921 double dfActualMeasurement;
950 unsigned char Flags2;
1039 short dDisplayProps;
1042 unsigned char dBrightness;
1043 unsigned char dContrast;
1044 unsigned char dFade;
1047 short dClipBoundaryType;
1049 long nNumberVertexesInClipPolygon;
1050 vector < CADVector > avertClippingPolygonVertexes;
1064 long nObjectSizeInBits;
1066 vector < CADEed > aEED;
1068 bool bNoXDictionaryPresent;
1071 vector < CADHandle > hReactors;
1083 double dfXImageSizeInPx;
1084 double dfYImageSizeInPx;
1087 unsigned char dResUnits;
1088 double dfXPixelSize;
1089 double dfYPixelSize;
1104 double dfTextHeight;
1108 double dfExtentsWidth;
1110 short dLineSpacingStyle;
1111 double dLineSpacingFactor;
1113 long dBackgroundFlags;
1114 long dBackgroundScaleFactor;
1115 short dBackgroundColor;
1116 long dBackgroundTransparency;
1126 vector<double> adfSegparms;
1127 short nAreaFillParms;
1128 vector<double> adfAreaFillParameters;
1139 vector < CADLineStyle > astLStyles;
1151 unsigned char dJust;
1155 unsigned char nLinesInStyle;
1158 vector < CADMLineVertex > avertVertexes;
1173 vector < CADVector > avertCorners;
1188 vector < CADHandle > hVertexes;
1192 #endif //CADOBJECTS_H The CAD Block Object class.
Definition: cadobjects.h:361
Definition: cadheader.h:39
The CAD3DFaceObject class.
Definition: cadobjects.h:1166
The CADVertexPFaceObject class.
Definition: cadobjects.h:478
The CADVertex3DObject class.
Definition: cadobjects.h:457
The CADArc class.
Definition: cadobjects.h:542
The CADVertex2DObject class.
Definition: cadobjects.h:436
The CADPolyline3DObject class.
Definition: cadobjects.h:525
The CAD Attribute definition Object class.
Definition: cadobjects.h:351
The CADDimensionAngular3PtObject class.
Definition: cadobjects.h:981
The CADDimensionAngular2LnObject class.
Definition: cadobjects.h:992
The CADCircleObject class.
Definition: cadobjects.h:557
The CADLWPolylineObject class.
Definition: cadobjects.h:852
Definition: cadobjects.h:714
The CADSolidObject class.
Definition: cadobjects.h:772
The base CAD object class.
Definition: cadobjects.h:82
The CAD End block Object class.
Definition: cadobjects.h:372
The CADPolylinePFaceObject class.
Definition: cadobjects.h:1180
The CADLineTypeObject class.
Definition: cadobjects.h:728
The CADDimensionRadiusObject class.
Definition: cadobjects.h:1004
The CADSeqendObject class.
Definition: cadobjects.h:383
The CADDimensionLinearObject class.
Definition: cadobjects.h:956
The CADImageObject class.
Definition: cadobjects.h:1025
Definition: cadobjects.h:39
The CADCommonED struct.
Definition: cadobjects.h:229
The CADMLineObject class.
Definition: cadobjects.h:1145
The CADImageDefObject class.
Definition: cadobjects.h:1078
The CAD Text Object class.
Definition: cadobjects.h:296
The CADVertexPFaceFaceObject class.
Definition: cadobjects.h:488
The CADLayerObject class.
Definition: cadobjects.h:662
MLine vertex data structure.
Definition: cadobjects.h:1134
The CADLayerControlObject class.
Definition: cadobjects.h:643
The CADXLineObject class.
Definition: cadobjects.h:814
The CADSplineObject class.
Definition: cadobjects.h:870
The CADImageDefReactorObject class.
Definition: cadobjects.h:1059
The CADMTextObject class.
Definition: cadobjects.h:1095
Linestyle data structure.
Definition: cadobjects.h:1123
The CADEllipseObject class.
Definition: cadobjects.h:786
The CADDimensionDiameterObject class.
Definition: cadobjects.h:1016
The CADDimensionAlignedObject class.
Definition: cadobjects.h:969
The CADInsertObject class.
Definition: cadobjects.h:393
The CAD Attribute Object class.
Definition: cadobjects.h:321
The CADVertexMesh class.
Definition: cadobjects.h:468
The CADLineTypeControlObject class.
Definition: cadobjects.h:697
The CADRayObject class.
Definition: cadobjects.h:802
The CADMInsertObject class.
Definition: cadobjects.h:412
The CADLineObject class.
Definition: cadobjects.h:570
Common Dimensional Data structure.
Definition: cadobjects.h:903
The CADDictionaryObject class.
Definition: cadobjects.h:826
Definition: cadobjects.h:286
The CADPolyline2DObject class.
Definition: cadobjects.h:502
The CADCommonEHD struct.
Definition: cadobjects.h:262
The CADBlockControlObject class.
Definition: cadobjects.h:583
Definition: cadobjects.h:69
The CADPointObject class.
Definition: cadobjects.h:758
The CADDimensionObject class.
Definition: cadobjects.h:933
The CADDimensionOrdinateObject class.
Definition: cadobjects.h:945