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

ModelingAlgorithms
TKTopAlgo
MAT2d


MAT2d_Tool2d Class Reference

Set of the methods useful for the MAT's computation.
Tool2d contains the geometry of the bisecting locus.
.

#include <MAT2d_Tool2d.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT MAT2d_Tool2d ()
 aSide> defines the side of the computation of the map.

Standard_EXPORT void Sense (const MAT_Side aside)
Standard_EXPORT void InitItems (const Handle(MAT2d_Circuit)&aCircuit)
 InitItems cuts the line in Items.
this Items are the geometrics representations of
the BasicElts from MAT.
.
Standard_EXPORT Standard_Integer NumberOfItems () const
 Returns the Number of Items .
.
Standard_EXPORT Standard_Real ToleranceOfConfusion () const
 Returns tolerance to test the confusion of two points.
.
Standard_EXPORT Standard_Integer FirstPoint (const Standard_Integer anitem, Standard_Real &dist)
 Creates the point at the origin of the bisector between
anitem and the previous item.
dist is the distance from the FirstPoint to <anitem>.
Returns the index of this point in <thegeompnts>.
.
Standard_EXPORT Standard_Integer TangentBefore (const Standard_Integer anitem)
 Creates the Tangent at the end of the Item defined
by <anitem>. Returns the index of this vector in
<thegeomvecs>
.
Standard_EXPORT Standard_Integer TangentAfter (const Standard_Integer anitem)
 Creates the Reversed Tangent at the origin of the Item
defined by <anitem>. Returns the index of this vector in
<thegeomvecs>
.
Standard_EXPORT Standard_Integer Tangent (const Standard_Integer bisector)
 Creates the Tangent at the end of the bisector defined
by <bisector>. Returns the index of this vector in
<thegeomvecs>
.
Standard_EXPORT void CreateBisector (const Handle(MAT_Bisector)&abisector)
 Creates the geometric bisector defined by <abisector>.
.
Standard_EXPORT Standard_Boolean TrimBisector (const Handle(MAT_Bisector)&abisector)
 Trims the geometric bisector by the <firstparameter>
of <abisector>.
If the parameter is out of the bisector, Return FALSE.
else Return True.
.
Standard_EXPORT Standard_Boolean TrimBisector (const Handle(MAT_Bisector)&abisector, const Standard_Integer apoint)
 Trims the geometric bisector by the point of index
<apoint> in <thegeompnts>.
If the point is out of the bisector, Return FALSE.
else Return True.
.
Standard_EXPORT Standard_Real IntersectBisector (const Handle(MAT_Bisector)&bisectorone, const Handle(MAT_Bisector)&bisectortwo, Standard_Integer &intpnt)
 Computes the point of intersection between the
bisectors defined by <bisectorone> and
<bisectortwo> .
If this point exists, <intpnt> is its index
in <thegeompnts> and Return the distance of the point
from the bisector else Return <reallast>.
.
Standard_EXPORT Standard_Real Distance (const Handle(MAT_Bisector)&abisector, const Standard_Real param1, const Standard_Real param2) const
 Returns the distance between the two points designed
by their parameters on <abisector>.
.
Standard_EXPORT void Dump (const Standard_Integer bisector, const Standard_Integer erease) const
 displays informations about the bisector defined by
<bisector>.

Standard_EXPORT const Bisector_BisecGeomBis (const Standard_Integer Index) const
 Returns the <bisec> of index <index> in
<thegeombisectors>.

.
Standard_EXPORT Handle_Geom2d_Geometry GeomElt (const Standard_Integer Index) const
 Returns the Geometry of index <index> in <thegeomelts>.
.
Standard_EXPORT const gp_Pnt2d & GeomPnt (const Standard_Integer Index) const
 Returns the point of index <index> in the <thegeompnts>.

.
Standard_EXPORT const gp_Vec2d & GeomVec (const Standard_Integer Index) const
 Returns the vector of index <index> in the
<thegeomvecs>.

.
Standard_EXPORT Handle_MAT2d_Circuit Circuit () const
 

Standard_EXPORT void BisecFusion (const Standard_Integer Index1, const Standard_Integer Index2)
Standard_EXPORT Bisector_BisecChangeGeomBis (const Standard_Integer Index)
 Returns the <bisec> of index <index> in
<thegeombisectors>.

.

Private Member Functions

Standard_EXPORT Standard_Boolean IsSameDistance (const Handle(MAT_Bisector)&bisectorone, const Handle(MAT_Bisector)&bisectortwo, const gp_Pnt2d &apoint, Standard_Real &adistance) const
 Returns True if the point <apoint> is equidistant to
the elements separated by bisectors <bisectorone> and
<bisectortwo>.
In this case <adistance> is the distance of the point
from the bisectors.
.
Standard_EXPORT Standard_Boolean Projection (const Standard_Integer IndexElt, const gp_Pnt2d &Point, Standard_Real &Distance) const
 Return <true> if the Point can be projected
on the element designed by <indexelt>.
In this case <distance> is the minimum of distance
between Point and its projections.
.
Standard_EXPORT void TrimBisec (Bisector_Bisec &Bis, const Standard_Integer IndexEdge, const Standard_Boolean OnLine, const Standard_Integer StartOrEnd) const

Private Attributes

Standard_Real theDirection
Standard_Integer theNumberOfBisectors
Standard_Integer theNumberOfPnts
Standard_Integer theNumberOfVecs
Handle_MAT2d_Circuit theCircuit
MAT2d_DataMapOfIntegerBisec theGeomBisectors
MAT2d_DataMapOfIntegerPnt2d theGeomPnts
MAT2d_DataMapOfIntegerVec2d theGeomVecs
TColStd_SequenceOfInteger theLinesLength


Constructor & Destructor Documentation

Standard_EXPORT MAT2d_Tool2d::MAT2d_Tool2d  ) 
 


Member Function Documentation

Standard_EXPORT void MAT2d_Tool2d::BisecFusion const Standard_Integer  Index1,
const Standard_Integer  Index2
 

Standard_EXPORT Bisector_Bisec& MAT2d_Tool2d::ChangeGeomBis const Standard_Integer  Index  ) 
 

Standard_EXPORT Handle_MAT2d_Circuit MAT2d_Tool2d::Circuit  )  const
 

Standard_EXPORT void MAT2d_Tool2d::CreateBisector const Handle(MAT_Bisector)&  abisector  ) 
 

Standard_EXPORT Standard_Real MAT2d_Tool2d::Distance const Handle(MAT_Bisector)&  abisector,
const Standard_Real  param1,
const Standard_Real  param2
const
 

Standard_EXPORT void MAT2d_Tool2d::Dump const Standard_Integer  bisector,
const Standard_Integer  erease
const
 

Standard_EXPORT Standard_Integer MAT2d_Tool2d::FirstPoint const Standard_Integer  anitem,
Standard_Real &  dist
 

Standard_EXPORT const Bisector_Bisec& MAT2d_Tool2d::GeomBis const Standard_Integer  Index  )  const
 

Standard_EXPORT Handle_Geom2d_Geometry MAT2d_Tool2d::GeomElt const Standard_Integer  Index  )  const
 

Standard_EXPORT const gp_Pnt2d& MAT2d_Tool2d::GeomPnt const Standard_Integer  Index  )  const
 

Standard_EXPORT const gp_Vec2d& MAT2d_Tool2d::GeomVec const Standard_Integer  Index  )  const
 

Standard_EXPORT void MAT2d_Tool2d::InitItems const Handle(MAT2d_Circuit)&  aCircuit  ) 
 

Standard_EXPORT Standard_Real MAT2d_Tool2d::IntersectBisector const Handle(MAT_Bisector)&  bisectorone,
const Handle(MAT_Bisector)&  bisectortwo,
Standard_Integer &  intpnt
 

Standard_EXPORT Standard_Boolean MAT2d_Tool2d::IsSameDistance const Handle(MAT_Bisector)&  bisectorone,
const Handle(MAT_Bisector)&  bisectortwo,
const gp_Pnt2d &  apoint,
Standard_Real &  adistance
const [private]
 

Standard_EXPORT Standard_Integer MAT2d_Tool2d::NumberOfItems  )  const
 

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

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

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

Standard_EXPORT Standard_Boolean MAT2d_Tool2d::Projection const Standard_Integer  IndexElt,
const gp_Pnt2d &  Point,
Standard_Real &  Distance
const [private]
 

Standard_EXPORT void MAT2d_Tool2d::Sense const MAT_Side  aside  ) 
 

Standard_EXPORT Standard_Integer MAT2d_Tool2d::Tangent const Standard_Integer  bisector  ) 
 

Standard_EXPORT Standard_Integer MAT2d_Tool2d::TangentAfter const Standard_Integer  anitem  ) 
 

Standard_EXPORT Standard_Integer MAT2d_Tool2d::TangentBefore const Standard_Integer  anitem  ) 
 

Standard_EXPORT Standard_Real MAT2d_Tool2d::ToleranceOfConfusion  )  const
 

Standard_EXPORT void MAT2d_Tool2d::TrimBisec Bisector_Bisec Bis,
const Standard_Integer  IndexEdge,
const Standard_Boolean  OnLine,
const Standard_Integer  StartOrEnd
const [private]
 

Standard_EXPORT Standard_Boolean MAT2d_Tool2d::TrimBisector const Handle(MAT_Bisector)&  abisector,
const Standard_Integer  apoint
 

Standard_EXPORT Standard_Boolean MAT2d_Tool2d::TrimBisector const Handle(MAT_Bisector)&  abisector  ) 
 


Field Documentation

Handle_MAT2d_Circuit MAT2d_Tool2d::theCircuit [private]
 

Standard_Real MAT2d_Tool2d::theDirection [private]
 

MAT2d_DataMapOfIntegerBisec MAT2d_Tool2d::theGeomBisectors [private]
 

MAT2d_DataMapOfIntegerPnt2d MAT2d_Tool2d::theGeomPnts [private]
 

MAT2d_DataMapOfIntegerVec2d MAT2d_Tool2d::theGeomVecs [private]
 

TColStd_SequenceOfInteger MAT2d_Tool2d::theLinesLength [private]
 

Standard_Integer MAT2d_Tool2d::theNumberOfBisectors [private]
 

Standard_Integer MAT2d_Tool2d::theNumberOfPnts [private]
 

Standard_Integer MAT2d_Tool2d::theNumberOfVecs [private]
 


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