Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
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. More...

#include <IntRes2d_Intersection.hxx>

Inheritance diagram for IntRes2d_Intersection:
Inheritance graph
[legend]

Public Member Functions

bool IsDone () const
 returns TRUE when the computation was successful.
 
bool IsEmpty () const
 Returns TRUE if there is no intersection between the given arguments. The exception NotDone is raised if IsDone returns FALSE.
 
int 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 int 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).
 
int 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_IntersectionSegmentSegment (const int 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 bool Reverseflag)
 

Protected Member Functions

 IntRes2d_Intersection ()
 Empty constructor.
 
 IntRes2d_Intersection (const IntRes2d_Intersection &Other)
 
IntRes2d_Intersectionoperator= (const IntRes2d_Intersection &theOther)=default
 Assignment.
 
 ~IntRes2d_Intersection ()=default
 Destructor is protected, for safe inheritance.
 
void SetValues (const IntRes2d_Intersection &Inter)
 
void Append (const IntRes2d_Intersection &Inter, const double FirstParam1, const double LastParam1, const double FirstParam2, const double LastParam2)
 
void Append (const IntRes2d_IntersectionSegment &Seg)
 
void Append (const IntRes2d_IntersectionPoint &Pnt)
 
void Insert (const IntRes2d_IntersectionPoint &Pnt)
 
void ResetFields ()
 
bool ReversedParameters () const
 

Protected Attributes

NCollection_Sequence< IntRes2d_IntersectionPointlpnt
 
NCollection_Sequence< IntRes2d_IntersectionSegmentlseg
 
bool done
 
bool reverse
 

Detailed Description

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

Constructor & Destructor Documentation

◆ IntRes2d_Intersection() [1/2]

IntRes2d_Intersection::IntRes2d_Intersection ( )
protected

Empty constructor.

◆ IntRes2d_Intersection() [2/2]

IntRes2d_Intersection::IntRes2d_Intersection ( const IntRes2d_Intersection & Other)
protected

◆ ~IntRes2d_Intersection()

IntRes2d_Intersection::~IntRes2d_Intersection ( )
protecteddefault

Destructor is protected, for safe inheritance.

Member Function Documentation

◆ Append() [1/3]

void IntRes2d_Intersection::Append ( const IntRes2d_Intersection & Inter,
const double FirstParam1,
const double LastParam1,
const double FirstParam2,
const double LastParam2 )
protected

◆ Append() [2/3]

void IntRes2d_Intersection::Append ( const IntRes2d_IntersectionPoint & Pnt)
protected

◆ Append() [3/3]

void IntRes2d_Intersection::Append ( const IntRes2d_IntersectionSegment & Seg)
protected

◆ Insert()

void IntRes2d_Intersection::Insert ( const IntRes2d_IntersectionPoint & Pnt)
protected

◆ IsDone()

bool IntRes2d_Intersection::IsDone ( ) const

returns TRUE when the computation was successful.

◆ IsEmpty()

bool IntRes2d_Intersection::IsEmpty ( ) const

Returns TRUE if there is no intersection between the given arguments. The exception NotDone is raised if IsDone returns FALSE.

◆ NbPoints()

int IntRes2d_Intersection::NbPoints ( ) const

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

◆ NbSegments()

int IntRes2d_Intersection::NbSegments ( ) const

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

◆ operator=()

IntRes2d_Intersection & IntRes2d_Intersection::operator= ( const IntRes2d_Intersection & theOther)
protecteddefault

Assignment.

◆ Point()

const IntRes2d_IntersectionPoint & IntRes2d_Intersection::Point ( const int 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).

◆ ResetFields()

void IntRes2d_Intersection::ResetFields ( )
protected

◆ ReversedParameters()

bool IntRes2d_Intersection::ReversedParameters ( ) const
protected

◆ Segment()

const IntRes2d_IntersectionSegment & IntRes2d_Intersection::Segment ( const int 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).

◆ SetReversedParameters()

void IntRes2d_Intersection::SetReversedParameters ( const bool Reverseflag)

◆ SetValues()

void IntRes2d_Intersection::SetValues ( const IntRes2d_Intersection & Inter)
protected

Field Documentation

◆ done

bool IntRes2d_Intersection::done
protected

◆ lpnt

NCollection_Sequence<IntRes2d_IntersectionPoint> IntRes2d_Intersection::lpnt
protected

◆ lseg

NCollection_Sequence<IntRes2d_IntersectionSegment> IntRes2d_Intersection::lseg
protected

◆ reverse

bool IntRes2d_Intersection::reverse
protected

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