Open CASCADE Technology
7.6.0
|
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>
Public Member Functions | |
Standard_Boolean | IsDone () const |
returns TRUE when the computation was successful. More... | |
Standard_Boolean | IsEmpty () const |
Returns TRUE if there is no intersection between the given arguments. The exception NotDone is raised if IsDone returns FALSE. More... | |
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. More... | |
const IntRes2d_IntersectionPoint & | Point (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). More... | |
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. More... | |
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). More... | |
void | SetReversedParameters (const Standard_Boolean Reverseflag) |
Protected Member Functions | |
IntRes2d_Intersection () | |
Empty constructor. More... | |
IntRes2d_Intersection (const IntRes2d_Intersection &Other) | |
IntRes2d_Intersection & | operator= (const IntRes2d_Intersection &theOther) |
Assignment. More... | |
~IntRes2d_Intersection () | |
Destructor is protected, for safe inheritance. More... | |
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 | |
IntRes2d_SequenceOfIntersectionPoint | lpnt |
IntRes2d_SequenceOfIntersectionSegment | lseg |
Standard_Boolean | done |
Standard_Boolean | reverse |
Defines the root class of all the Intersections between two 2D-Curves, and provides all the methods about the results of the Intersections Algorithms.
|
protected |
Empty constructor.
|
protected |
|
inlineprotected |
Destructor is protected, for safe inheritance.
|
protected |
|
protected |
|
protected |
|
protected |
Standard_Boolean IntRes2d_Intersection::IsDone | ( | ) | const |
returns TRUE when the computation was successful.
Standard_Boolean IntRes2d_Intersection::IsEmpty | ( | ) | const |
Returns TRUE if there is no intersection between the given arguments. The exception NotDone is raised if IsDone returns FALSE.
Standard_Integer 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.
Standard_Integer 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.
|
inlineprotected |
Assignment.
const IntRes2d_IntersectionPoint& IntRes2d_Intersection::Point | ( | 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).
|
protected |
|
protected |
const IntRes2d_IntersectionSegment& IntRes2d_Intersection::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 IntRes2d_Intersection::SetReversedParameters | ( | const Standard_Boolean | Reverseflag | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |