Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
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.
 
 AppDef_MultiPointConstraint (const int NbPoints, const int 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 (const NCollection_Array1< gp_Pnt > &tabP)
 creates a MultiPoint only composed of 3D points.
 
 AppDef_MultiPointConstraint (const NCollection_Array1< gp_Pnt2d > &tabP)
 creates a MultiPoint only composed of 2D points.
 
 AppDef_MultiPointConstraint (const NCollection_Array1< gp_Pnt > &tabP, const NCollection_Array1< gp_Pnt2d > &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 (const NCollection_Array1< gp_Pnt > &tabP, const NCollection_Array1< gp_Pnt2d > &tabP2d, const NCollection_Array1< gp_Vec > &tabVec, const NCollection_Array1< gp_Vec2d > &tabVec2d, const NCollection_Array1< gp_Vec > &tabCur, const NCollection_Array1< gp_Vec2d > &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 (const NCollection_Array1< gp_Pnt > &tabP, const NCollection_Array1< gp_Pnt2d > &tabP2d, const NCollection_Array1< gp_Vec > &tabVec, const NCollection_Array1< gp_Vec2d > &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 (const NCollection_Array1< gp_Pnt > &tabP, const NCollection_Array1< gp_Vec > &tabVec, const NCollection_Array1< gp_Vec > &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 (const NCollection_Array1< gp_Pnt > &tabP, const NCollection_Array1< gp_Vec > &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 (const NCollection_Array1< gp_Pnt2d > &tabP2d, const NCollection_Array1< gp_Vec2d > &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 (const NCollection_Array1< gp_Pnt2d > &tabP2d, const NCollection_Array1< gp_Vec2d > &tabVec2d, const NCollection_Array1< gp_Vec2d > &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.
 
void SetTang (const int 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.
 
gp_Vec Tang (const int 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.
 
void SetTang2d (const int 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.
 
gp_Vec2d Tang2d (const int 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.
 
void SetCurv (const int 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.
 
gp_Vec Curv (const int 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.
 
void SetCurv2d (const int 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.
 
gp_Vec2d Curv2d (const int 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.
 
bool IsTangencyPoint () const
 returns True if the MultiPoint has a tangency value.
 
bool IsCurvaturePoint () const
 returns True if the MultiPoint has a curvature value.
 
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 <<.
 
- Public Member Functions inherited from AppParCurves_MultiPoint
 AppParCurves_MultiPoint ()
 creates an indefinite MultiPoint.
 
 AppParCurves_MultiPoint (const int NbPoints, const int 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.
 
 AppParCurves_MultiPoint (const NCollection_Array1< gp_Pnt > &tabP)
 creates a MultiPoint only composed of 3D points.
 
 AppParCurves_MultiPoint (const NCollection_Array1< gp_Pnt2d > &tabP2d)
 creates a MultiPoint only composed of 2D points.
 
 AppParCurves_MultiPoint (const NCollection_Array1< gp_Pnt > &tabP, const NCollection_Array1< gp_Pnt2d > &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.
 
virtual ~AppParCurves_MultiPoint ()
 
void SetPoint (const int 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.
 
const gp_PntPoint (const int Index) const
 returns the 3d Point of range Index. An exception is raised if Index < 0 or Index < number of 3d Points.
 
void SetPoint2d (const int 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.
 
const gp_Pnt2dPoint2d (const int 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.
 
int Dimension (const int Index) const
 returns the dimension of the point of range Index. An exception is raised if Index <0 or Index > NbCurves.
 
int NbPoints () const
 returns the number of points of dimension 3D.
 
int NbPoints2d () const
 returns the number of points of dimension 2D.
 
void Transform (const int CuIndex, const double x, const double dx, const double y, const double dy, const double z, const double 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.
 
void Transform2d (const int CuIndex, const double x, const double dx, const double y, const double dy)
 Applies a transformation to the Curve of range <CuIndex>. newx = x + dx*oldx newy = y + dy*oldy for all points of the curve.
 

Additional Inherited Members

- Protected Attributes inherited from AppParCurves_MultiPoint
occ::handle< Standard_TransientttabPoint
 
occ::handle< Standard_TransientttabPoint2d
 
int nbP
 
int 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 int NbPoints,
const int 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 NCollection_Array1< gp_Pnt > & tabP)

creates a MultiPoint only composed of 3D points.

◆ AppDef_MultiPointConstraint() [4/11]

AppDef_MultiPointConstraint::AppDef_MultiPointConstraint ( const NCollection_Array1< gp_Pnt2d > & tabP)

creates a MultiPoint only composed of 2D points.

◆ AppDef_MultiPointConstraint() [5/11]

AppDef_MultiPointConstraint::AppDef_MultiPointConstraint ( const NCollection_Array1< gp_Pnt > & tabP,
const NCollection_Array1< gp_Pnt2d > & 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 NCollection_Array1< gp_Pnt > & tabP,
const NCollection_Array1< gp_Pnt2d > & tabP2d,
const NCollection_Array1< gp_Vec > & tabVec,
const NCollection_Array1< gp_Vec2d > & tabVec2d,
const NCollection_Array1< gp_Vec > & tabCur,
const NCollection_Array1< gp_Vec2d > & 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 NCollection_Array1< gp_Pnt > & tabP,
const NCollection_Array1< gp_Pnt2d > & tabP2d,
const NCollection_Array1< gp_Vec > & tabVec,
const NCollection_Array1< gp_Vec2d > & 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 NCollection_Array1< gp_Pnt > & tabP,
const NCollection_Array1< gp_Vec > & tabVec,
const NCollection_Array1< gp_Vec > & 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 NCollection_Array1< gp_Pnt > & tabP,
const NCollection_Array1< gp_Vec > & 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 NCollection_Array1< gp_Pnt2d > & tabP2d,
const NCollection_Array1< gp_Vec2d > & 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 NCollection_Array1< gp_Pnt2d > & tabP2d,
const NCollection_Array1< gp_Vec2d > & tabVec2d,
const NCollection_Array1< gp_Vec2d > & 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 int 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 int 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()

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()

bool AppDef_MultiPointConstraint::IsCurvaturePoint ( ) const

returns True if the MultiPoint has a curvature value.

◆ IsTangencyPoint()

bool AppDef_MultiPointConstraint::IsTangencyPoint ( ) const

returns True if the MultiPoint has a tangency value.

◆ SetCurv()

void AppDef_MultiPointConstraint::SetCurv ( const int 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 int 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 int 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 int 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 int 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 int 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: