Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
IntRes2d_Intersection Class Reference

Defines the root class of all the Intersections
between two 2D-Curves, and provides all the methods
about the results of the Intersections Algorithms.

#include <IntRes2d_Intersection.hxx>

Inheritance diagram for IntRes2d_Intersection:
Inheritance graph
[legend]

Public Member Functions

DEFINE_STANDARD_ALLOC
Standard_Boolean 
IsDone () const
 returns TRUE when the computation was successful.

Standard_Boolean IsEmpty () const
 Returns TRUE if there is no intersection between the
given arguments.
The exception NotDone is raised if IsDone returns FALSE.

Standard_Integer NbPoints () const
 This function returns the number of intersection
points between the 2 curves.
The exception NotDone is raised if IsDone returns FALSE.

const IntRes2d_IntersectionPointPoint (const Standard_Integer N) const
 This function returns the intersection point
of range N;
The exception NotDone is raised if IsDone returns FALSE.
The exception OutOfRange is raised if (N <= 0)
or (N > NbPoints).

Standard_Integer NbSegments () const
 This function returns the number of intersection
segments between the two curves.
The exception NotDone is raised if IsDone returns FALSE.

const
IntRes2d_IntersectionSegment
Segment (const Standard_Integer N) const
 This function returns the intersection segment
of range N;
The exception NotDone is raised if IsDone returns FALSE.
The exception OutOfRange is raised if (N <= 0)
or (N > NbPoints).

void SetReversedParameters (const Standard_Boolean Reverseflag)

Protected Member Functions

 IntRes2d_Intersection ()
 Empty constructor.

 IntRes2d_Intersection (const IntRes2d_Intersection &Other)
void SetValues (const IntRes2d_Intersection &Inter)
void Append (const IntRes2d_Intersection &Inter, const Standard_Real FirstParam1, const Standard_Real LastParam1, const Standard_Real FirstParam2, const Standard_Real LastParam2)
void Append (const IntRes2d_IntersectionSegment &Seg)
void Append (const IntRes2d_IntersectionPoint &Pnt)
void Insert (const IntRes2d_IntersectionPoint &Pnt)
void ResetFields ()
Standard_Boolean ReversedParameters () const

Protected Attributes

Standard_Boolean done

Constructor & Destructor Documentation


Member Function Documentation

void IntRes2d_Intersection::Append ( const IntRes2d_Intersection Inter,
const Standard_Real  FirstParam1,
const Standard_Real  LastParam1,
const Standard_Real  FirstParam2,
const Standard_Real  LastParam2 
) [protected]

Field Documentation


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