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;
137 dimeSpline::getFlags()
const 143 dimeSpline::setFlags(
const int16 flags)
149 dimeSpline::getDegree()
const 155 dimeSpline::setDegree(
const int16 degree)
157 this->degree = degree;
161 dimeSpline::getControlPointTolerance()
const 163 return this->cpTolerance;
167 dimeSpline::setControlPointTolerance(
const dxfdouble tol)
169 this->cpTolerance = tol;
173 dimeSpline::getFitPointTolerance()
const 175 return this->fitTolerance;
179 dimeSpline::setFitPointTolerance(
const dxfdouble tol)
181 this->fitTolerance = tol;
185 dimeSpline::getKnotTolerance()
const 187 return this->knotTolerance;
191 dimeSpline::setKnotTolerance(
const dxfdouble tol)
193 this->knotTolerance = tol;
197 dimeSpline::getNumKnots()
const 199 return this->numKnots;
203 dimeSpline::getKnotValue(
const int idx)
const 205 assert(idx >= 0 && idx < this->numKnots);
206 return this->knots[idx];
210 dimeSpline::setKnotValue(
const int idx,
const dxfdouble value)
212 assert(idx >= 0 && idx < this->numKnots);
213 this->knots[idx] = value;
217 dimeSpline::getNumControlPoints()
const 219 return this->numControlPoints;
223 dimeSpline::getControlPoint(
const int idx)
const 225 assert(idx >= 0 && idx < this->numControlPoints);
226 return this->controlPoints[idx];
230 dimeSpline::setControlPoint(
const int idx,
const dimeVec3f &v)
232 assert(idx >= 0 && idx < this->numControlPoints);
233 this->controlPoints[idx] = v;
237 dimeSpline::getNumWeights()
const 239 return this->getNumControlPoints();
243 dimeSpline::getWeight(
const int idx)
const 246 assert(idx >= 0 && idx < this->numControlPoints);
247 return this->weights[idx];
253 dimeSpline::getNumFitPoints()
const 255 return this->numFitPoints;
259 dimeSpline::getFitPoint(
const int idx)
const 261 assert(idx >= 0 && idx < this->numFitPoints);
262 return this->fitPoints[idx];
266 dimeSpline::setFitPoint(
const int idx,
const dimeVec3f &pt)
268 assert(idx >= 0 && idx < this->numFitPoints);
269 this->fitPoints[idx] = pt;
272 #endif // ! DIME_SPLINE_H The dimeMemHandler class is a special-purpose memory manager.
Definition: MemHandler.h:38
virtual int typeId() const =0
The dimeSpline class handles a SPLINE entity.
Definition: Spline.h:39
virtual int countRecords() const
Definition: Entity.cpp:526
virtual dimeEntity * copy(dimeModel *const model) const =0
The dimeEntity class is the superclass of all entity classes.
Definition: Entity.h:60
The dimeModel class organizes a model.
Definition: Model.h:54
virtual const char * getEntityName() const =0
The dimeVec3f class is for containing and operating on a 3D vector / coordinate.
Definition: Linear.h:61
The dimeParam class is a union of the different parameter types.
Definition: Basic.h:102
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 bool handleRecord(const int groupcode, const dimeParam ¶m, dimeMemHandler *const memhandler)
Definition: Entity.cpp:659
The dimeOutput class handles writing of DXF and DXB files.
Definition: Output.h:41
bool hasWeights() const
Definition: Spline.cpp:88