23 #ifndef _GEOMUtils_Hatcher_HXX_
24 #define _GEOMUtils_Hatcher_HXX_
27 #include <Geom2dHatch_Hatcher.hxx>
28 #include <GeomAbs_IsoType.hxx>
29 #include <TColStd_HArray1OfInteger.hxx>
30 #include <TColStd_HArray1OfReal.hxx>
31 #include <TopoDS_Face.hxx>
46 Standard_EXPORT
Hatcher(
const TopoDS_Face &theFace);
53 Standard_EXPORT
void Init(
const Standard_Integer theNbIsos);
61 Standard_EXPORT
void Init(
const Standard_Integer theNbIsoU,
62 const Standard_Integer theNbIsoV);
70 Standard_EXPORT
void Init(
const GeomAbs_IsoType theIsoType,
71 const Standard_Real theParameter);
104 (
const Standard_Integer theHatchingIndex)
const;
116 Standard_EXPORT Standard_Boolean
GetDomain
117 (
const Standard_Integer theHatchingIndex,
118 const Standard_Integer theDomainIndex,
119 Standard_Real &theParam1,
120 Standard_Real &theParam2)
const;
131 (
const Standard_Integer theHatchingIndex,
132 const Standard_Integer theDomainIndex)
const;
139 Standard_EXPORT
const Geom2dHatch_Hatcher &
GetHatcher()
const
148 Standard_EXPORT
const Handle(TColStd_HArray1OfInteger) &GetUIndices()
const
157 Standard_EXPORT
const Handle(TColStd_HArray1OfInteger) &GetVIndices()
const
166 Standard_EXPORT
const Handle(TColStd_HArray1OfReal) &GetUParams()
const
175 Standard_EXPORT
const Handle(TColStd_HArray1OfReal) &GetVParams()
const
184 Standard_EXPORT
const Handle(Geom2d_Curve) &GetHatching
185 (
const Standard_Integer theHatchingIndex)
const;
Definition: GEOMUtils_Hatcher.hxx:40
Standard_EXPORT const Handle(TColStd_HArray1OfReal) &GetVParams() const
This method returns the array of parameters of V-isoline hatchings.
Definition: GEOMUtils_Hatcher.hxx:175
Handle(TColStd_HArray1OfInteger) myVInd
Standard_Boolean myIsDone
Definition: GEOMUtils_Hatcher.hxx:198
Handle(TColStd_HArray1OfReal) myUPrm
Standard_EXPORT const Geom2dHatch_Hatcher & GetHatcher() const
This method returns the reference to OCCT hatcher.
Definition: GEOMUtils_Hatcher.hxx:139
Handle(TColStd_HArray1OfReal) myVPrm
Standard_Real myVMax
Definition: GEOMUtils_Hatcher.hxx:202
Geom2dHatch_Hatcher myHatcher
Definition: GEOMUtils_Hatcher.hxx:196
Standard_EXPORT const Handle(Geom2d_Curve) &GetHatching(const Standard_Integer theHatchingIndex) const
This method returns a hatching curve by its index.
Standard_EXPORT Hatcher(const TopoDS_Face &theFace)
Constructor.
Definition: GEOMUtils_Hatcher.cxx:49
void Clear()
This method clears all hatchings data.
const TopoDS_Face & GetFace() const
This method returns the initial face.
Definition: GEOMUtils_Hatcher.hxx:92
Standard_Real myUMin
Definition: GEOMUtils_Hatcher.hxx:199
Standard_EXPORT const Handle(TColStd_HArray1OfInteger) &GetUIndices() const
This method returns the array of indices of U-isoline hatchings.
Definition: GEOMUtils_Hatcher.hxx:148
Standard_EXPORT void Perform()
Compute hatching domatins.
Definition: GEOMUtils_Hatcher.cxx:252
Standard_Real myUMax
Definition: GEOMUtils_Hatcher.hxx:200
Standard_EXPORT Standard_Integer GetNbDomains(const Standard_Integer theHatchingIndex) const
This method returns the number of domains for a particular hatching.
Definition: GEOMUtils_Hatcher.cxx:298
Standard_Boolean IsDone() const
This method returns true if at least one hatching's domains are computed successfully.
Definition: GEOMUtils_Hatcher.hxx:84
Standard_EXPORT Standard_Boolean IsDomainInfinite(const Standard_Integer theHatchingIndex, const Standard_Integer theDomainIndex) const
This method returns Standard_True if a domain has infinite first or last parameter.
Definition: GEOMUtils_Hatcher.cxx:352
Standard_Real myVMin
Definition: GEOMUtils_Hatcher.hxx:201
Standard_EXPORT const Handle(TColStd_HArray1OfReal) &GetUParams() const
This method returns the array of parameters of U-isoline hatchings.
Definition: GEOMUtils_Hatcher.hxx:166
Standard_EXPORT Standard_Boolean GetDomain(const Standard_Integer theHatchingIndex, const Standard_Integer theDomainIndex, Standard_Real &theParam1, Standard_Real &theParam2) const
This method returns the domputed domain range computed for a particular hatching.
Definition: GEOMUtils_Hatcher.cxx:314
TopoDS_Face myFace
Definition: GEOMUtils_Hatcher.hxx:197
Standard_EXPORT void Init(const Standard_Integer theNbIsos)
This method initializes the hatcher with hatchings.
Definition: GEOMUtils_Hatcher.cxx:143
Standard_EXPORT const Handle(TColStd_HArray1OfInteger) &GetVIndices() const
This method returns the array of indices of V-isoline hatchings.
Definition: GEOMUtils_Hatcher.hxx:157
Handle(TColStd_HArray1OfInteger) myUInd
Definition: GEOMUtils.hxx:56