36#include <dime/entities/ExtrusionEntity.h>
53 bool hasWeights()
const;
55 int16 getFlags()
const;
56 void setFlags(
const int16 flags);
58 int16 getDegree()
const;
59 void setDegree(
const int16 degree);
61 dxfdouble getControlPointTolerance()
const;
62 void setControlPointTolerance(
const dxfdouble tol);
63 dxfdouble getFitPointTolerance()
const;
64 void setFitPointTolerance(
const dxfdouble tol);
65 dxfdouble getKnotTolerance()
const;
66 void setKnotTolerance(
const dxfdouble tol);
68 int getNumKnots()
const;
69 dxfdouble getKnotValue(
const int idx)
const;
70 void setKnotValue(
const int idx,
const dxfdouble value);
71 void setKnotValues(
const dxfdouble *
const values,
const int numvalues,
74 int getNumControlPoints()
const;
75 const dimeVec3f &getControlPoint(
const int idx)
const;
76 void setControlPoint(
const int idx,
const dimeVec3f &v);
77 void setControlPoints(
const dimeVec3f *
const pts,
const int numpts,
80 int getNumWeights()
const;
81 dxfdouble getWeight(
const int idx)
const;
82 void setWeight(
const int idx,
const dxfdouble w,
85 int getNumFitPoints()
const;
86 const dimeVec3f &getFitPoint(
const int idx)
const;
87 void setFitPoint(
const int idx,
const dimeVec3f &pt);
88 void setFitPoints(
const dimeVec3f *
const pts,
const int numpts,
92 virtual bool getRecord(
const int groupcode,
94 const int index)
const;
97 virtual void print()
const;
99 virtual int typeId()
const;
112 int32 numControlPoints;
117 int16 numControlPoints;
120 dxfdouble knotTolerance;
121 dxfdouble fitTolerance;
122 dxfdouble cpTolerance;
137dimeSpline::getFlags()
const
143dimeSpline::setFlags(
const int16 flags)
149dimeSpline::getDegree()
const
155dimeSpline::setDegree(
const int16 degree)
157 this->degree = degree;
161dimeSpline::getControlPointTolerance()
const
163 return this->cpTolerance;
167dimeSpline::setControlPointTolerance(
const dxfdouble tol)
169 this->cpTolerance = tol;
173dimeSpline::getFitPointTolerance()
const
175 return this->fitTolerance;
179dimeSpline::setFitPointTolerance(
const dxfdouble tol)
181 this->fitTolerance = tol;
185dimeSpline::getKnotTolerance()
const
187 return this->knotTolerance;
191dimeSpline::setKnotTolerance(
const dxfdouble tol)
193 this->knotTolerance = tol;
197dimeSpline::getNumKnots()
const
199 return this->numKnots;
203dimeSpline::getKnotValue(
const int idx)
const
205 assert(idx >= 0 && idx < this->numKnots);
206 return this->knots[idx];
210dimeSpline::setKnotValue(
const int idx,
const dxfdouble value)
212 assert(idx >= 0 && idx < this->numKnots);
213 this->knots[idx] = value;
217dimeSpline::getNumControlPoints()
const
219 return this->numControlPoints;
223dimeSpline::getControlPoint(
const int idx)
const
225 assert(idx >= 0 && idx < this->numControlPoints);
226 return this->controlPoints[idx];
230dimeSpline::setControlPoint(
const int idx,
const dimeVec3f &v)
232 assert(idx >= 0 && idx < this->numControlPoints);
233 this->controlPoints[idx] = v;
237dimeSpline::getNumWeights()
const
239 return this->getNumControlPoints();
243dimeSpline::getWeight(
const int idx)
const
246 assert(idx >= 0 && idx < this->numControlPoints);
247 return this->weights[idx];
253dimeSpline::getNumFitPoints()
const
255 return this->numFitPoints;
259dimeSpline::getFitPoint(
const int idx)
const
261 assert(idx >= 0 && idx < this->numFitPoints);
262 return this->fitPoints[idx];
266dimeSpline::setFitPoint(
const int idx,
const dimeVec3f &pt)
268 assert(idx >= 0 && idx < this->numFitPoints);
269 this->fitPoints[idx] = pt;
virtual int typeId() const =0
The dimeEntity class is the superclass of all entity classes.
Definition Entity.h:61
virtual bool getRecord(const int groupcode, dimeParam ¶m, const int index=0) const
Definition Entity.cpp:715
virtual bool write(dimeOutput *const out)
Definition Entity.cpp:271
virtual const char * getEntityName() const =0
virtual int countRecords() const
Definition Entity.cpp:526
virtual bool handleRecord(const int groupcode, const dimeParam ¶m, dimeMemHandler *const memhandler)
Definition Entity.cpp:659
virtual dimeEntity * copy(dimeModel *const model) const =0
The dimeMemHandler class is a special-purpose memory manager.
Definition MemHandler.h:39
The dimeModel class organizes a model.
Definition Model.h:55
The dimeOutput class handles writing of DXF and DXB files.
Definition Output.h:42
The dimeSpline class handles a SPLINE entity.
Definition Spline.h:40
bool hasWeights() const
Definition Spline.cpp:88
The dimeVec3f class is for containing and operating on a 3D vector / coordinate.
Definition Linear.h:62
The dimeParam class is a union of the different parameter types.
Definition Basic.h:102