#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_Bisec & | GeomBis (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_Bisec & | ChangeGeomBis (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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|