#include <Hatch_Hatcher.hxx>
Public Member Functions | |
void * | operator new (size_t, void *anAddress) |
void * | operator new (size_t size) |
void | operator delete (void *anAddress) |
Standard_EXPORT | Hatch_Hatcher (const Standard_Real Tol, const Standard_Boolean Oriented=Standard_True) |
Returns a empty hatcher. <tol> is the tolerance for intersections. . | |
void | Tolerance (const Standard_Real Tol) |
Standard_Real | Tolerance () const |
Standard_EXPORT void | AddLine (const gp_Lin2d &L, const Hatch_LineForm T=Hatch_ANYLINE) |
Add a line <l> to be trimmed. <t> the type is only kept from information. It is not used in the computation. . | |
Standard_EXPORT void | AddLine (const gp_Dir2d &D, const Standard_Real Dist) |
Add an infinite line on direction <d> at distance <dist> from the origin to be trimmed. <dist> may be negative. If O is the origin of the 2D plane, and V the vector perpendicular to D (in the direct direction). A point P is on the line if : OP dot V = Dist The parameter of P on the line is OP dot D . | |
Standard_EXPORT void | AddXLine (const Standard_Real X) |
Add an infinite line parallel to the Y-axis at abciss <x>. . | |
Standard_EXPORT void | AddYLine (const Standard_Real Y) |
Add an infinite line parallel to the X-axis at ordinate <y>. . | |
Standard_EXPORT void | Trim (const gp_Lin2d &L, const Standard_Integer Index=0) |
Trims the lines at intersections with <l>. . | |
Standard_EXPORT void | Trim (const gp_Lin2d &L, const Standard_Real Start, const Standard_Real End, const Standard_Integer Index=0) |
Trims the lines at intersections with <l> in the parameter range <start>, <end> . | |
Standard_EXPORT void | Trim (const gp_Pnt2d &P1, const gp_Pnt2d &P2, const Standard_Integer Index=0) |
Trims the line at intersection with the oriented segment P1,P2. . | |
Standard_EXPORT Standard_Integer | NbIntervals () const |
Returns the total number of intervals on all the lines. . | |
Standard_EXPORT Standard_Integer | NbLines () const |
Returns the number of lines. . | |
Standard_EXPORT const gp_Lin2d & | Line (const Standard_Integer I) const |
Returns the line of index . . | |
Standard_EXPORT Hatch_LineForm | LineForm (const Standard_Integer I) const |
Returns the type of the line of index . . | |
Standard_Boolean | IsXLine (const Standard_Integer I) const |
Returns True if the line of index has a constant X value. . | |
Standard_Boolean | IsYLine (const Standard_Integer I) const |
Returns True if the line of index has a constant Y value. . | |
Standard_EXPORT Standard_Real | Coordinate (const Standard_Integer I) const |
Returns the X or Y coordinate of the line of index if it is a X or a Y line. . | |
Standard_EXPORT Standard_Integer | NbIntervals (const Standard_Integer I) const |
Returns the number of intervals on line of index . . | |
Standard_EXPORT Standard_Real | Start (const Standard_Integer I, const Standard_Integer J) const |
Returns the first parameter of interval <j> on line . . | |
Standard_EXPORT void | StartIndex (const Standard_Integer I, const Standard_Integer J, Standard_Integer &Index, Standard_Real &Par2) const |
Returns the first Index and Par2 of interval <j> on line . . | |
Standard_EXPORT Standard_Real | End (const Standard_Integer I, const Standard_Integer J) const |
Returns the last parameter of interval <j> on line . . | |
Standard_EXPORT void | EndIndex (const Standard_Integer I, const Standard_Integer J, Standard_Integer &Index, Standard_Real &Par2) const |
Returns the last Index and Par2 of interval <j> on line . . | |
Private Attributes | |
Standard_Real | myToler |
Hatch_SequenceOfLine | myLines |
Standard_Boolean | myOrient |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|