![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
#include <Geom2dHatch_Hatcher.hxx>

Public Member Functions | |
| Geom2dHatch_Hatcher (const Geom2dHatch_Intersector &Intersector, const double Confusion2d, const double Confusion3d, const bool KeepPnt=false, const bool KeepSeg=false) | |
| Returns an empty hatcher. | |
| void | Intersector (const Geom2dHatch_Intersector &Intersector) |
| Sets the associated intersector. | |
| const Geom2dHatch_Intersector & | Intersector () |
| Returns the associated intersector. | |
| Geom2dHatch_Intersector & | ChangeIntersector () |
| Returns the associated intersector. | |
| void | Confusion2d (const double Confusion) |
| Sets the confusion tolerance. | |
| double | 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 double Confusion) |
| Sets the confusion tolerance. | |
| double | 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 bool Keep) |
| Sets the above flag. | |
| bool | KeepPoints () const |
| Returns the flag about the points consideration. | |
| void | KeepSegments (const bool Keep) |
| Sets the above flag. | |
| bool | KeepSegments () const |
| Returns the flag about the segments consideration. | |
| void | Clear () |
| Removes all the hatchings and all the elements. | |
| const Geom2dAdaptor_Curve & | ElementCurve (const int IndE) const |
| Returns the curve associated to the IndE-th element. | |
| int | AddElement (const Geom2dAdaptor_Curve &Curve, const TopAbs_Orientation Orientation=TopAbs_FORWARD) |
| Adds an element to the hatcher and returns its index. | |
| int | AddElement (const occ::handle< Geom2d_Curve > &Curve, const TopAbs_Orientation Orientation=TopAbs_FORWARD) |
| Adds an element to the hatcher and returns its index. | |
| void | RemElement (const int IndE) |
| Removes the IndE-th element from the hatcher. | |
| void | ClrElements () |
| Removes all the elements from the hatcher. | |
| const Geom2dAdaptor_Curve & | HatchingCurve (const int IndH) const |
| Returns the curve associated to the IndH-th hatching. | |
| int | AddHatching (const Geom2dAdaptor_Curve &Curve) |
| Adds a hatching to the hatcher and returns its index. | |
| void | RemHatching (const int IndH) |
| Removes the IndH-th hatching from the hatcher. | |
| void | ClrHatchings () |
| Removes all the hatchings from the hatcher. | |
| int | NbPoints (const int IndH) const |
| Returns the number of intersection points of the IndH-th hatching. | |
| const HatchGen_PointOnHatching & | Point (const int IndH, const int 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. | |
| int | 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 int IndH) |
| Trims the IndH-th hatching by the elements already given. | |
| void | ComputeDomains () |
| Computes the domains of all the hatchings. | |
| void | ComputeDomains (const int IndH) |
| Computes the domains of the IndH-th hatching. | |
| bool | TrimDone (const int IndH) const |
| Returns the fact that the intersections were computed for the IndH-th hatching. | |
| bool | TrimFailed (const int IndH) const |
| Returns the fact that the intersections failed for the IndH-th hatching. | |
| bool | IsDone () const |
| Returns the fact that the domains were computed for all the hatchings. | |
| bool | IsDone (const int IndH) const |
| Returns the fact that the domains were computed for the IndH-th hatching. | |
| HatchGen_ErrorStatus | Status (const int IndH) const |
| Returns the status about the IndH-th hatching. | |
| int | NbDomains (const int 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_Domain & | Domain (const int IndH, const int IDom) const |
| Returns the IDom-th domain of the IndH-th hatching. | |
| void | Dump () const |
| Dump the hatcher. | |
Protected Member Functions | |
| Geom2dHatch_Element & | Element (const int IndE) |
| Returns the IndE-th element. | |
| Geom2dHatch_Hatching & | Hatching (const int IndH) |
| Returns the IndH-th hatching. | |
| Geom2dHatch_Hatcher::Geom2dHatch_Hatcher | ( | const Geom2dHatch_Intersector & | Intersector, |
| const double | Confusion2d, | ||
| const double | Confusion3d, | ||
| const bool | KeepPnt = false, | ||
| const bool | KeepSeg = false ) |
Returns an empty hatcher.
| int Geom2dHatch_Hatcher::AddElement | ( | const Geom2dAdaptor_Curve & | Curve, |
| const TopAbs_Orientation | Orientation = TopAbs_FORWARD ) |
Adds an element to the hatcher and returns its index.
|
inline |
Adds an element to the hatcher and returns its index.
| int Geom2dHatch_Hatcher::AddHatching | ( | const Geom2dAdaptor_Curve & | Curve | ) |
Adds a hatching to the hatcher and returns its index.
| Geom2dHatch_Intersector & Geom2dHatch_Hatcher::ChangeIntersector | ( | ) |
Returns the associated intersector.
| void Geom2dHatch_Hatcher::Clear | ( | ) |
Removes all the hatchings and all the elements.
| void Geom2dHatch_Hatcher::ClrElements | ( | ) |
Removes all the elements from the hatcher.
| void Geom2dHatch_Hatcher::ClrHatchings | ( | ) |
Removes all the hatchings from the hatcher.
| void Geom2dHatch_Hatcher::ComputeDomains | ( | ) |
Computes the domains of all the hatchings.
Computes the domains of the IndH-th hatching.
| double 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.
| double 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.
| const HatchGen_Domain & Geom2dHatch_Hatcher::Domain | ( | const int | IndH, |
| const int | IDom ) const |
Returns the IDom-th domain of the IndH-th hatching.
| void Geom2dHatch_Hatcher::Dump | ( | ) | const |
Dump the hatcher.
|
protected |
Returns the IndE-th element.
| const Geom2dAdaptor_Curve & Geom2dHatch_Hatcher::ElementCurve | ( | const int | IndE | ) | const |
Returns the curve associated to the IndE-th element.
|
protected |
Returns the IndH-th hatching.
| const Geom2dAdaptor_Curve & Geom2dHatch_Hatcher::HatchingCurve | ( | const int | IndH | ) | const |
Returns the curve associated to the IndH-th hatching.
| const Geom2dHatch_Intersector & Geom2dHatch_Hatcher::Intersector | ( | ) |
Returns the associated intersector.
| void Geom2dHatch_Hatcher::Intersector | ( | const Geom2dHatch_Intersector & | Intersector | ) |
Sets the associated intersector.
| bool Geom2dHatch_Hatcher::IsDone | ( | ) | const |
Returns the fact that the domains were computed for all the hatchings.
Returns the fact that the domains were computed for the IndH-th hatching.
| bool Geom2dHatch_Hatcher::KeepPoints | ( | ) | const |
Returns the flag about the points consideration.
| bool Geom2dHatch_Hatcher::KeepSegments | ( | ) | const |
Returns the flag about the segments consideration.
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.
Returns the number of intersection points of the IndH-th hatching.
| const HatchGen_PointOnHatching & Geom2dHatch_Hatcher::Point | ( | const int | IndH, |
| const int | IndP ) const |
Returns the IndP-th intersection point of the IndH-th hatching.
Removes the IndE-th element from the hatcher.
Removes the IndH-th hatching from the hatcher.
| HatchGen_ErrorStatus Geom2dHatch_Hatcher::Status | ( | const int | IndH | ) | const |
Returns the status about the IndH-th hatching.
| void Geom2dHatch_Hatcher::Trim | ( | ) |
Trims all the hatchings of the hatcher by all the elements of the hatcher.
| int 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.
Trims the IndH-th hatching by the elements already given.
Returns the fact that the intersections were computed for the IndH-th hatching.
Returns the fact that the intersections failed for the IndH-th hatching.