OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKGeomAlgo
IntRes2d


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

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

#include <IntRes2d_Domain.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT IntRes2d_Domain ()
 Creates an infinite Domain (HasFirstPoint = False
and HasLastPoint = False).
.
Standard_EXPORT 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.
.
Standard_EXPORT 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.
.
Standard_EXPORT 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.
.
Standard_EXPORT void SetValues ()
 Sets the values for an infinite domain.
.
Standard_EXPORT 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_Pnt2d & FirstPoint () 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_Pnt2d & LastPoint () 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.
.

Private Attributes

Standard_Boolean status
Standard_Real first_param
Standard_Real last_param
Standard_Real first_tol
Standard_Real last_tol
gp_Pnt2d first_point
gp_Pnt2d last_point
Standard_Real periodfirst
Standard_Real periodlast


Constructor & Destructor Documentation

Standard_EXPORT IntRes2d_Domain::IntRes2d_Domain  ) 
 

Standard_EXPORT IntRes2d_Domain::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
 

Standard_EXPORT IntRes2d_Domain::IntRes2d_Domain const gp_Pnt2d &  Pnt,
const Standard_Real  Par,
const Standard_Real  Tol,
const Standard_Boolean  First
 


Member Function Documentation

void IntRes2d_Domain::EquivalentParameters Standard_Real &  zero,
Standard_Real &  zeroplusperiod
const [inline]
 

Standard_Real IntRes2d_Domain::FirstParameter  )  const [inline]
 

const gp_Pnt2d & IntRes2d_Domain::FirstPoint  )  const [inline]
 

Standard_Real IntRes2d_Domain::FirstTolerance  )  const [inline]
 

Standard_Boolean IntRes2d_Domain::HasFirstPoint  )  const [inline]
 

Standard_Boolean IntRes2d_Domain::HasLastPoint  )  const [inline]
 

Standard_Boolean IntRes2d_Domain::IsClosed  )  const [inline]
 

Standard_Real IntRes2d_Domain::LastParameter  )  const [inline]
 

const gp_Pnt2d & IntRes2d_Domain::LastPoint  )  const [inline]
 

Standard_Real IntRes2d_Domain::LastTolerance  )  const [inline]
 

void IntRes2d_Domain::operator delete void *  anAddress  )  [inline]
 

void* IntRes2d_Domain::operator new size_t  size  )  [inline]
 

void* IntRes2d_Domain::operator new size_t  ,
void *  anAddress
[inline]
 

void IntRes2d_Domain::SetEquivalentParameters const Standard_Real  zero,
const Standard_Real  period
[inline]
 

Standard_EXPORT void IntRes2d_Domain::SetValues const gp_Pnt2d &  Pnt,
const Standard_Real  Par,
const Standard_Real  Tol,
const Standard_Boolean  First
 

Standard_EXPORT void IntRes2d_Domain::SetValues  ) 
 

Standard_EXPORT void IntRes2d_Domain::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
 


Field Documentation

Standard_Real IntRes2d_Domain::first_param [private]
 

gp_Pnt2d IntRes2d_Domain::first_point [private]
 

Standard_Real IntRes2d_Domain::first_tol [private]
 

Standard_Real IntRes2d_Domain::last_param [private]
 

gp_Pnt2d IntRes2d_Domain::last_point [private]
 

Standard_Real IntRes2d_Domain::last_tol [private]
 

Standard_Real IntRes2d_Domain::periodfirst [private]
 

Standard_Real IntRes2d_Domain::periodlast [private]
 

Standard_Boolean IntRes2d_Domain::status [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 13:42:17 2008 for OpenCASCADE by  doxygen 1.4.1