Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions
AppParCurves_MultiBSpCurve Class Reference

This class describes a MultiBSpCurve approximating a Multiline.
Just as a Multiline is a set of a given number of lines, a MultiBSpCurve is a set
of a specified number of bsplines defined by:
More...

#include <AppParCurves_MultiBSpCurve.hxx>

Inheritance diagram for AppParCurves_MultiBSpCurve:
Inheritance graph
[legend]

Public Member Functions

 AppParCurves_MultiBSpCurve ()
 returns an indefinite MultiBSpCurve.
More...
 
 AppParCurves_MultiBSpCurve (const Standard_Integer NbPol)
 creates a MultiBSpCurve, describing BSpline curves all
containing the same number of MultiPoint.
An exception is raised if Degree < 0.
More...
 
 AppParCurves_MultiBSpCurve (const AppParCurves_Array1OfMultiPoint &tabMU, const TColStd_Array1OfReal &Knots, const TColStd_Array1OfInteger &Mults)
 creates a MultiBSpCurve, describing BSpline curves all
containing the same number of MultiPoint.
Each MultiPoint must have NbCurves Poles.
More...
 
 AppParCurves_MultiBSpCurve (const AppParCurves_MultiCurve &SC, const TColStd_Array1OfReal &Knots, const TColStd_Array1OfInteger &Mults)
 creates a MultiBSpCurve, describing BSpline
curves, taking control points from <SC>.
More...
 
void SetKnots (const TColStd_Array1OfReal &theKnots)
 Knots of the multiBSpCurve are assigned to <theknots>.
More...
 
void SetMultiplicities (const TColStd_Array1OfInteger &theMults)
 Multiplicities of the multiBSpCurve are assigned
to <theMults>.
More...
 
const TColStd_Array1OfRealKnots () const
 
 Returns an array of Reals containing <br>

the multiplicities of curves resulting from the approximation.
More...

 
const TColStd_Array1OfIntegerMultiplicities () const
 
Returns an array of Reals containing the <br>

multiplicities of curves resulting from the approximation.
More...

 
virtual Standard_Integer Degree () const
 returns the degree of the curve(s).
More...
 
virtual void Value (const Standard_Integer CuIndex, const Standard_Real U, gp_Pnt &Pt) const
 returns the value of the point with a parameter U
on the BSpline curve number CuIndex.
An exception is raised if CuIndex <0 or > NbCurves.
An exception is raised if the curve dimension is 2d.
More...
 
virtual void Value (const Standard_Integer CuIndex, const Standard_Real U, gp_Pnt2d &Pt) const
 returns the value of the point with a parameter U
on the BSpline curve number CuIndex.
An exception is raised if CuIndex <0 or > NbCurves.
An exception is raised if the curve dimension is 3d.
More...
 
virtual void D1 (const Standard_Integer CuIndex, const Standard_Real U, gp_Pnt &Pt, gp_Vec &V1) const
 returns the value of the point with a parameter U
on the BSpline curve number CuIndex.
An exception is raised if CuIndex <0 or > NbCurves.
An exception is raised if the curve dimension is 3d.
More...
 
virtual void D1 (const Standard_Integer CuIndex, const Standard_Real U, gp_Pnt2d &Pt, gp_Vec2d &V1) const
 returns the value of the point with a parameter U
on the BSpline curve number CuIndex.
An exception is raised if CuIndex <0 or > NbCurves.
An exception is raised if the curve dimension is 2d.
More...
 
virtual void D2 (const Standard_Integer CuIndex, const Standard_Real U, gp_Pnt &Pt, gp_Vec &V1, gp_Vec &V2) const
 returns the value of the point with a parameter U
on the BSpline curve number CuIndex.
An exception is raised if CuIndex <0 or > NbCurves.
An exception is raised if the curve dimension is 3d.
More...
 
virtual void D2 (const Standard_Integer CuIndex, const Standard_Real U, gp_Pnt2d &Pt, gp_Vec2d &V1, gp_Vec2d &V2) const
 returns the value of the point with a parameter U
on the BSpline curve number CuIndex.
An exception is raised if CuIndex <0 or > NbCurves.
An exception is raised if the curve dimension is 2d.
More...
 
virtual void Dump (Standard_OStream &o) const
 Prints on the stream o information on the current
state of the object.
Is used to redefine the operator <<.
More...
 
- Public Member Functions inherited from AppParCurves_MultiCurve
 AppParCurves_MultiCurve ()
 returns an indefinite MultiCurve.
More...
 
 AppParCurves_MultiCurve (const Standard_Integer NbPol)
 creates a MultiCurve, describing Bezier curves all
containing the same number of MultiPoint.
An exception is raised if Degree < 0.
More...
 
 AppParCurves_MultiCurve (const AppParCurves_Array1OfMultiPoint &tabMU)
 creates a MultiCurve, describing Bezier curves all
containing the same number of MultiPoint.
Each MultiPoint must have NbCurves Poles.
More...
 
virtual void Delete ()
 
virtual ~AppParCurves_MultiCurve ()
 
void SetNbPoles (const Standard_Integer nbPoles)
 The number of poles of the MultiCurve
will be set to <nbPoles>.
More...
 
void SetValue (const Standard_Integer Index, const AppParCurves_MultiPoint &MPoint)
 sets the MultiPoint of range Index to the value
<MPoint>.
An exception is raised if Index <0 or Index >NbMPoint.
More...
 
Standard_Integer NbCurves () const
 
 Returns the number of curves resulting from the <br>

approximation of a MultiLine.
More...

 
virtual Standard_Integer NbPoles () const
 Returns the number of poles on curves resulting from the approximation of a MultiLine.
More...
 
Standard_Integer Dimension (const Standard_Integer CuIndex) const
 returns the dimension of the CuIndex curve.
An exception is raised if CuIndex<0 or CuIndex>NbCurves.
More...
 
void Curve (const Standard_Integer CuIndex, TColgp_Array1OfPnt &TabPnt) const
 returns the Pole array of the curve of range CuIndex.
An exception is raised if the dimension of the curve
is 2d.
More...
 
void Curve (const Standard_Integer CuIndex, TColgp_Array1OfPnt2d &TabPnt) const
 returns the Pole array of the curve of range CuIndex.
An exception is raised if the dimension of the curve
is 3d.
More...
 
const AppParCurves_MultiPointValue (const Standard_Integer Index) const
 returns the Index MultiPoint.
An exception is raised if Index <0 or Index >Degree+1.
More...
 
const gp_PntPole (const Standard_Integer CuIndex, const Standard_Integer Nieme) const
 returns the Nieme pole of the CuIndex curve.
the curve must be a 3D curve.
More...
 
const gp_Pnt2dPole2d (const Standard_Integer CuIndex, const Standard_Integer Nieme) const
 returns the Nieme pole of the CuIndex curve.
the curve must be a 2D curve.
More...
 
void Transform (const Standard_Integer CuIndex, const Standard_Real x, const Standard_Real dx, const Standard_Real y, const Standard_Real dy, const Standard_Real z, const Standard_Real dz)
 Applies a transformation to the curve of range
<CuIndex>.
newx = x + dx*oldx
newy = y + dy*oldy for all points of the curve.
newz = z + dz*oldz
More...
 
void Transform2d (const Standard_Integer CuIndex, const Standard_Real x, const Standard_Real dx, const Standard_Real y, const Standard_Real dy)
 Applies a transformation to the Curve of range
<CuIndex>.
newx = x + dx*oldx
newy = y + dy*oldy for all points of the curve.
More...
 

Additional Inherited Members

- Protected Attributes inherited from AppParCurves_MultiCurve
Handle_AppParCurves_HArray1OfMultiPoint tabPoint
 

Detailed Description

This class describes a MultiBSpCurve approximating a Multiline.
Just as a Multiline is a set of a given number of lines, a MultiBSpCurve is a set
of a specified number of bsplines defined by:

Constructor & Destructor Documentation

AppParCurves_MultiBSpCurve::AppParCurves_MultiBSpCurve ( )

returns an indefinite MultiBSpCurve.

AppParCurves_MultiBSpCurve::AppParCurves_MultiBSpCurve ( const Standard_Integer  NbPol)

creates a MultiBSpCurve, describing BSpline curves all
containing the same number of MultiPoint.
An exception is raised if Degree < 0.

AppParCurves_MultiBSpCurve::AppParCurves_MultiBSpCurve ( const AppParCurves_Array1OfMultiPoint tabMU,
const TColStd_Array1OfReal Knots,
const TColStd_Array1OfInteger Mults 
)

creates a MultiBSpCurve, describing BSpline curves all
containing the same number of MultiPoint.
Each MultiPoint must have NbCurves Poles.

AppParCurves_MultiBSpCurve::AppParCurves_MultiBSpCurve ( const AppParCurves_MultiCurve SC,
const TColStd_Array1OfReal Knots,
const TColStd_Array1OfInteger Mults 
)

creates a MultiBSpCurve, describing BSpline
curves, taking control points from <SC>.

Member Function Documentation

virtual void AppParCurves_MultiBSpCurve::D1 ( const Standard_Integer  CuIndex,
const Standard_Real  U,
gp_Pnt Pt,
gp_Vec V1 
) const
virtual

returns the value of the point with a parameter U
on the BSpline curve number CuIndex.
An exception is raised if CuIndex <0 or > NbCurves.
An exception is raised if the curve dimension is 3d.

Reimplemented from AppParCurves_MultiCurve.

virtual void AppParCurves_MultiBSpCurve::D1 ( const Standard_Integer  CuIndex,
const Standard_Real  U,
gp_Pnt2d Pt,
gp_Vec2d V1 
) const
virtual

returns the value of the point with a parameter U
on the BSpline curve number CuIndex.
An exception is raised if CuIndex <0 or > NbCurves.
An exception is raised if the curve dimension is 2d.

Reimplemented from AppParCurves_MultiCurve.

virtual void AppParCurves_MultiBSpCurve::D2 ( const Standard_Integer  CuIndex,
const Standard_Real  U,
gp_Pnt Pt,
gp_Vec V1,
gp_Vec V2 
) const
virtual

returns the value of the point with a parameter U
on the BSpline curve number CuIndex.
An exception is raised if CuIndex <0 or > NbCurves.
An exception is raised if the curve dimension is 3d.

Reimplemented from AppParCurves_MultiCurve.

virtual void AppParCurves_MultiBSpCurve::D2 ( const Standard_Integer  CuIndex,
const Standard_Real  U,
gp_Pnt2d Pt,
gp_Vec2d V1,
gp_Vec2d V2 
) const
virtual

returns the value of the point with a parameter U
on the BSpline curve number CuIndex.
An exception is raised if CuIndex <0 or > NbCurves.
An exception is raised if the curve dimension is 2d.

Reimplemented from AppParCurves_MultiCurve.

virtual Standard_Integer AppParCurves_MultiBSpCurve::Degree ( ) const
virtual

returns the degree of the curve(s).

Reimplemented from AppParCurves_MultiCurve.

virtual void AppParCurves_MultiBSpCurve::Dump ( Standard_OStream o) const
virtual

Prints on the stream o information on the current
state of the object.
Is used to redefine the operator <<.

Reimplemented from AppParCurves_MultiCurve.

const TColStd_Array1OfReal& AppParCurves_MultiBSpCurve::Knots ( ) const

 Returns an array of Reals containing <br>

the multiplicities of curves resulting from the approximation.

const TColStd_Array1OfInteger& AppParCurves_MultiBSpCurve::Multiplicities ( ) const

Returns an array of Reals containing the <br>

multiplicities of curves resulting from the approximation.

void AppParCurves_MultiBSpCurve::SetKnots ( const TColStd_Array1OfReal theKnots)

Knots of the multiBSpCurve are assigned to <theknots>.

void AppParCurves_MultiBSpCurve::SetMultiplicities ( const TColStd_Array1OfInteger theMults)

Multiplicities of the multiBSpCurve are assigned
to <theMults>.

virtual void AppParCurves_MultiBSpCurve::Value ( const Standard_Integer  CuIndex,
const Standard_Real  U,
gp_Pnt Pt 
) const
virtual

returns the value of the point with a parameter U
on the BSpline curve number CuIndex.
An exception is raised if CuIndex <0 or > NbCurves.
An exception is raised if the curve dimension is 2d.

Reimplemented from AppParCurves_MultiCurve.

virtual void AppParCurves_MultiBSpCurve::Value ( const Standard_Integer  CuIndex,
const Standard_Real  U,
gp_Pnt2d Pt 
) const
virtual

returns the value of the point with a parameter U
on the BSpline curve number CuIndex.
An exception is raised if CuIndex <0 or > NbCurves.
An exception is raised if the curve dimension is 3d.

Reimplemented from AppParCurves_MultiCurve.


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