Open CASCADE Technology  7.5.0
Public Member Functions
AppDef_MultiPointConstraint Class Reference

Describes a MultiPointConstraint used in a Multiline. MultiPointConstraints are composed of several two or three-dimensional points. The purpose is to define the corresponding points that share a common constraint in order to compute the approximation of several lines in parallel. Notes: More...

#include <AppDef_MultiPointConstraint.hxx>

Inheritance diagram for AppDef_MultiPointConstraint:
Inheritance graph
[legend]

Public Member Functions

 AppDef_MultiPointConstraint ()
 creates an undefined MultiPointConstraint. More...
 
 AppDef_MultiPointConstraint (const Standard_Integer NbPoints, const Standard_Integer NbPoints2d)
 constructs a set of Points used to approximate a Multiline. These Points can be of 2 or 3 dimensions. Points will be initialized with SetPoint and SetPoint2d. More...
 
 AppDef_MultiPointConstraint (const TColgp_Array1OfPnt &tabP)
 creates a MultiPoint only composed of 3D points. More...
 
 AppDef_MultiPointConstraint (const TColgp_Array1OfPnt2d &tabP)
 creates a MultiPoint only composed of 2D points. More...
 
 AppDef_MultiPointConstraint (const TColgp_Array1OfPnt &tabP, const TColgp_Array1OfPnt2d &tabP2d)
 constructs a set of Points used to approximate a Multiline. These Points can be of 2 or 3 dimensions. Points will be initialized with SetPoint and SetPoint2d. More...
 
 AppDef_MultiPointConstraint (const TColgp_Array1OfPnt &tabP, const TColgp_Array1OfPnt2d &tabP2d, const TColgp_Array1OfVec &tabVec, const TColgp_Array1OfVec2d &tabVec2d, const TColgp_Array1OfVec &tabCur, const TColgp_Array1OfVec2d &tabCur2d)
 creates a MultiPointConstraint with a constraint of Curvature. An exception is raised if (length of <tabP> + length of <tabP2d> ) is different from (length of <tabVec> + length of <tabVec2d> ) or from (length of <tabCur> + length of <tabCur2d> ) More...
 
 AppDef_MultiPointConstraint (const TColgp_Array1OfPnt &tabP, const TColgp_Array1OfPnt2d &tabP2d, const TColgp_Array1OfVec &tabVec, const TColgp_Array1OfVec2d &tabVec2d)
 creates a MultiPointConstraint with a constraint of Tangency. An exception is raised if (length of <tabP> + length of <tabP2d> ) is different from (length of <tabVec> + length of <tabVec2d> ) More...
 
 AppDef_MultiPointConstraint (const TColgp_Array1OfPnt &tabP, const TColgp_Array1OfVec &tabVec, const TColgp_Array1OfVec &tabCur)
 creates a MultiPointConstraint only composed of 3d points with constraints of curvature. An exception is raised if the length of tabP is different from the length of tabVec or from tabCur. More...
 
 AppDef_MultiPointConstraint (const TColgp_Array1OfPnt &tabP, const TColgp_Array1OfVec &tabVec)
 creates a MultiPointConstraint only composed of 3d points with constraints of tangency. An exception is raised if the length of tabP is different from the length of tabVec. More...
 
 AppDef_MultiPointConstraint (const TColgp_Array1OfPnt2d &tabP2d, const TColgp_Array1OfVec2d &tabVec2d)
 creates a MultiPointConstraint only composed of 2d points with constraints of tangency. An exception is raised if the length of tabP is different from the length of tabVec2d. More...
 
 AppDef_MultiPointConstraint (const TColgp_Array1OfPnt2d &tabP2d, const TColgp_Array1OfVec2d &tabVec2d, const TColgp_Array1OfVec2d &tabCur2d)
 creates a MultiPointConstraint only composed of 2d points with constraints of curvature. An exception is raised if the length of tabP is different from the length of tabVec2d or from tabCur2d. More...
 
void SetTang (const Standard_Integer Index, const gp_Vec &Tang)
 sets the value of the tangency of the point of range Index. An exception is raised if Index <0 or if Index > number of 3d points. An exception is raised if Tang has an incorrect number of dimensions. More...
 
gp_Vec Tang (const Standard_Integer Index) const
 returns the tangency value of the point of range Index. An exception is raised if Index < 0 or if Index > number of 3d points. More...
 
void SetTang2d (const Standard_Integer Index, const gp_Vec2d &Tang2d)
 sets the value of the tangency of the point of range Index. An exception is raised if Index <number of 3d points or if Index > total number of Points An exception is raised if Tang has an incorrect number of dimensions. More...
 
gp_Vec2d Tang2d (const Standard_Integer Index) const
 returns the tangency value of the point of range Index. An exception is raised if Index < number of 3d points or if Index > total number of points. More...
 
void SetCurv (const Standard_Integer Index, const gp_Vec &Curv)
 Vec sets the value of the normal vector at the point of index Index. The norm of the normal vector at the point of position Index is set to the normal curvature. An exception is raised if Index <0 or if Index > number of 3d points. An exception is raised if Curv has an incorrect number of dimensions. More...
 
gp_Vec Curv (const Standard_Integer Index) const
 returns the normal vector at the point of range Index. An exception is raised if Index < 0 or if Index > number of 3d points. More...
 
void SetCurv2d (const Standard_Integer Index, const gp_Vec2d &Curv2d)
 Vec sets the value of the normal vector at the point of index Index. The norm of the normal vector at the point of position Index is set to the normal curvature. An exception is raised if Index <0 or if Index > number of 3d points. An exception is raised if Curv has an incorrect number of dimensions. More...
 
gp_Vec2d Curv2d (const Standard_Integer Index) const
 returns the normal vector at the point of range Index. An exception is raised if Index < 0 or if Index > number of 3d points. More...
 
Standard_Boolean IsTangencyPoint () const
 returns True if the MultiPoint has a tangency value. More...
 
Standard_Boolean IsCurvaturePoint () const
 returns True if the MultiPoint has a curvature value. More...
 
virtual void Dump (Standard_OStream &o) const override
 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_MultiPoint
 AppParCurves_MultiPoint ()
 creates an indefinite MultiPoint. More...
 
 AppParCurves_MultiPoint (const Standard_Integer NbPoints, const Standard_Integer NbPoints2d)
 constructs a set of Points used to approximate a Multiline. These Points can be of 2 or 3 dimensions. Points will be initialized with SetPoint and SetPoint2d. NbPoints is the number of 3D Points. NbPoints2d is the number of 2D Points. More...
 
 AppParCurves_MultiPoint (const TColgp_Array1OfPnt &tabP)
 creates a MultiPoint only composed of 3D points. More...
 
 AppParCurves_MultiPoint (const TColgp_Array1OfPnt2d &tabP2d)
 creates a MultiPoint only composed of 2D points. More...
 
 AppParCurves_MultiPoint (const TColgp_Array1OfPnt &tabP, const TColgp_Array1OfPnt2d &tabP2d)
 constructs a set of Points used to approximate a Multiline. These Points can be of 2 or 3 dimensions. Points will be initialized with SetPoint and SetPoint2d. NbPoints is the total number of Points. More...
 
virtual ~AppParCurves_MultiPoint ()
 
void SetPoint (const Standard_Integer Index, const gp_Pnt &Point)
 the 3d Point of range Index of this MultiPoint is set to <Point>. An exception is raised if Index < 0 or Index > number of 3d Points. More...
 
const gp_PntPoint (const Standard_Integer Index) const
 returns the 3d Point of range Index. An exception is raised if Index < 0 or Index < number of 3d Points. More...
 
void SetPoint2d (const Standard_Integer Index, const gp_Pnt2d &Point)
 The 2d Point of range Index is set to <Point>. An exception is raised if Index > 3d Points or Index > total number of Points. More...
 
const gp_Pnt2dPoint2d (const Standard_Integer Index) const
 returns the 2d Point of range Index. An exception is raised if index <= number of 3d Points or Index > total number of Points. More...
 
Standard_Integer Dimension (const Standard_Integer Index) const
 returns the dimension of the point of range Index. An exception is raised if Index <0 or Index > NbCurves. More...
 
Standard_Integer NbPoints () const
 returns the number of points of dimension 3D. More...
 
Standard_Integer NbPoints2d () const
 returns the number of points of dimension 2D. 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_MultiPoint
Handle< Standard_TransientttabPoint
 
Handle< Standard_TransientttabPoint2d
 
Standard_Integer nbP
 
Standard_Integer nbP2d
 

Detailed Description

Describes a MultiPointConstraint used in a Multiline. MultiPointConstraints are composed of several two or three-dimensional points. The purpose is to define the corresponding points that share a common constraint in order to compute the approximation of several lines in parallel. Notes:

Constructor & Destructor Documentation

◆ AppDef_MultiPointConstraint() [1/11]

AppDef_MultiPointConstraint::AppDef_MultiPointConstraint ( )

creates an undefined MultiPointConstraint.

◆ AppDef_MultiPointConstraint() [2/11]

AppDef_MultiPointConstraint::AppDef_MultiPointConstraint ( const Standard_Integer  NbPoints,
const Standard_Integer  NbPoints2d 
)

constructs a set of Points used to approximate a Multiline. These Points can be of 2 or 3 dimensions. Points will be initialized with SetPoint and SetPoint2d.

◆ AppDef_MultiPointConstraint() [3/11]

AppDef_MultiPointConstraint::AppDef_MultiPointConstraint ( const TColgp_Array1OfPnt tabP)

creates a MultiPoint only composed of 3D points.

◆ AppDef_MultiPointConstraint() [4/11]

AppDef_MultiPointConstraint::AppDef_MultiPointConstraint ( const TColgp_Array1OfPnt2d tabP)

creates a MultiPoint only composed of 2D points.

◆ AppDef_MultiPointConstraint() [5/11]

AppDef_MultiPointConstraint::AppDef_MultiPointConstraint ( const TColgp_Array1OfPnt tabP,
const TColgp_Array1OfPnt2d tabP2d 
)

constructs a set of Points used to approximate a Multiline. These Points can be of 2 or 3 dimensions. Points will be initialized with SetPoint and SetPoint2d.

◆ AppDef_MultiPointConstraint() [6/11]

AppDef_MultiPointConstraint::AppDef_MultiPointConstraint ( const TColgp_Array1OfPnt tabP,
const TColgp_Array1OfPnt2d tabP2d,
const TColgp_Array1OfVec tabVec,
const TColgp_Array1OfVec2d tabVec2d,
const TColgp_Array1OfVec tabCur,
const TColgp_Array1OfVec2d tabCur2d 
)

creates a MultiPointConstraint with a constraint of Curvature. An exception is raised if (length of <tabP> + length of <tabP2d> ) is different from (length of <tabVec> + length of <tabVec2d> ) or from (length of <tabCur> + length of <tabCur2d> )

◆ AppDef_MultiPointConstraint() [7/11]

AppDef_MultiPointConstraint::AppDef_MultiPointConstraint ( const TColgp_Array1OfPnt tabP,
const TColgp_Array1OfPnt2d tabP2d,
const TColgp_Array1OfVec tabVec,
const TColgp_Array1OfVec2d tabVec2d 
)

creates a MultiPointConstraint with a constraint of Tangency. An exception is raised if (length of <tabP> + length of <tabP2d> ) is different from (length of <tabVec> + length of <tabVec2d> )

◆ AppDef_MultiPointConstraint() [8/11]

AppDef_MultiPointConstraint::AppDef_MultiPointConstraint ( const TColgp_Array1OfPnt tabP,
const TColgp_Array1OfVec tabVec,
const TColgp_Array1OfVec tabCur 
)

creates a MultiPointConstraint only composed of 3d points with constraints of curvature. An exception is raised if the length of tabP is different from the length of tabVec or from tabCur.

◆ AppDef_MultiPointConstraint() [9/11]

AppDef_MultiPointConstraint::AppDef_MultiPointConstraint ( const TColgp_Array1OfPnt tabP,
const TColgp_Array1OfVec tabVec 
)

creates a MultiPointConstraint only composed of 3d points with constraints of tangency. An exception is raised if the length of tabP is different from the length of tabVec.

◆ AppDef_MultiPointConstraint() [10/11]

AppDef_MultiPointConstraint::AppDef_MultiPointConstraint ( const TColgp_Array1OfPnt2d tabP2d,
const TColgp_Array1OfVec2d tabVec2d 
)

creates a MultiPointConstraint only composed of 2d points with constraints of tangency. An exception is raised if the length of tabP is different from the length of tabVec2d.

◆ AppDef_MultiPointConstraint() [11/11]

AppDef_MultiPointConstraint::AppDef_MultiPointConstraint ( const TColgp_Array1OfPnt2d tabP2d,
const TColgp_Array1OfVec2d tabVec2d,
const TColgp_Array1OfVec2d tabCur2d 
)

creates a MultiPointConstraint only composed of 2d points with constraints of curvature. An exception is raised if the length of tabP is different from the length of tabVec2d or from tabCur2d.

Member Function Documentation

◆ Curv()

gp_Vec AppDef_MultiPointConstraint::Curv ( const Standard_Integer  Index) const

returns the normal vector at the point of range Index. An exception is raised if Index < 0 or if Index > number of 3d points.

◆ Curv2d()

gp_Vec2d AppDef_MultiPointConstraint::Curv2d ( const Standard_Integer  Index) const

returns the normal vector at the point of range Index. An exception is raised if Index < 0 or if Index > number of 3d points.

◆ Dump()

virtual void AppDef_MultiPointConstraint::Dump ( Standard_OStream o) const
overridevirtual

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

Reimplemented from AppParCurves_MultiPoint.

◆ IsCurvaturePoint()

Standard_Boolean AppDef_MultiPointConstraint::IsCurvaturePoint ( ) const

returns True if the MultiPoint has a curvature value.

◆ IsTangencyPoint()

Standard_Boolean AppDef_MultiPointConstraint::IsTangencyPoint ( ) const

returns True if the MultiPoint has a tangency value.

◆ SetCurv()

void AppDef_MultiPointConstraint::SetCurv ( const Standard_Integer  Index,
const gp_Vec Curv 
)

Vec sets the value of the normal vector at the point of index Index. The norm of the normal vector at the point of position Index is set to the normal curvature. An exception is raised if Index <0 or if Index > number of 3d points. An exception is raised if Curv has an incorrect number of dimensions.

◆ SetCurv2d()

void AppDef_MultiPointConstraint::SetCurv2d ( const Standard_Integer  Index,
const gp_Vec2d Curv2d 
)

Vec sets the value of the normal vector at the point of index Index. The norm of the normal vector at the point of position Index is set to the normal curvature. An exception is raised if Index <0 or if Index > number of 3d points. An exception is raised if Curv has an incorrect number of dimensions.

◆ SetTang()

void AppDef_MultiPointConstraint::SetTang ( const Standard_Integer  Index,
const gp_Vec Tang 
)

sets the value of the tangency of the point of range Index. An exception is raised if Index <0 or if Index > number of 3d points. An exception is raised if Tang has an incorrect number of dimensions.

◆ SetTang2d()

void AppDef_MultiPointConstraint::SetTang2d ( const Standard_Integer  Index,
const gp_Vec2d Tang2d 
)

sets the value of the tangency of the point of range Index. An exception is raised if Index <number of 3d points or if Index > total number of Points An exception is raised if Tang has an incorrect number of dimensions.

◆ Tang()

gp_Vec AppDef_MultiPointConstraint::Tang ( const Standard_Integer  Index) const

returns the tangency value of the point of range Index. An exception is raised if Index < 0 or if Index > number of 3d points.

◆ Tang2d()

gp_Vec2d AppDef_MultiPointConstraint::Tang2d ( const Standard_Integer  Index) const

returns the tangency value of the point of range Index. An exception is raised if Index < number of 3d points or if Index > total number of points.


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