Open CASCADE Technology  7.2.0
Public Member Functions | Protected Attributes

AppParCurves_MultiPoint Class Reference

This class describes Points composing a MultiPoint. These points can be 2D or 3D. The user must first give the 3D Points and then the 2D Points. They are Poles of a Bezier Curve. This class is used either to define data input or results when performing the approximation of several lines in parallel. More...

#include <AppParCurves_MultiPoint.hxx>

Inheritance diagram for AppParCurves_MultiPoint:
Inheritance graph
[legend]

Public Member Functions

 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...
 
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...
 

Protected Attributes

Handle< Standard_TransientttabPoint
 
Handle< Standard_TransientttabPoint2d
 
Standard_Integer nbP
 
Standard_Integer nbP2d
 

Detailed Description

This class describes Points composing a MultiPoint. These points can be 2D or 3D. The user must first give the 3D Points and then the 2D Points. They are Poles of a Bezier Curve. This class is used either to define data input or results when performing the approximation of several lines in parallel.

Constructor & Destructor Documentation

◆ AppParCurves_MultiPoint() [1/5]

AppParCurves_MultiPoint::AppParCurves_MultiPoint ( )

creates an indefinite MultiPoint.

◆ AppParCurves_MultiPoint() [2/5]

AppParCurves_MultiPoint::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.

◆ AppParCurves_MultiPoint() [3/5]

AppParCurves_MultiPoint::AppParCurves_MultiPoint ( const TColgp_Array1OfPnt tabP)

creates a MultiPoint only composed of 3D points.

◆ AppParCurves_MultiPoint() [4/5]

AppParCurves_MultiPoint::AppParCurves_MultiPoint ( const TColgp_Array1OfPnt2d tabP2d)

creates a MultiPoint only composed of 2D points.

◆ AppParCurves_MultiPoint() [5/5]

AppParCurves_MultiPoint::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.

◆ ~AppParCurves_MultiPoint()

virtual AppParCurves_MultiPoint::~AppParCurves_MultiPoint ( )
virtual

Member Function Documentation

◆ Dimension()

Standard_Integer AppParCurves_MultiPoint::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.

◆ Dump()

virtual void AppParCurves_MultiPoint::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 in AppDef_MultiPointConstraint.

◆ NbPoints()

Standard_Integer AppParCurves_MultiPoint::NbPoints ( ) const

returns the number of points of dimension 3D.

◆ NbPoints2d()

Standard_Integer AppParCurves_MultiPoint::NbPoints2d ( ) const

returns the number of points of dimension 2D.

◆ Point()

const gp_Pnt& AppParCurves_MultiPoint::Point ( 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.

◆ Point2d()

const gp_Pnt2d& AppParCurves_MultiPoint::Point2d ( 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.

◆ SetPoint()

void AppParCurves_MultiPoint::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.

◆ SetPoint2d()

void AppParCurves_MultiPoint::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.

◆ Transform()

void AppParCurves_MultiPoint::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.

◆ Transform2d()

void AppParCurves_MultiPoint::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.

Field Documentation

◆ nbP

Standard_Integer AppParCurves_MultiPoint::nbP
protected

◆ nbP2d

Standard_Integer AppParCurves_MultiPoint::nbP2d
protected

◆ ttabPoint

Handle< Standard_Transient > AppParCurves_MultiPoint::ttabPoint
protected

◆ ttabPoint2d

Handle< Standard_Transient > AppParCurves_MultiPoint::ttabPoint2d
protected

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