Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
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.
 
void Sense (const MAT_Side aside)
 <aSide> defines the side of the computation of the map.
 
void SetJoinType (const GeomAbs_JoinType aJoinType)
 
void InitItems (const occ::handle< MAT2d_Circuit > &aCircuit)
 InitItems cuts the line in Items. this Items are the geometrics representations of the BasicElts from MAT.
 
int NumberOfItems () const
 Returns the Number of Items .
 
double ToleranceOfConfusion () const
 Returns tolerance to test the confusion of two points.
 
int FirstPoint (const int anitem, double &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>.
 
int TangentBefore (const int anitem, const bool IsOpenResult)
 Creates the Tangent at the end of the Item defined by <anitem>. Returns the index of this vector in <theGeomVecs>
 
int TangentAfter (const int anitem, const bool IsOpenResult)
 Creates the Reversed Tangent at the origin of the Item defined by <anitem>. Returns the index of this vector in <theGeomVecs>
 
int Tangent (const int bisector)
 Creates the Tangent at the end of the bisector defined by <bisector>. Returns the index of this vector in <theGeomVecs>
 
void CreateBisector (const occ::handle< MAT_Bisector > &abisector)
 Creates the geometric bisector defined by <abisector>.
 
bool TrimBisector (const occ::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.
 
bool TrimBisector (const occ::handle< MAT_Bisector > &abisector, const int 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.
 
double IntersectBisector (const occ::handle< MAT_Bisector > &bisectorone, const occ::handle< MAT_Bisector > &bisectortwo, int &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>.
 
double Distance (const occ::handle< MAT_Bisector > &abisector, const double param1, const double param2) const
 Returns the distance between the two points designed by their parameters on <abisector>.
 
void Dump (const int bisector, const int erease) const
 displays information about the bisector defined by <bisector>.
 
const Bisector_BisecGeomBis (const int Index) const
 Returns the <Bisec> of index <Index> in <theGeomBisectors>.
 
occ::handle< Geom2d_GeometryGeomElt (const int Index) const
 Returns the Geometry of index <Index> in <theGeomElts>.
 
const gp_Pnt2dGeomPnt (const int Index) const
 Returns the point of index <Index> in the <theGeomPnts>.
 
const gp_Vec2dGeomVec (const int Index) const
 Returns the vector of index <Index> in the <theGeomVecs>.
 
occ::handle< MAT2d_CircuitCircuit () const
 
void BisecFusion (const int Index1, const int Index2)
 
Bisector_BisecChangeGeomBis (const int Index)
 Returns the <Bisec> of index <Index> in <theGeomBisectors>.
 

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 int Index1,
const int Index2 )

◆ ChangeGeomBis()

Bisector_Bisec & MAT2d_Tool2d::ChangeGeomBis ( const int Index)

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

◆ Circuit()

occ::handle< MAT2d_Circuit > MAT2d_Tool2d::Circuit ( ) const

◆ CreateBisector()

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

Creates the geometric bisector defined by <abisector>.

◆ Distance()

double MAT2d_Tool2d::Distance ( const occ::handle< MAT_Bisector > & abisector,
const double param1,
const double param2 ) const

Returns the distance between the two points designed by their parameters on <abisector>.

◆ Dump()

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

displays information about the bisector defined by <bisector>.

◆ FirstPoint()

int MAT2d_Tool2d::FirstPoint ( const int anitem,
double & 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 int Index) const

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

◆ GeomElt()

occ::handle< Geom2d_Geometry > MAT2d_Tool2d::GeomElt ( const int Index) const

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

◆ GeomPnt()

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

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

◆ GeomVec()

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

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

◆ InitItems()

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

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

◆ IntersectBisector()

double MAT2d_Tool2d::IntersectBisector ( const occ::handle< MAT_Bisector > & bisectorone,
const occ::handle< MAT_Bisector > & bisectortwo,
int & 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()

int 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()

int MAT2d_Tool2d::Tangent ( const int bisector)

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

◆ TangentAfter()

int MAT2d_Tool2d::TangentAfter ( const int anitem,
const bool IsOpenResult )

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

◆ TangentBefore()

int MAT2d_Tool2d::TangentBefore ( const int anitem,
const bool IsOpenResult )

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

◆ ToleranceOfConfusion()

double MAT2d_Tool2d::ToleranceOfConfusion ( ) const

Returns tolerance to test the confusion of two points.

◆ TrimBisector() [1/2]

bool MAT2d_Tool2d::TrimBisector ( const occ::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]

bool MAT2d_Tool2d::TrimBisector ( const occ::handle< MAT_Bisector > & abisector,
const int 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: