Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
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

DEFINE_STANDARD_ALLOC MAT2d_Tool2d ()
 Empty Constructor.

void Sense (const MAT_Side aside)
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_Integer NumberOfItems () const
 Returns the Number of Items .

Standard_Real ToleranceOfConfusion () const
 Returns tolerance to test the confusion of two points.

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_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_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_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>

void CreateBisector (const Handle< MAT_Bisector > &abisector)
 Creates the geometric bisector defined by <abisector>.

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_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_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_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>.

void Dump (const Standard_Integer bisector, const Standard_Integer erease) const
 displays informations about the bisector defined by
<bisector>.

const Bisector_BisecGeomBis (const Standard_Integer Index) const
 Returns the <Bisec> of index <Index> in
<theGeomBisectors>.


Handle_Geom2d_Geometry GeomElt (const Standard_Integer Index) const
 Returns the Geometry of index <Index> in <theGeomElts>.

const gp_Pnt2dGeomPnt (const Standard_Integer Index) const
 Returns the point of index <Index> in the <theGeomPnts>.


const gp_Vec2dGeomVec (const Standard_Integer Index) const
 Returns the vector of index <Index> in the
<theGeomVecs>.


Handle_MAT2d_Circuit Circuit () const
 

void BisecFusion (const Standard_Integer Index1, const Standard_Integer Index2)
Bisector_BisecChangeGeomBis (const Standard_Integer Index)
 Returns the <Bisec> of index <Index> in
<theGeomBisectors>.



Constructor & Destructor Documentation

aSide> defines the side of the computation of the map.


Member Function Documentation

Handle_MAT2d_Circuit MAT2d_Tool2d::Circuit ( ) const
Handle_Geom2d_Geometry MAT2d_Tool2d::GeomElt ( const Standard_Integer  Index) const

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