Open CASCADE Technology  6.9.1
Public Member Functions
MAT2d_Connexion Class Reference

A Connexion links two lines of items in a set of lines. It s contains two points and their paramatric definitions on the lines. The items can be points or curves. More...

#include <MAT2d_Connexion.hxx>

Inheritance diagram for MAT2d_Connexion:
Inheritance graph
[legend]

Public Member Functions

 MAT2d_Connexion ()
 
 MAT2d_Connexion (const Standard_Integer LineA, const Standard_Integer LineB, const Standard_Integer ItemA, const Standard_Integer ItemB, const Standard_Real Distance, const Standard_Real ParameterOnA, const Standard_Real ParameterOnB, const gp_Pnt2d &PointA, const gp_Pnt2d &PointB)
 
Standard_Integer IndexFirstLine () const
 Returns the Index on the first line. More...
 
Standard_Integer IndexSecondLine () const
 Returns the Index on the Second line. More...
 
Standard_Integer IndexItemOnFirst () const
 Returns the Index of the item on the first line. More...
 
Standard_Integer IndexItemOnSecond () const
 Returns the Index of the item on the second line. More...
 
Standard_Real ParameterOnFirst () const
 Returns the parameter of the point on the firstline. More...
 
Standard_Real ParameterOnSecond () const
 Returns the parameter of the point on the secondline. More...
 
gp_Pnt2d PointOnFirst () const
 Returns the point on the firstline. More...
 
gp_Pnt2d PointOnSecond () const
 Returns the point on the secondline. More...
 
Standard_Real Distance () const
 Returns the distance between the two points. More...
 
void IndexFirstLine (const Standard_Integer anIndex)
 
void IndexSecondLine (const Standard_Integer anIndex)
 
void IndexItemOnFirst (const Standard_Integer anIndex)
 
void IndexItemOnSecond (const Standard_Integer anIndex)
 
void ParameterOnFirst (const Standard_Real aParameter)
 
void ParameterOnSecond (const Standard_Real aParameter)
 
void PointOnFirst (const gp_Pnt2d &aPoint)
 
void PointOnSecond (const gp_Pnt2d &aPoint)
 
void Distance (const Standard_Real aDistance)
 
Handle< MAT2d_ConnexionReverse () const
 Returns the reverse connexion of <me>. the firstpoint is the secondpoint. the secondpoint is the firstpoint. More...
 
Standard_Boolean IsAfter (const Handle< MAT2d_Connexion > &aConnexion, const Standard_Real aSense) const
 Returns <True> if my firstPoint is on the same line than the firstpoint of <aConnexion> and my firstpoint is after the firstpoint of <aConnexion> on the line. <aSense> = 1 if <aConnexion> is on the Left of its firstline, else <aSense> = -1. More...
 
void Dump (const Standard_Integer Deep=0, const Standard_Integer Offset=0) const
 Print <me>. More...
 
- Public Member Functions inherited from MMgt_TShared
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual const Handle_Standard_Type & DynamicType () const
 Returns a type information object about this object. More...
 
Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
virtual Handle_Standard_Transient This () const
 Returns a Handle which references this object. Must never be called to objects created in stack. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 

Detailed Description

A Connexion links two lines of items in a set of lines. It s contains two points and their paramatric definitions on the lines. The items can be points or curves.

Constructor & Destructor Documentation

MAT2d_Connexion::MAT2d_Connexion ( )
MAT2d_Connexion::MAT2d_Connexion ( const Standard_Integer  LineA,
const Standard_Integer  LineB,
const Standard_Integer  ItemA,
const Standard_Integer  ItemB,
const Standard_Real  Distance,
const Standard_Real  ParameterOnA,
const Standard_Real  ParameterOnB,
const gp_Pnt2d PointA,
const gp_Pnt2d PointB 
)

Member Function Documentation

Standard_Real MAT2d_Connexion::Distance ( ) const

Returns the distance between the two points.

void MAT2d_Connexion::Distance ( const Standard_Real  aDistance)
void MAT2d_Connexion::Dump ( const Standard_Integer  Deep = 0,
const Standard_Integer  Offset = 0 
) const

Print <me>.

Standard_Integer MAT2d_Connexion::IndexFirstLine ( ) const

Returns the Index on the first line.

void MAT2d_Connexion::IndexFirstLine ( const Standard_Integer  anIndex)
Standard_Integer MAT2d_Connexion::IndexItemOnFirst ( ) const

Returns the Index of the item on the first line.

void MAT2d_Connexion::IndexItemOnFirst ( const Standard_Integer  anIndex)
Standard_Integer MAT2d_Connexion::IndexItemOnSecond ( ) const

Returns the Index of the item on the second line.

void MAT2d_Connexion::IndexItemOnSecond ( const Standard_Integer  anIndex)
Standard_Integer MAT2d_Connexion::IndexSecondLine ( ) const

Returns the Index on the Second line.

void MAT2d_Connexion::IndexSecondLine ( const Standard_Integer  anIndex)
Standard_Boolean MAT2d_Connexion::IsAfter ( const Handle< MAT2d_Connexion > &  aConnexion,
const Standard_Real  aSense 
) const

Returns <True> if my firstPoint is on the same line than the firstpoint of <aConnexion> and my firstpoint is after the firstpoint of <aConnexion> on the line. <aSense> = 1 if <aConnexion> is on the Left of its firstline, else <aSense> = -1.

Standard_Real MAT2d_Connexion::ParameterOnFirst ( ) const

Returns the parameter of the point on the firstline.

void MAT2d_Connexion::ParameterOnFirst ( const Standard_Real  aParameter)
Standard_Real MAT2d_Connexion::ParameterOnSecond ( ) const

Returns the parameter of the point on the secondline.

void MAT2d_Connexion::ParameterOnSecond ( const Standard_Real  aParameter)
gp_Pnt2d MAT2d_Connexion::PointOnFirst ( ) const

Returns the point on the firstline.

void MAT2d_Connexion::PointOnFirst ( const gp_Pnt2d aPoint)
gp_Pnt2d MAT2d_Connexion::PointOnSecond ( ) const

Returns the point on the secondline.

void MAT2d_Connexion::PointOnSecond ( const gp_Pnt2d aPoint)
Handle< MAT2d_Connexion > MAT2d_Connexion::Reverse ( ) const

Returns the reverse connexion of <me>. the firstpoint is the secondpoint. the secondpoint is the firstpoint.


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