Open CASCADE Technology  6.9.0
Public Member Functions
IntRes2d_Transition Class Reference

Definition of the type of transition near an intersection point between two curves. The transition is either a "true transition", which means that one of the curves goes inside or outside the area defined by the other curve near the intersection, or a "touch transition" which means that the first curve does not cross the other one, or an "undecided" transition, which means that the curves are superposed. More...

#include <IntRes2d_Transition.hxx>

Public Member Functions

 IntRes2d_Transition ()
 Empty constructor. More...
 
 IntRes2d_Transition (const Standard_Boolean Tangent, const IntRes2d_Position Pos, const IntRes2d_TypeTrans Type)
 Creates an IN or OUT transition. More...
 
 IntRes2d_Transition (const Standard_Boolean Tangent, const IntRes2d_Position Pos, const IntRes2d_Situation Situ, const Standard_Boolean Oppos)
 Creates a TOUCH transition. More...
 
 IntRes2d_Transition (const IntRes2d_Position Pos)
 Creates an UNDECIDED transition. More...
 
void SetValue (const Standard_Boolean Tangent, const IntRes2d_Position Pos, const IntRes2d_TypeTrans Type)
 Sets the values of an IN or OUT transition. More...
 
void SetValue (const Standard_Boolean Tangent, const IntRes2d_Position Pos, const IntRes2d_Situation Situ, const Standard_Boolean Oppos)
 Sets the values of a TOUCH transition. More...
 
void SetValue (const IntRes2d_Position Pos)
 Sets the values of an UNDECIDED transition. More...
 
void SetPosition (const IntRes2d_Position Pos)
 Sets the value of the position. More...
 
IntRes2d_Position PositionOnCurve () const
 Indicates if the intersection is at the beginning (IntRes2d_Head), at the end (IntRes2d_End), or in the middle (IntRes2d_Middle) of the curve. More...
 
IntRes2d_TypeTrans TransitionType () const
 Returns the type of transition at the intersection. It may be IN or OUT or TOUCH, or UNDECIDED if the two first derivatives are not enough to give the tangent to one of the two curves. More...
 
Standard_Boolean IsTangent () const
 Returns TRUE when the 2 curves are tangent at the intersection point. Theexception DomainError is raised if the type of transition is UNDECIDED. More...
 
IntRes2d_Situation Situation () const
 returns a significant value if TransitionType returns TOUCH. In this case, the function returns : INSIDE when the curve remains inside the other one, OUTSIDE when it remains outside the other one, UNKNOWN when the calculus, based on the second derivatives cannot give the result. If TransitionType returns IN or OUT or UNDECIDED, the exception DomainError is raised. More...
 
Standard_Boolean IsOpposite () const
 returns a significant value if TransitionType returns TOUCH. In this case, the function returns true when the 2 curves locally define two different parts of the space. If TransitionType returns IN or OUT or UNDECIDED, the exception DomainError is raised. More...
 
Standard_Boolean _CSFDB_GetIntRes2d_Transitiontangent () const
 
void _CSFDB_SetIntRes2d_Transitiontangent (const Standard_Boolean p)
 
IntRes2d_Position _CSFDB_GetIntRes2d_Transitionposit () const
 
void _CSFDB_SetIntRes2d_Transitionposit (const IntRes2d_Position p)
 
IntRes2d_TypeTrans _CSFDB_GetIntRes2d_Transitiontypetra () const
 
void _CSFDB_SetIntRes2d_Transitiontypetra (const IntRes2d_TypeTrans p)
 
IntRes2d_Situation _CSFDB_GetIntRes2d_Transitionsituat () const
 
void _CSFDB_SetIntRes2d_Transitionsituat (const IntRes2d_Situation p)
 
Standard_Boolean _CSFDB_GetIntRes2d_Transitionoppos () const
 
void _CSFDB_SetIntRes2d_Transitionoppos (const Standard_Boolean p)
 

Detailed Description

Definition of the type of transition near an intersection point between two curves. The transition is either a "true transition", which means that one of the curves goes inside or outside the area defined by the other curve near the intersection, or a "touch transition" which means that the first curve does not cross the other one, or an "undecided" transition, which means that the curves are superposed.

Constructor & Destructor Documentation

IntRes2d_Transition::IntRes2d_Transition ( )

Empty constructor.

IntRes2d_Transition::IntRes2d_Transition ( const Standard_Boolean  Tangent,
const IntRes2d_Position  Pos,
const IntRes2d_TypeTrans  Type 
)

Creates an IN or OUT transition.

IntRes2d_Transition::IntRes2d_Transition ( const Standard_Boolean  Tangent,
const IntRes2d_Position  Pos,
const IntRes2d_Situation  Situ,
const Standard_Boolean  Oppos 
)

Creates a TOUCH transition.

IntRes2d_Transition::IntRes2d_Transition ( const IntRes2d_Position  Pos)

Creates an UNDECIDED transition.

Member Function Documentation

Standard_Boolean IntRes2d_Transition::_CSFDB_GetIntRes2d_Transitionoppos ( ) const
inline
IntRes2d_Position IntRes2d_Transition::_CSFDB_GetIntRes2d_Transitionposit ( ) const
inline
IntRes2d_Situation IntRes2d_Transition::_CSFDB_GetIntRes2d_Transitionsituat ( ) const
inline
Standard_Boolean IntRes2d_Transition::_CSFDB_GetIntRes2d_Transitiontangent ( ) const
inline
IntRes2d_TypeTrans IntRes2d_Transition::_CSFDB_GetIntRes2d_Transitiontypetra ( ) const
inline
void IntRes2d_Transition::_CSFDB_SetIntRes2d_Transitionoppos ( const Standard_Boolean  p)
inline
void IntRes2d_Transition::_CSFDB_SetIntRes2d_Transitionposit ( const IntRes2d_Position  p)
inline
void IntRes2d_Transition::_CSFDB_SetIntRes2d_Transitionsituat ( const IntRes2d_Situation  p)
inline
void IntRes2d_Transition::_CSFDB_SetIntRes2d_Transitiontangent ( const Standard_Boolean  p)
inline
void IntRes2d_Transition::_CSFDB_SetIntRes2d_Transitiontypetra ( const IntRes2d_TypeTrans  p)
inline
Standard_Boolean IntRes2d_Transition::IsOpposite ( ) const

returns a significant value if TransitionType returns TOUCH. In this case, the function returns true when the 2 curves locally define two different parts of the space. If TransitionType returns IN or OUT or UNDECIDED, the exception DomainError is raised.

Standard_Boolean IntRes2d_Transition::IsTangent ( ) const

Returns TRUE when the 2 curves are tangent at the intersection point. Theexception DomainError is raised if the type of transition is UNDECIDED.

IntRes2d_Position IntRes2d_Transition::PositionOnCurve ( ) const

Indicates if the intersection is at the beginning (IntRes2d_Head), at the end (IntRes2d_End), or in the middle (IntRes2d_Middle) of the curve.

void IntRes2d_Transition::SetPosition ( const IntRes2d_Position  Pos)

Sets the value of the position.

void IntRes2d_Transition::SetValue ( const Standard_Boolean  Tangent,
const IntRes2d_Position  Pos,
const IntRes2d_TypeTrans  Type 
)

Sets the values of an IN or OUT transition.

void IntRes2d_Transition::SetValue ( const Standard_Boolean  Tangent,
const IntRes2d_Position  Pos,
const IntRes2d_Situation  Situ,
const Standard_Boolean  Oppos 
)

Sets the values of a TOUCH transition.

void IntRes2d_Transition::SetValue ( const IntRes2d_Position  Pos)

Sets the values of an UNDECIDED transition.

IntRes2d_Situation IntRes2d_Transition::Situation ( ) const

returns a significant value if TransitionType returns TOUCH. In this case, the function returns : INSIDE when the curve remains inside the other one, OUTSIDE when it remains outside the other one, UNKNOWN when the calculus, based on the second derivatives cannot give the result. If TransitionType returns IN or OUT or UNDECIDED, the exception DomainError is raised.

IntRes2d_TypeTrans IntRes2d_Transition::TransitionType ( ) const

Returns the type of transition at the intersection. It may be IN or OUT or TOUCH, or UNDECIDED if the two first derivatives are not enough to give the tangent to one of the two curves.


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