![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
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>

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_Pnt & | Point (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_Pnt2d & | Point2d (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_Transient > | ttabPoint |
| occ::handle< Standard_Transient > | ttabPoint2d |
| int | nbP |
| int | nbP2d |
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:
| AppDef_MultiPointConstraint::AppDef_MultiPointConstraint | ( | ) |
creates an undefined MultiPointConstraint.
| 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::AppDef_MultiPointConstraint | ( | const NCollection_Array1< gp_Pnt > & | tabP | ) |
creates a MultiPoint only composed of 3D points.
| AppDef_MultiPointConstraint::AppDef_MultiPointConstraint | ( | const NCollection_Array1< gp_Pnt2d > & | tabP | ) |
creates a MultiPoint only composed of 2D points.
| 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::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::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::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::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::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::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.
returns the normal vector at the point of range Index. An exception is raised if Index < 0 or if Index > number of 3d points.
returns the normal vector at the point of range Index. An exception is raised if Index < 0 or if Index > number of 3d points.
|
overridevirtual |
Prints on the stream o information on the current state of the object. Is used to redefine the operator <<.
Reimplemented from AppParCurves_MultiPoint.
| bool AppDef_MultiPointConstraint::IsCurvaturePoint | ( | ) | const |
returns True if the MultiPoint has a curvature value.
| bool AppDef_MultiPointConstraint::IsTangencyPoint | ( | ) | const |
returns True if the MultiPoint has a tangency value.
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.
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.
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.
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.
returns the tangency value of the point of range Index. An exception is raised if Index < 0 or if Index > number of 3d points.
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.