Open CASCADE Technology  6.9.0
Public Member Functions | Protected Attributes

GeomFill_Profiler Class Reference

Evaluation of the common BSplineProfile of a group of curves from Geom. All the curves will have the same degree, the same knot-vector, so the same number of poles. More...

#include <GeomFill_Profiler.hxx>

Inheritance diagram for GeomFill_Profiler:
Inheritance graph
[legend]

Public Member Functions

 GeomFill_Profiler ()
 
virtual ~GeomFill_Profiler ()
 
void AddCurve (const Handle< Geom_Curve > &Curve)
 
virtual void Perform (const Standard_Real PTol)
 Converts all curves to BSplineCurves. Set them to the common profile. <PTol> is used to compare 2 knots. More...
 
Standard_Integer Degree () const
 Raises if not yet perform. More...
 
Standard_Boolean IsPeriodic () const
 
Standard_Integer NbPoles () const
 Raises if not yet perform. More...
 
void Poles (const Standard_Integer Index, TColgp_Array1OfPnt &Poles) const
 returns in <Poles> the poles of the BSplineCurve from index <Index> adjusting to the current profile. Raises if not yet perform Raises if <Index> not in the range [1,NbCurves] if the length of <Poles> is not equal to NbPoles(). More...
 
void Weights (const Standard_Integer Index, TColStd_Array1OfReal &Weights) const
 returns in <Weights> the weights of the BSplineCurve from index <Index> adjusting to the current profile. Raises if not yet perform Raises if <Index> not in the range [1,NbCurves] or if the length of <Weights> is not equal to NbPoles(). More...
 
Standard_Integer NbKnots () const
 Raises if not yet perform. More...
 
void KnotsAndMults (TColStd_Array1OfReal &Knots, TColStd_Array1OfInteger &Mults) const
 Raises if not yet perform Raises if the lengthes of <Knots> and <Mults> are not equal to NbKnots(). More...
 
const Handle< Geom_Curve > & Curve (const Standard_Integer Index) const
 

Protected Attributes

TColGeom_SequenceOfCurve mySequence
 
Standard_Boolean myIsDone
 
Standard_Boolean myIsPeriodic
 

Detailed Description

Evaluation of the common BSplineProfile of a group of curves from Geom. All the curves will have the same degree, the same knot-vector, so the same number of poles.

Constructor & Destructor Documentation

GeomFill_Profiler::GeomFill_Profiler ( )
virtual GeomFill_Profiler::~GeomFill_Profiler ( )
virtual

Member Function Documentation

void GeomFill_Profiler::AddCurve ( const Handle< Geom_Curve > &  Curve)
const Handle< Geom_Curve >& GeomFill_Profiler::Curve ( const Standard_Integer  Index) const
Standard_Integer GeomFill_Profiler::Degree ( ) const

Raises if not yet perform.

Standard_Boolean GeomFill_Profiler::IsPeriodic ( ) const
void GeomFill_Profiler::KnotsAndMults ( TColStd_Array1OfReal Knots,
TColStd_Array1OfInteger Mults 
) const

Raises if not yet perform Raises if the lengthes of <Knots> and <Mults> are not equal to NbKnots().

Standard_Integer GeomFill_Profiler::NbKnots ( ) const

Raises if not yet perform.

Standard_Integer GeomFill_Profiler::NbPoles ( ) const

Raises if not yet perform.

virtual void GeomFill_Profiler::Perform ( const Standard_Real  PTol)
virtual

Converts all curves to BSplineCurves. Set them to the common profile. <PTol> is used to compare 2 knots.

Reimplemented in GeomFill_Generator.

void GeomFill_Profiler::Poles ( const Standard_Integer  Index,
TColgp_Array1OfPnt Poles 
) const

returns in <Poles> the poles of the BSplineCurve from index <Index> adjusting to the current profile. Raises if not yet perform Raises if <Index> not in the range [1,NbCurves] if the length of <Poles> is not equal to NbPoles().

void GeomFill_Profiler::Weights ( const Standard_Integer  Index,
TColStd_Array1OfReal Weights 
) const

returns in <Weights> the weights of the BSplineCurve from index <Index> adjusting to the current profile. Raises if not yet perform Raises if <Index> not in the range [1,NbCurves] or if the length of <Weights> is not equal to NbPoles().

Field Documentation

Standard_Boolean GeomFill_Profiler::myIsDone
protected
Standard_Boolean GeomFill_Profiler::myIsPeriodic
protected
TColGeom_SequenceOfCurve GeomFill_Profiler::mySequence
protected

The documentation for this class was generated from the following file: