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

Definition of the domain of parameter on a 2d-curve.
Most of the time, a domain is defined by two extremities.
An extremity is made of :
More...

#include <IntRes2d_Domain.hxx>

Public Member Functions

DEFINE_STANDARD_ALLOC IntRes2d_Domain ()
 Creates an infinite Domain (HasFirstPoint = False
and HasLastPoint = False).

 IntRes2d_Domain (const gp_Pnt2d &Pnt1, const Standard_Real Par1, const Standard_Real Tol1, const gp_Pnt2d &Pnt2, const Standard_Real Par2, const Standard_Real Tol2)
 Creates a bounded Domain.

 IntRes2d_Domain (const gp_Pnt2d &Pnt, const Standard_Real Par, const Standard_Real Tol, const Standard_Boolean First)
 Creates a semi-infinite Domain. If First is set to
True, the given point is the first point of the domain,
otherwise it is the last point.

void SetValues (const gp_Pnt2d &Pnt1, const Standard_Real Par1, const Standard_Real Tol1, const gp_Pnt2d &Pnt2, const Standard_Real Par2, const Standard_Real Tol2)
 Sets the values for a bounded domain.

void SetValues ()
 Sets the values for an infinite domain.

void SetValues (const gp_Pnt2d &Pnt, const Standard_Real Par, const Standard_Real Tol, const Standard_Boolean First)
 Sets the values for a semi-infinite domain.

void SetEquivalentParameters (const Standard_Real zero, const Standard_Real period)
 Defines a closed domain.

Standard_Boolean HasFirstPoint () const
 Returns True if the domain has a first point, i-e
a point defining the lowest admitted parameter on the
curve.

Standard_Real FirstParameter () const
 Returns the parameter of the first point of the domain
The exception DomainError is raised if HasFirstPoint
returns False.

const gp_Pnt2dFirstPoint () const
 Returns the first point of the domain.
The exception DomainError is raised if HasFirstPoint
returns False.

Standard_Real FirstTolerance () const
 Returns the tolerance of the first (left) bound.
The exception DomainError is raised if HasFirstPoint
returns False.

Standard_Boolean HasLastPoint () const
 Returns True if the domain has a last point, i-e
a point defining the highest admitted parameter on the
curve.

Standard_Real LastParameter () const
 Returns the parameter of the last point of the domain.
The exception DomainError is raised if HasLastPoint
returns False.

const gp_Pnt2dLastPoint () const
 Returns the last point of the domain.
The exception DomainError is raised if HasLastPoint
returns False.

Standard_Real LastTolerance () const
 Returns the tolerance of the last (right) bound.
The exception DomainError is raised if HasLastPoint
returns False.

Standard_Boolean IsClosed () const
 Returns True if the domain is closed.

void EquivalentParameters (Standard_Real &zero, Standard_Real &zeroplusperiod) const
 Returns Equivalent parameters if the domain is closed.
Otherwise, the exception DomainError is raised.


Detailed Description

      - a point in 2d-space (Pnt2d from gp), <br>
      - a parameter on the curve, <br>
      - a tolerance in the 2d-space. <br>
     Sometimes, it can be made of 0 or 1 point ( for an infinite <br>
     or semi-infinite line for example). <br>


For Intersection algorithms, Ellipses and Circles
Domains must be closed.
So, SetEquivalentParameters(.,.) method must be called
after initializing the first and the last bounds.


Constructor & Destructor Documentation


Member Function Documentation

void IntRes2d_Domain::EquivalentParameters ( Standard_Real zero,
Standard_Real zeroplusperiod 
) const

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