Open CASCADE Technology  7.2.0
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. More...

#include <MAT2d_Tool2d.hxx>

Public Member Functions

 MAT2d_Tool2d ()
 Empty Constructor. More...
 
void Sense (const MAT_Side aside)
 <aSide> defines the side of the computation of the map. More...
 
void SetJoinType (const GeomAbs_JoinType aJoinType)
 
void InitItems (const Handle< MAT2d_Circuit > &aCircuit)
 InitItems cuts the line in Items. this Items are the geometrics representations of the BasicElts from MAT. More...
 
Standard_Integer NumberOfItems () const
 Returns the Number of Items . More...
 
Standard_Real ToleranceOfConfusion () const
 Returns tolerance to test the confusion of two points. More...
 
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>. More...
 
Standard_Integer TangentBefore (const Standard_Integer anitem, const Standard_Boolean IsOpenResult)
 Creates the Tangent at the end of the Item defined by <anitem>. Returns the index of this vector in <theGeomVecs> More...
 
Standard_Integer TangentAfter (const Standard_Integer anitem, const Standard_Boolean IsOpenResult)
 Creates the Reversed Tangent at the origin of the Item defined by <anitem>. Returns the index of this vector in <theGeomVecs> More...
 
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> More...
 
void CreateBisector (const Handle< MAT_Bisector > &abisector)
 Creates the geometric bisector defined by <abisector>. More...
 
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. More...
 
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. More...
 
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>. More...
 
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>. More...
 
void Dump (const Standard_Integer bisector, const Standard_Integer erease) const
 displays informations about the bisector defined by <bisector>. More...
 
const Bisector_BisecGeomBis (const Standard_Integer Index) const
 Returns the <Bisec> of index <Index> in <theGeomBisectors>. More...
 
Handle< Geom2d_GeometryGeomElt (const Standard_Integer Index) const
 Returns the Geometry of index <Index> in <theGeomElts>. More...
 
const gp_Pnt2dGeomPnt (const Standard_Integer Index) const
 Returns the point of index <Index> in the <theGeomPnts>. More...
 
const gp_Vec2dGeomVec (const Standard_Integer Index) const
 Returns the vector of index <Index> in the <theGeomVecs>. More...
 
Handle< MAT2d_CircuitCircuit () 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>. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ MAT2d_Tool2d()

MAT2d_Tool2d::MAT2d_Tool2d ( )

Empty Constructor.

Member Function Documentation

◆ BisecFusion()

void MAT2d_Tool2d::BisecFusion ( const Standard_Integer  Index1,
const Standard_Integer  Index2 
)

◆ ChangeGeomBis()

Bisector_Bisec& MAT2d_Tool2d::ChangeGeomBis ( const Standard_Integer  Index)

Returns the <Bisec> of index <Index> in <theGeomBisectors>.

◆ Circuit()

Handle< MAT2d_Circuit > MAT2d_Tool2d::Circuit ( ) const

◆ CreateBisector()

void MAT2d_Tool2d::CreateBisector ( const Handle< MAT_Bisector > &  abisector)

Creates the geometric bisector defined by <abisector>.

◆ Distance()

Standard_Real MAT2d_Tool2d::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>.

◆ Dump()

void MAT2d_Tool2d::Dump ( const Standard_Integer  bisector,
const Standard_Integer  erease 
) const

displays informations about the bisector defined by <bisector>.

◆ FirstPoint()

Standard_Integer MAT2d_Tool2d::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>.

◆ GeomBis()

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

Returns the <Bisec> of index <Index> in <theGeomBisectors>.

◆ GeomElt()

Handle< Geom2d_Geometry > MAT2d_Tool2d::GeomElt ( const Standard_Integer  Index) const

Returns the Geometry of index <Index> in <theGeomElts>.

◆ GeomPnt()

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

Returns the point of index <Index> in the <theGeomPnts>.

◆ GeomVec()

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

Returns the vector of index <Index> in the <theGeomVecs>.

◆ InitItems()

void MAT2d_Tool2d::InitItems ( const Handle< MAT2d_Circuit > &  aCircuit)

InitItems cuts the line in Items. this Items are the geometrics representations of the BasicElts from MAT.

◆ IntersectBisector()

Standard_Real MAT2d_Tool2d::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>.

◆ NumberOfItems()

Standard_Integer MAT2d_Tool2d::NumberOfItems ( ) const

Returns the Number of Items .

◆ Sense()

void MAT2d_Tool2d::Sense ( const MAT_Side  aside)

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

◆ SetJoinType()

void MAT2d_Tool2d::SetJoinType ( const GeomAbs_JoinType  aJoinType)

◆ Tangent()

Standard_Integer MAT2d_Tool2d::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>

◆ TangentAfter()

Standard_Integer MAT2d_Tool2d::TangentAfter ( const Standard_Integer  anitem,
const Standard_Boolean  IsOpenResult 
)

Creates the Reversed Tangent at the origin of the Item defined by <anitem>. Returns the index of this vector in <theGeomVecs>

◆ TangentBefore()

Standard_Integer MAT2d_Tool2d::TangentBefore ( const Standard_Integer  anitem,
const Standard_Boolean  IsOpenResult 
)

Creates the Tangent at the end of the Item defined by <anitem>. Returns the index of this vector in <theGeomVecs>

◆ ToleranceOfConfusion()

Standard_Real MAT2d_Tool2d::ToleranceOfConfusion ( ) const

Returns tolerance to test the confusion of two points.

◆ TrimBisector() [1/2]

Standard_Boolean MAT2d_Tool2d::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.

◆ TrimBisector() [2/2]

Standard_Boolean MAT2d_Tool2d::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.


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