This is the Polyline and Segment Line Class. It is part of the Dtk_Curve entity. More...
Public Member Functions | |
virtual Dtk_ErrorStatus | _ComputeAnyDerivative (Dtk_Double64 u, int inUdiff, Dtk_dir &outdir, int exttype) const |
virtual Dtk_ErrorStatus | _Store (void *) |
void | AddPoint (const Dtk_Double64 &inX, const Dtk_Double64 &inY, const Dtk_Double64 &inZ=0.0) |
void | AddPoint (const Dtk_pnt &inNewPoint) |
Add point to polyline. More... | |
Dtk_ErrorStatus | ComputeBoundingBox (Dtk_pnt &outMin, Dtk_pnt &outMax, Dtk_bool inMorePrecise=0) |
Compute Bounding Box. More... | |
virtual Dtk_pnt | ComputeEndPoint () const |
Return Last point. More... | |
Dtk_Double64 | ComputeLength () |
return curve Length More... | |
Dtk_NurbsCurvePtr | ComputeOffset (Dtk_Double64 inOffset, Dtk_dir inOffsetDirection) |
Compute offset curve and convert it to nurbs. More... | |
virtual Dtk_ErrorStatus | ComputeOrientedBoundingBox (Dtk_pnt &outMin, Dtk_pnt &outMax, const Dtk_transfo &inLocal) |
Compute Oriented Bounding Box. More... | |
virtual Dtk_ErrorStatus | ComputeParameter (const Dtk_pnt &inPoint, Dtk_Double64 &outU) const |
Compute U parameter from point. More... | |
virtual Dtk_pnt | ComputeStartPoint () const |
Compute dir on U parameter. More... | |
virtual Dtk_ErrorStatus | ComputeUDir (const Dtk_Double64 &inU, Dtk_dir &outDir) const |
Compute dir on U parameter. More... | |
virtual Dtk_ErrorStatus | ComputeUPoint (const Dtk_Double64 &inU, Dtk_pnt &outPoint) const |
Compute point on U parameter. More... | |
virtual Dtk_ErrorStatus | ComputeUPointDir (const Dtk_Double64 &inU, Dtk_pnt &outPoint, Dtk_dir &outDir) const |
Compute point and dir on U parameter. More... | |
void | DeleteCorrespondingNurbs () |
int | DtkDynamicType (const int &inId) |
downcasting More... | |
virtual void | dump (FILE *file=stdout) |
Dtk_InfoPtr | get_info () const |
type_detk | get_type_detk () const |
Dtk_Size_t | GetDimension () const |
Return 2 or 3. More... | |
virtual Dtk_ErrorStatus | GetDomain (Dtk_Double64 &outUmin, Dtk_Double64 &outUmax) const |
Get Curve Parametrisation. More... | |
const Dtk_ID & | GetID () const |
Get Internal UniqueID. More... | |
Dtk_Size_t | GetNumPoints () const |
return number of points for the polyline More... | |
virtual Dtk_Size_t | GetSize () const |
Dtk_pnt | GetTrimEndPoint () const |
Return last trim point. More... | |
Dtk_pnt | GetTrimStartPoint () const |
Return first trim point. More... | |
Dtk_Double64 | GetTrimUMax () const |
Get end Trim parameter. More... | |
Dtk_Double64 | GetTrimUMin () const |
Get start Trim parameter. More... | |
Dtk_InfoPtr & | info () |
virtual Dtk_ErrorStatus | InverseTrim () |
virtual Dtk_bool | IsClosed (Dtk_Double64 inTol=DTK_TOLERANCE) const |
return True if Curve is closed More... | |
Dtk_bool | IsLine () |
return True if Curve is a line More... | |
Dtk_bool | IsLine () const |
return DTK_TRUE if polyline is a line DTK_FALSE otherwise More... | |
virtual Dtk_bool | IsPeriodic () const |
return True if Curve is periodic More... | |
Dtk_bool | IsTrimmed () const |
Return DTK_TRUE if Curve Is trimmed by point or parameter value. More... | |
virtual void | Normalize () |
Normalize Curve. More... | |
Dtk_pnt & | Point (const Dtk_Size_t &inIndex) |
const Dtk_pnt & | Point (const Dtk_Size_t &inIndex) const |
return the point at place inIndex More... | |
virtual void | PrepareTransfo () |
virtual void | Reverse () |
Reverse Curve. More... | |
void | SetDimension (const Dtk_Size_t &inDimension) |
Set curve dimension (2 or 3) More... | |
virtual Dtk_ErrorStatus | SetTrimmingParameters (const Dtk_Double64 &inUmin, const Dtk_Double64 &inUmax) |
Set Trim parameter for curve. More... | |
void | SetTrimPoints (const Dtk_pnt &inStartPoint, const Dtk_pnt &inEndPoint) |
Set Trim points for curve. More... | |
virtual Dtk_NurbsCurvePtr | ToNurbs () const |
Convert Curve to nurbs. More... | |
virtual Dtk_PolylinePtr | ToPolyline (const int &inMinPoint, const Dtk_Double64 &inTolerance) const |
Convert Curve to polyline. More... | |
virtual Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
transform Polyline with inTransformation More... | |
Static Public Member Functions | |
static Dtk_PolylinePtr | Create (const Dtk_pnt &inPnt1, const Dtk_pnt &inPnt2) |
static Dtk_PolylinePtr | Create (const Dtk_Polyline &inPolylineToCopy) |
constructors returning Smart pointers More... | |
static Dtk_PolylinePtr | Create (const Dtk_tab< Dtk_pnt > &inPoints) |
static Dtk_Polyline * | DtkDynamicCast (Dtk_Object *inObjectToCast) |
Protected Types | |
enum | { _typeID = DTK_TYPE_OBJECT } |
enum | { _typeID = DTK_TYPE_CURVE } |
enum | { _typeID = DTK_TYPE_POLYLINE } |
Entity Type. More... | |
Protected Member Functions | |
void | _Copy (const Dtk_Curve &s) |
void | _copy (const Dtk_Entity &s) |
void | _copy (const Dtk_Object &s) |
void | _init () |
void | _reset () |
virtual Dtk_Object * | Clone () |
Dtk_Polyline () | |
Default constructor. More... | |
Dtk_Polyline (const Dtk_pnt &inPnt1, const Dtk_pnt &inPnt2) | |
constructor More... | |
Dtk_Polyline (const Dtk_Polyline &inPolylineToCopy) | |
constructor More... | |
Dtk_Polyline (const Dtk_tab< Dtk_pnt > &inPoints) | |
constructor More... | |
virtual | ~Dtk_Polyline () |
Default destructor. More... | |
Protected Attributes | |
Dtk_Handle * | _Private |
Handle More... | |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_Polyline > |
smart pointer More... | |
This is the Polyline and Segment Line Class. It is part of the Dtk_Curve entity.
|
protected |
|
protected |
Default constructor.
|
protected |
constructor
|
protectedvirtual |
Default destructor.
|
virtual |
Reimplemented from Dtk_Curve.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
virtual |
Reimplemented from Dtk_Curve.
void Dtk_Polyline::AddPoint | ( | const Dtk_Double64 & | inX, |
const Dtk_Double64 & | inY, | ||
const Dtk_Double64 & | inZ = 0.0 |
||
) |
void Dtk_Polyline::AddPoint | ( | const Dtk_pnt & | inNewPoint | ) |
Add point to polyline.
|
protectedvirtual |
Implements Dtk_Curve.
|
virtual |
Compute Bounding Box.
Reimplemented from Dtk_Curve.
|
virtual |
Return Last point.
Implements Dtk_Curve.
|
inherited |
return curve Length
|
inherited |
Compute offset curve and convert it to nurbs.
|
virtualinherited |
Compute Oriented Bounding Box.
|
virtual |
Compute U parameter from point.
Implements Dtk_Curve.
|
virtual |
Compute dir on U parameter.
Implements Dtk_Curve.
|
virtualinherited |
Compute dir on U parameter.
Reimplemented in Dtk_Ellipse, Dtk_Line, and Dtk_NurbsCurve.
|
virtual |
Compute point on U parameter.
Implements Dtk_Curve.
|
virtualinherited |
Compute point and dir on U parameter.
Reimplemented in Dtk_NurbsCurve.
|
static |
|
static |
constructors returning Smart pointers
|
static |
|
inherited |
|
static |
|
virtual |
downcasting
Reimplemented from Dtk_Curve.
|
virtualinherited |
|
inherited |
|
virtual |
Implements Dtk_Entity.
|
inherited |
Return 2 or 3.
|
virtual |
Get Curve Parametrisation.
Implements Dtk_Curve.
|
inherited |
Get Internal UniqueID.
Dtk_Size_t Dtk_Polyline::GetNumPoints | ( | ) | const |
return number of points for the polyline
|
virtual |
Reimplemented from Dtk_Curve.
|
inherited |
Return last trim point.
|
inherited |
Return first trim point.
|
inherited |
Get end Trim parameter.
|
inherited |
Get start Trim parameter.
|
inherited |
|
virtualinherited |
|
virtualinherited |
return True if Curve is closed
Reimplemented in Dtk_NurbsCurve.
|
inherited |
return True if Curve is a line
Dtk_bool Dtk_Polyline::IsLine | ( | ) | const |
return DTK_TRUE if polyline is a line DTK_FALSE otherwise
|
virtualinherited |
return True if Curve is periodic
Reimplemented in Dtk_NurbsCurve.
|
inherited |
Return DTK_TRUE if Curve Is trimmed by point or parameter value.
|
virtualinherited |
Normalize Curve.
Reimplemented in Dtk_Line.
Dtk_pnt& Dtk_Polyline::Point | ( | const Dtk_Size_t & | inIndex | ) |
const Dtk_pnt& Dtk_Polyline::Point | ( | const Dtk_Size_t & | inIndex | ) | const |
return the point at place inIndex
|
virtualinherited |
Reimplemented in Dtk_OffsetSurface.
|
virtual |
Reverse Curve.
Implements Dtk_Curve.
|
inherited |
Set curve dimension (2 or 3)
|
virtualinherited |
Set Trim parameter for curve.
|
inherited |
Set Trim points for curve.
|
virtual |
Convert Curve to nurbs.
Implements Dtk_Curve.
|
virtual |
Convert Curve to polyline.
[in] | inMinPoint | : Minimal number of result points |
[in] | inTolerance | : max tolerance for 3 points alignement. |
Implements Dtk_Curve.
|
virtual |
transform Polyline with inTransformation
Reimplemented from Dtk_Curve.
|
friend |
smart pointer
|
protected |
Handle
|
protectedinherited |