Open CASCADE Technology 7.8.0
Public Member Functions | Protected Member Functions
Geom2dHatch_Hatcher Class Reference

#include <Geom2dHatch_Hatcher.hxx>

Inheritance diagram for Geom2dHatch_Hatcher:
Inheritance graph
[legend]

Public Member Functions

 Geom2dHatch_Hatcher (const Geom2dHatch_Intersector &Intersector, const Standard_Real Confusion2d, const Standard_Real Confusion3d, const Standard_Boolean KeepPnt=Standard_False, const Standard_Boolean KeepSeg=Standard_False)
 Returns an empty hatcher.
 
void Intersector (const Geom2dHatch_Intersector &Intersector)
 Sets the associated intersector.
 
const Geom2dHatch_IntersectorIntersector ()
 Returns the associated intersector.
 
Geom2dHatch_IntersectorChangeIntersector ()
 Returns the associated intersector.
 
void Confusion2d (const Standard_Real Confusion)
 Sets the confusion tolerance.
 
Standard_Real Confusion2d () const
 Returns the 2d confusion tolerance, i.e. the value under which two points are considered identical in the parametric space of the hatching.
 
void Confusion3d (const Standard_Real Confusion)
 Sets the confusion tolerance.
 
Standard_Real Confusion3d () const
 Returns the 3d confusion tolerance, i.e. the value under which two points are considered identical in the 3d space of the hatching.
 
void KeepPoints (const Standard_Boolean Keep)
 Sets the above flag.
 
Standard_Boolean KeepPoints () const
 Returns the flag about the points consideration.
 
void KeepSegments (const Standard_Boolean Keep)
 Sets the above flag.
 
Standard_Boolean KeepSegments () const
 Returns the flag about the segments consideration.
 
void Clear ()
 Removes all the hatchings and all the elements.
 
const Geom2dAdaptor_CurveElementCurve (const Standard_Integer IndE) const
 Returns the curve associated to the IndE-th element.
 
Standard_Integer AddElement (const Geom2dAdaptor_Curve &Curve, const TopAbs_Orientation Orientation=TopAbs_FORWARD)
 Adds an element to the hatcher and returns its index.
 
Standard_Integer AddElement (const Handle< Geom2d_Curve > &Curve, const TopAbs_Orientation Orientation=TopAbs_FORWARD)
 Adds an element to the hatcher and returns its index.
 
void RemElement (const Standard_Integer IndE)
 Removes the IndE-th element from the hatcher.
 
void ClrElements ()
 Removes all the elements from the hatcher.
 
const Geom2dAdaptor_CurveHatchingCurve (const Standard_Integer IndH) const
 Returns the curve associated to the IndH-th hatching.
 
Standard_Integer AddHatching (const Geom2dAdaptor_Curve &Curve)
 Adds a hatching to the hatcher and returns its index.
 
void RemHatching (const Standard_Integer IndH)
 Removes the IndH-th hatching from the hatcher.
 
void ClrHatchings ()
 Removes all the hatchings from the hatcher.
 
Standard_Integer NbPoints (const Standard_Integer IndH) const
 Returns the number of intersection points of the IndH-th hatching.
 
const HatchGen_PointOnHatchingPoint (const Standard_Integer IndH, const Standard_Integer IndP) const
 Returns the IndP-th intersection point of the IndH-th hatching.
 
void Trim ()
 Trims all the hatchings of the hatcher by all the elements of the hatcher.
 
Standard_Integer Trim (const Geom2dAdaptor_Curve &Curve)
 Adds a hatching to the hatcher and trims it by the elements already given and returns its index.
 
void Trim (const Standard_Integer IndH)
 Trims the IndH-th hatching by the elements already given.
 
void ComputeDomains ()
 Computes the domains of all the hatchings.
 
void ComputeDomains (const Standard_Integer IndH)
 Computes the domains of the IndH-th hatching.
 
Standard_Boolean TrimDone (const Standard_Integer IndH) const
 Returns the fact that the intersections were computed for the IndH-th hatching.
 
Standard_Boolean TrimFailed (const Standard_Integer IndH) const
 Returns the fact that the intersections failed for the IndH-th hatching.
 
Standard_Boolean IsDone () const
 Returns the fact that the domains were computed for all the hatchings.
 
Standard_Boolean IsDone (const Standard_Integer IndH) const
 Returns the fact that the domains were computed for the IndH-th hatching.
 
HatchGen_ErrorStatus Status (const Standard_Integer IndH) const
 Returns the status about the IndH-th hatching.
 
Standard_Integer NbDomains (const Standard_Integer IndH) const
 Returns the number of domains of the IndH-th hatching. Only ONE "INFINITE" domain means that the hatching is fully included in the contour defined by the elements.
 
const HatchGen_DomainDomain (const Standard_Integer IndH, const Standard_Integer IDom) const
 Returns the IDom-th domain of the IndH-th hatching.
 
void Dump () const
 Dump the hatcher.
 

Protected Member Functions

Geom2dHatch_ElementElement (const Standard_Integer IndE)
 Returns the IndE-th element.
 
Geom2dHatch_HatchingHatching (const Standard_Integer IndH)
 Returns the IndH-th hatching.
 

Constructor & Destructor Documentation

◆ Geom2dHatch_Hatcher()

Geom2dHatch_Hatcher::Geom2dHatch_Hatcher ( const Geom2dHatch_Intersector Intersector,
const Standard_Real  Confusion2d,
const Standard_Real  Confusion3d,
const Standard_Boolean  KeepPnt = Standard_False,
const Standard_Boolean  KeepSeg = Standard_False 
)

Returns an empty hatcher.

Member Function Documentation

◆ AddElement() [1/2]

Standard_Integer Geom2dHatch_Hatcher::AddElement ( const Geom2dAdaptor_Curve Curve,
const TopAbs_Orientation  Orientation = TopAbs_FORWARD 
)

Adds an element to the hatcher and returns its index.

◆ AddElement() [2/2]

Standard_Integer Geom2dHatch_Hatcher::AddElement ( const Handle< Geom2d_Curve > &  Curve,
const TopAbs_Orientation  Orientation = TopAbs_FORWARD 
)
inline

Adds an element to the hatcher and returns its index.

◆ AddHatching()

Standard_Integer Geom2dHatch_Hatcher::AddHatching ( const Geom2dAdaptor_Curve Curve)

Adds a hatching to the hatcher and returns its index.

◆ ChangeIntersector()

Geom2dHatch_Intersector & Geom2dHatch_Hatcher::ChangeIntersector ( )

Returns the associated intersector.

◆ Clear()

void Geom2dHatch_Hatcher::Clear ( )

Removes all the hatchings and all the elements.

◆ ClrElements()

void Geom2dHatch_Hatcher::ClrElements ( )

Removes all the elements from the hatcher.

◆ ClrHatchings()

void Geom2dHatch_Hatcher::ClrHatchings ( )

Removes all the hatchings from the hatcher.

◆ ComputeDomains() [1/2]

void Geom2dHatch_Hatcher::ComputeDomains ( )

Computes the domains of all the hatchings.

◆ ComputeDomains() [2/2]

void Geom2dHatch_Hatcher::ComputeDomains ( const Standard_Integer  IndH)

Computes the domains of the IndH-th hatching.

◆ Confusion2d() [1/2]

Standard_Real Geom2dHatch_Hatcher::Confusion2d ( ) const

Returns the 2d confusion tolerance, i.e. the value under which two points are considered identical in the parametric space of the hatching.

◆ Confusion2d() [2/2]

void Geom2dHatch_Hatcher::Confusion2d ( const Standard_Real  Confusion)

Sets the confusion tolerance.

◆ Confusion3d() [1/2]

Standard_Real Geom2dHatch_Hatcher::Confusion3d ( ) const

Returns the 3d confusion tolerance, i.e. the value under which two points are considered identical in the 3d space of the hatching.

◆ Confusion3d() [2/2]

void Geom2dHatch_Hatcher::Confusion3d ( const Standard_Real  Confusion)

Sets the confusion tolerance.

◆ Domain()

const HatchGen_Domain & Geom2dHatch_Hatcher::Domain ( const Standard_Integer  IndH,
const Standard_Integer  IDom 
) const

Returns the IDom-th domain of the IndH-th hatching.

◆ Dump()

void Geom2dHatch_Hatcher::Dump ( ) const

Dump the hatcher.

◆ Element()

Geom2dHatch_Element & Geom2dHatch_Hatcher::Element ( const Standard_Integer  IndE)
protected

Returns the IndE-th element.

◆ ElementCurve()

const Geom2dAdaptor_Curve & Geom2dHatch_Hatcher::ElementCurve ( const Standard_Integer  IndE) const

Returns the curve associated to the IndE-th element.

◆ Hatching()

Geom2dHatch_Hatching & Geom2dHatch_Hatcher::Hatching ( const Standard_Integer  IndH)
protected

Returns the IndH-th hatching.

◆ HatchingCurve()

const Geom2dAdaptor_Curve & Geom2dHatch_Hatcher::HatchingCurve ( const Standard_Integer  IndH) const

Returns the curve associated to the IndH-th hatching.

◆ Intersector() [1/2]

const Geom2dHatch_Intersector & Geom2dHatch_Hatcher::Intersector ( )

Returns the associated intersector.

◆ Intersector() [2/2]

void Geom2dHatch_Hatcher::Intersector ( const Geom2dHatch_Intersector Intersector)

Sets the associated intersector.

◆ IsDone() [1/2]

Standard_Boolean Geom2dHatch_Hatcher::IsDone ( ) const

Returns the fact that the domains were computed for all the hatchings.

◆ IsDone() [2/2]

Standard_Boolean Geom2dHatch_Hatcher::IsDone ( const Standard_Integer  IndH) const

Returns the fact that the domains were computed for the IndH-th hatching.

◆ KeepPoints() [1/2]

Standard_Boolean Geom2dHatch_Hatcher::KeepPoints ( ) const

Returns the flag about the points consideration.

◆ KeepPoints() [2/2]

void Geom2dHatch_Hatcher::KeepPoints ( const Standard_Boolean  Keep)

Sets the above flag.

◆ KeepSegments() [1/2]

Standard_Boolean Geom2dHatch_Hatcher::KeepSegments ( ) const

Returns the flag about the segments consideration.

◆ KeepSegments() [2/2]

void Geom2dHatch_Hatcher::KeepSegments ( const Standard_Boolean  Keep)

Sets the above flag.

◆ NbDomains()

Standard_Integer Geom2dHatch_Hatcher::NbDomains ( const Standard_Integer  IndH) const

Returns the number of domains of the IndH-th hatching. Only ONE "INFINITE" domain means that the hatching is fully included in the contour defined by the elements.

◆ NbPoints()

Standard_Integer Geom2dHatch_Hatcher::NbPoints ( const Standard_Integer  IndH) const

Returns the number of intersection points of the IndH-th hatching.

◆ Point()

const HatchGen_PointOnHatching & Geom2dHatch_Hatcher::Point ( const Standard_Integer  IndH,
const Standard_Integer  IndP 
) const

Returns the IndP-th intersection point of the IndH-th hatching.

◆ RemElement()

void Geom2dHatch_Hatcher::RemElement ( const Standard_Integer  IndE)

Removes the IndE-th element from the hatcher.

◆ RemHatching()

void Geom2dHatch_Hatcher::RemHatching ( const Standard_Integer  IndH)

Removes the IndH-th hatching from the hatcher.

◆ Status()

HatchGen_ErrorStatus Geom2dHatch_Hatcher::Status ( const Standard_Integer  IndH) const

Returns the status about the IndH-th hatching.

◆ Trim() [1/3]

void Geom2dHatch_Hatcher::Trim ( )

Trims all the hatchings of the hatcher by all the elements of the hatcher.

◆ Trim() [2/3]

Standard_Integer Geom2dHatch_Hatcher::Trim ( const Geom2dAdaptor_Curve Curve)

Adds a hatching to the hatcher and trims it by the elements already given and returns its index.

◆ Trim() [3/3]

void Geom2dHatch_Hatcher::Trim ( const Standard_Integer  IndH)

Trims the IndH-th hatching by the elements already given.

◆ TrimDone()

Standard_Boolean Geom2dHatch_Hatcher::TrimDone ( const Standard_Integer  IndH) const

Returns the fact that the intersections were computed for the IndH-th hatching.

◆ TrimFailed()

Standard_Boolean Geom2dHatch_Hatcher::TrimFailed ( const Standard_Integer  IndH) const

Returns the fact that the intersections failed for the IndH-th hatching.


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