30 #ifndef DIME_POLYLINE_H
31 #define DIME_POLYLINE_H
33 #include <dime/Basic.h>
34 #include <dime/entities/ExtrusionEntity.h>
35 #include <dime/util/Array.h>
36 #include <dime/util/Linear.h>
55 POLYMESH_CLOSED_M = 0x01,
58 IS_POLYLINE_3D = 0x08,
59 IS_POLYMESH_3D = 0x10,
60 POLYMESH_CLOSED_N = 0x20,
61 IS_POLYFACE_MESH = 0x40,
62 CONTINOUS_PATTERN = 0x80
72 int16 getFlags()
const;
73 void setFlags(
const int16 flags);
80 int16 getPolymeshCountN()
const;
81 int16 getPolymeshCountM()
const;
82 int16 getSmoothSurfaceMdensity()
const;
83 int16 getSmoothSurfaceNdensity()
const;
85 int getNumCoordVertices()
const;
86 int getNumIndexVertices()
const;
87 int getNumSplineFrameControlPoints()
const;
89 int16 getSurfaceType()
const;
90 void setSurfaceType(
const int16 type);
94 dimeVertex *getSplineFrameControlPoint(
const int index);
96 void setCoordVertices(
dimeVertex **vertices,
const int num,
98 void setIndexVertices(
dimeVertex **vertices,
const int num,
100 void setSplineFrameControlPoints(
dimeVertex **vertices,
const int num,
104 virtual bool getRecord(
const int groupcode,
106 const int index = 0)
const;
113 virtual int typeId()
const;
119 dxfdouble &thickness);
121 void clearSurfaceData();
128 dimeCallback callback,
133 int numCoordVertices()
const;
134 int numIndexVertices()
const;
168 dimePolyline::getFlags()
const
174 dimePolyline::setFlags(
const int16 flags)
180 dimePolyline::getElevation()
const
186 dimePolyline::setElevation(
const dimeVec3f &e)
192 dimePolyline::getPolymeshCountN()
const
198 dimePolyline::getPolymeshCountM()
const
204 dimePolyline::getSmoothSurfaceMdensity()
const
206 return this->smoothCountM;
210 dimePolyline::getSmoothSurfaceNdensity()
const
212 return this->smoothCountN;
216 dimePolyline::getNumCoordVertices()
const
218 return this->coordCnt;
222 dimePolyline::getNumIndexVertices()
const
224 return this->indexCnt;
228 dimePolyline::getNumSplineFrameControlPoints()
const
230 return this->frameCnt;
234 dimePolyline::getCoordVertex(
const int index)
236 return this->coordVertices[index];
240 dimePolyline::getIndexVertex(
const int index)
242 return this->indexVertices[index];
246 dimePolyline::getSplineFrameControlPoint(
const int index)
248 return this->frameVertices[index];
252 dimePolyline::getSurfaceType()
const
254 return this->surfaceType;
258 dimePolyline::setSurfaceType(
const int16 type)
260 this->surfaceType = type;
264 #endif // ! DIME_POLYLINE_H