33 #ifndef DIME_POLYLINE_H
34 #define DIME_POLYLINE_H
36 #include <dime/Basic.h>
37 #include <dime/entities/ExtrusionEntity.h>
38 #include <dime/util/Array.h>
39 #include <dime/util/Linear.h>
58 POLYMESH_CLOSED_M = 0x01,
61 IS_POLYLINE_3D = 0x08,
62 IS_POLYMESH_3D = 0x10,
63 POLYMESH_CLOSED_N = 0x20,
64 IS_POLYFACE_MESH = 0x40,
65 CONTINOUS_PATTERN = 0x80
75 int16 getFlags()
const;
76 void setFlags(
const int16 flags);
83 int16 getPolymeshCountN()
const;
84 int16 getPolymeshCountM()
const;
85 int16 getSmoothSurfaceMdensity()
const;
86 int16 getSmoothSurfaceNdensity()
const;
88 int getNumCoordVertices()
const;
89 int getNumIndexVertices()
const;
90 int getNumSplineFrameControlPoints()
const;
92 int16 getSurfaceType()
const;
93 void setSurfaceType(
const int16 type);
97 dimeVertex *getSplineFrameControlPoint(
const int index);
99 void setCoordVertices(
dimeVertex **vertices,
const int num,
101 void setIndexVertices(
dimeVertex **vertices,
const int num,
103 void setSplineFrameControlPoints(
dimeVertex **vertices,
const int num,
110 virtual bool getRecord(
const int groupcode,
112 const int index = 0)
const;
119 virtual int typeId()
const;
125 dxfdouble &thickness);
127 void clearSurfaceData();
134 dimeCallback callback,
139 int numCoordVertices()
const;
140 int numIndexVertices()
const;
170 dimePolyline::getFlags()
const
176 dimePolyline::setFlags(
const int16 flags)
182 dimePolyline::getElevation()
const
188 dimePolyline::setElevation(
const dimeVec3f &e)
194 dimePolyline::getPolymeshCountN()
const
200 dimePolyline::getPolymeshCountM()
const
206 dimePolyline::getSmoothSurfaceMdensity()
const
208 return this->smoothCountM;
212 dimePolyline::getSmoothSurfaceNdensity()
const
214 return this->smoothCountN;
218 dimePolyline::getNumCoordVertices()
const
220 return this->coordCnt;
224 dimePolyline::getNumIndexVertices()
const
226 return this->indexCnt;
230 dimePolyline::getNumSplineFrameControlPoints()
const
232 return this->frameCnt;
236 dimePolyline::getCoordVertex(
const int index)
238 return this->coordVertices[index];
242 dimePolyline::getIndexVertex(
const int index)
244 return this->indexVertices[index];
248 dimePolyline::getSplineFrameControlPoint(
const int index)
250 return this->frameVertices[index];
254 dimePolyline::getSurfaceType()
const
256 return this->surfaceType;
260 dimePolyline::setSurfaceType(
const int16 type)
262 this->surfaceType = type;
266 #endif // ! DIME_POLYLINE_H