OCC Main Page | ModelingData | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingData
TKGeomBase
AppDef


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:
- The order of points of a MultiPointConstraints is very important.
Users must give 3D points first, and then 2D points.
- The constraints for the points included in a
MultiPointConstraint are always identical for
all points, including the parameter.
- If a MultiPointConstraint is a "tangency"
point, the point is also a "passing" point.
.

#include <AppDef_MultiPointConstraint.hxx>

Inheritance diagram for AppDef_MultiPointConstraint:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT AppDef_MultiPointConstraint ()
 creates an undefined MultiPointConstraint.

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

Standard_EXPORT AppDef_MultiPointConstraint (const TColgp_Array1OfPnt &tabP)
 creates a MultiPoint only composed of 3D points.

Standard_EXPORT AppDef_MultiPointConstraint (const TColgp_Array1OfPnt2d &tabP)
 creates a MultiPoint only composed of 2D points.

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

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

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

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

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

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

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

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

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

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

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

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

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

Standard_EXPORT Standard_Boolean IsTangencyPoint () const
 returns True if the MultiPoint has a tangency value.

Standard_EXPORT Standard_Boolean IsCurvaturePoint () const
 returns True if the MultiPoint has a curvature value.

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

Private Attributes

Handle_MMgt_TShared ttabTang
Handle_MMgt_TShared ttabCurv
Handle_MMgt_TShared ttabTang2d
Handle_MMgt_TShared ttabCurv2d

Constructor & Destructor Documentation

Standard_EXPORT AppDef_MultiPointConstraint::AppDef_MultiPointConstraint  ) 
 

Standard_EXPORT AppDef_MultiPointConstraint::AppDef_MultiPointConstraint const Standard_Integer  NbPoints,
const Standard_Integer  NbPoints2d
 

Standard_EXPORT AppDef_MultiPointConstraint::AppDef_MultiPointConstraint const TColgp_Array1OfPnt &  tabP  ) 
 

Standard_EXPORT AppDef_MultiPointConstraint::AppDef_MultiPointConstraint const TColgp_Array1OfPnt2d &  tabP  ) 
 

Standard_EXPORT AppDef_MultiPointConstraint::AppDef_MultiPointConstraint const TColgp_Array1OfPnt &  tabP,
const TColgp_Array1OfPnt2d &  tabP2d
 

Standard_EXPORT 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
 

Standard_EXPORT AppDef_MultiPointConstraint::AppDef_MultiPointConstraint const TColgp_Array1OfPnt &  tabP,
const TColgp_Array1OfPnt2d &  tabP2d,
const TColgp_Array1OfVec &  tabVec,
const TColgp_Array1OfVec2d &  tabVec2d
 

Standard_EXPORT AppDef_MultiPointConstraint::AppDef_MultiPointConstraint const TColgp_Array1OfPnt &  tabP,
const TColgp_Array1OfVec &  tabVec,
const TColgp_Array1OfVec &  tabCur
 

Standard_EXPORT AppDef_MultiPointConstraint::AppDef_MultiPointConstraint const TColgp_Array1OfPnt &  tabP,
const TColgp_Array1OfVec &  tabVec
 

Standard_EXPORT AppDef_MultiPointConstraint::AppDef_MultiPointConstraint const TColgp_Array1OfPnt2d &  tabP2d,
const TColgp_Array1OfVec2d &  tabVec2d
 

Standard_EXPORT AppDef_MultiPointConstraint::AppDef_MultiPointConstraint const TColgp_Array1OfPnt2d &  tabP2d,
const TColgp_Array1OfVec2d &  tabVec2d,
const TColgp_Array1OfVec2d &  tabCur2d
 


Member Function Documentation

Standard_EXPORT gp_Vec AppDef_MultiPointConstraint::Curv const Standard_Integer  Index  )  const
 

Standard_EXPORT gp_Vec2d AppDef_MultiPointConstraint::Curv2d const Standard_Integer  Index  )  const
 

virtual Standard_EXPORT void AppDef_MultiPointConstraint::Dump Standard_OStream &  o  )  const [virtual]
 

Reimplemented from AppParCurves_MultiPoint.

Standard_EXPORT Standard_Boolean AppDef_MultiPointConstraint::IsCurvaturePoint  )  const
 

Standard_EXPORT Standard_Boolean AppDef_MultiPointConstraint::IsTangencyPoint  )  const
 

void AppDef_MultiPointConstraint::operator delete void *  anAddress  )  [inline]
 

Reimplemented from AppParCurves_MultiPoint.

void* AppDef_MultiPointConstraint::operator new size_t  size  )  [inline]
 

Reimplemented from AppParCurves_MultiPoint.

void* AppDef_MultiPointConstraint::operator new size_t  ,
void *  anAddress
[inline]
 

Reimplemented from AppParCurves_MultiPoint.

Standard_EXPORT void AppDef_MultiPointConstraint::SetCurv const Standard_Integer  Index,
const gp_Vec &  Curv
 

Standard_EXPORT void AppDef_MultiPointConstraint::SetCurv2d const Standard_Integer  Index,
const gp_Vec2d &  Curv2d
 

Standard_EXPORT void AppDef_MultiPointConstraint::SetTang const Standard_Integer  Index,
const gp_Vec &  Tang
 

Standard_EXPORT void AppDef_MultiPointConstraint::SetTang2d const Standard_Integer  Index,
const gp_Vec2d &  Tang2d
 

Standard_EXPORT gp_Vec AppDef_MultiPointConstraint::Tang const Standard_Integer  Index  )  const
 

Standard_EXPORT gp_Vec2d AppDef_MultiPointConstraint::Tang2d const Standard_Integer  Index  )  const
 


Field Documentation

Handle_MMgt_TShared AppDef_MultiPointConstraint::ttabCurv [private]
 

Handle_MMgt_TShared AppDef_MultiPointConstraint::ttabCurv2d [private]
 

Handle_MMgt_TShared AppDef_MultiPointConstraint::ttabTang [private]
 

Handle_MMgt_TShared AppDef_MultiPointConstraint::ttabTang2d [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:22:27 2008 for OpenCASCADE by  doxygen 1.4.1