mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-20 11:54:07 +03:00
1) Generic class "GccEnt_QualifiedCurv" from "GccEnt" package converted to the non-generic class and moved to the "Geom2dGcc" package. Name of this class was changed to "Geom2dGcc_QCurve". 2) Generic classes "HatchGen_ElementGen", "HatchGen_ElementsGen", "HatchGen_HatchingGen" and "HatchGen_Hatcher" from "HatchGen" package converted to the non-generic classes and moved to the "Geom2dHatch" package. Names of this classes were changed to "Geom2dHatch_Element", "Geom2dHatch_Elements", "Geom2dHatch_Hatching" and "Geom2dHatch_Hatcher". Also all instantiations of the "internal" classes of this classes were moved to the "Geom2dHatch.cdl". 3) Generic classes "Extrema_GExtCC", "Extrema_GExtCC2d", "Extrema_GLocateExtCC" and "Extrema_GLocateExtCC2d" from "Extrema" package converted to the non-generic classes. Names of this classes were changed to "Extrema_ExtCC", "Extrema_ExtCC2d", "Extrema_LocateExtCC" and "Extrema_LocateExtCC2d". Also all instantiations of the "internal" classes of this classes were moved to the "Extrema.cdl".
258 lines
5.9 KiB
Plaintext
258 lines
5.9 KiB
Plaintext
-- Created on: 1993-11-10
|
|
-- Created by: Jean Marc LACHAUME
|
|
-- Copyright (c) 1993-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
--
|
|
-- This file is part of Open CASCADE Technology software library.
|
|
--
|
|
-- This library is free software; you can redistribute it and/or modify it under
|
|
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
|
-- by the Free Software Foundation, with special exception defined in the file
|
|
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
-- distribution for complete text of the license and disclaimer of any warranty.
|
|
--
|
|
-- Alternatively, this file may be used under the terms of Open CASCADE
|
|
-- commercial license or contractual agreement.
|
|
|
|
class Hatching from Geom2dHatch
|
|
|
|
uses
|
|
ErrorStatus from HatchGen ,
|
|
PointOnHatching from HatchGen ,
|
|
PointsOnHatching from HatchGen ,
|
|
Domain from HatchGen ,
|
|
Domains from HatchGen ,
|
|
Pnt2d from gp,
|
|
Curve from Geom2dAdaptor
|
|
|
|
raises
|
|
OutOfRange from Standard
|
|
|
|
is
|
|
|
|
Create
|
|
|
|
returns Hatching from Geom2dHatch;
|
|
|
|
|
|
Create (Curve : Curve from Geom2dAdaptor)
|
|
|
|
---Purpose: Creates a hatching.
|
|
|
|
returns Hatching from Geom2dHatch ;
|
|
|
|
|
|
Curve (me)
|
|
|
|
---Purpose: Returns the curve associated to the hatching.
|
|
|
|
---C++: return const &
|
|
|
|
returns Curve from Geom2dAdaptor
|
|
is static ;
|
|
|
|
|
|
ChangeCurve (me : in out)
|
|
|
|
---Purpose: Returns the curve associated to the hatching.
|
|
|
|
---C++: return &
|
|
|
|
returns Curve from Geom2dAdaptor
|
|
is static ;
|
|
|
|
|
|
TrimDone (me : in out ; Flag : Boolean from Standard)
|
|
|
|
---Purpose: Sets the flag about the trimming computations to the
|
|
-- given value.
|
|
|
|
is static ;
|
|
|
|
|
|
TrimDone (me)
|
|
|
|
---Purpose: Returns the flag about the trimming computations.
|
|
|
|
returns Boolean from Standard
|
|
is static ;
|
|
|
|
|
|
TrimFailed (me : in out ; Flag : Boolean from Standard)
|
|
|
|
---Purpose: Sets the flag about the trimming failure to the
|
|
-- given value.
|
|
|
|
is static ;
|
|
|
|
|
|
TrimFailed (me)
|
|
|
|
---Purpose: Returns the flag about the trimming failure.
|
|
|
|
returns Boolean from Standard
|
|
is static ;
|
|
|
|
|
|
IsDone (me : in out ; Flag : Boolean from Standard)
|
|
|
|
---Purpose: Sets the flag about the domains computation to the
|
|
-- given value.
|
|
|
|
is static ;
|
|
|
|
|
|
IsDone (me)
|
|
|
|
---Purpose: Returns the flag about the domains computation.
|
|
|
|
returns Boolean from Standard
|
|
is static ;
|
|
|
|
|
|
Status (me : in out ; Status : ErrorStatus from HatchGen)
|
|
|
|
---Purpose: Sets the error status.
|
|
|
|
is static ;
|
|
|
|
|
|
Status (me)
|
|
|
|
---Purpose: Returns the error status.
|
|
|
|
returns ErrorStatus from HatchGen
|
|
is static ;
|
|
|
|
|
|
---Category: Points on hatching.
|
|
|
|
AddPoint (me : in out ; Point : PointOnHatching from HatchGen ;
|
|
Confusion : Real from Standard)
|
|
|
|
---Purpose: Adds an intersection point to the hatching.
|
|
|
|
is static ;
|
|
|
|
|
|
NbPoints (me)
|
|
|
|
---Purpose: Returns the number of intersection points
|
|
-- of the hatching.
|
|
|
|
returns Integer from Standard
|
|
is static ;
|
|
|
|
|
|
Point (me ; Index : Integer from Standard)
|
|
|
|
---Purpose: Returns the Index-th intersection point of the
|
|
-- hatching.
|
|
-- The exception OutOfRange is raised if
|
|
-- Index < 1 or Index > NbPoints.
|
|
|
|
---C++: return const &
|
|
|
|
returns PointOnHatching from HatchGen
|
|
raises OutOfRange from Standard
|
|
is static ;
|
|
|
|
|
|
ChangePoint (me : in out ; Index : Integer from Standard)
|
|
|
|
---Purpose: Returns the Index-th intersection point of the
|
|
-- hatching.
|
|
-- The exception OutOfRange is raised if
|
|
-- Index < 1 or Index > NbPoints.
|
|
|
|
---C++: return &
|
|
|
|
returns PointOnHatching from HatchGen
|
|
raises OutOfRange from Standard
|
|
is static ;
|
|
|
|
|
|
RemPoint (me : in out ; Index : Integer from Standard)
|
|
|
|
---Purpose: Removes the Index-th intersection point of the
|
|
-- hatching.
|
|
-- The exception OutOfRange is raised if
|
|
-- Index < 1 or Index > NbPoints.
|
|
|
|
raises OutOfRange from Standard
|
|
is static ;
|
|
|
|
|
|
ClrPoints (me : in out)
|
|
|
|
---Purpose: Removes all the intersection points of the hatching.
|
|
|
|
is static ;
|
|
|
|
|
|
---Category: Domains.
|
|
|
|
|
|
AddDomain (me : in out ; Domain : Domain from HatchGen)
|
|
|
|
---Purpose: Adds a domain to the hatching.
|
|
|
|
is static ;
|
|
|
|
|
|
NbDomains (me)
|
|
|
|
---Purpose: Returns the number of domains of the hatching.
|
|
|
|
returns Integer from Standard
|
|
is static ;
|
|
|
|
|
|
Domain (me ; Index : Integer from Standard)
|
|
|
|
---Purpose: Returns the Index-th domain of the hatching.
|
|
-- The exception OutOfRange is raised if
|
|
-- Index < 1 or Index > NbDomains.
|
|
|
|
---C++: return const &
|
|
|
|
returns Domain from HatchGen
|
|
raises OutOfRange from Standard
|
|
is static ;
|
|
|
|
|
|
RemDomain (me : in out ; Index : Integer from Standard)
|
|
|
|
---Purpose: Removes the Index-th domain of the hatching.
|
|
-- The exception OutOfRange is raised if
|
|
-- Index < 1 or Index > NbDomains.
|
|
|
|
raises OutOfRange from Standard
|
|
is static ;
|
|
|
|
|
|
ClrDomains (me : in out)
|
|
|
|
---Purpose: Removes all the domains of the hatching.
|
|
|
|
is static ;
|
|
|
|
|
|
ClassificationPoint (me)
|
|
---Purpose: Returns a point on the curve.
|
|
-- This point will be used for the classification.
|
|
returns Pnt2d from gp
|
|
is static;
|
|
|
|
fields
|
|
|
|
myCurve : Curve from Geom2dAdaptor ;
|
|
myTrimDone : Boolean from Standard ;
|
|
myTrimFailed : Boolean from Standard ;
|
|
myPoints : PointsOnHatching from HatchGen ;
|
|
myIsDone : Boolean from Standard ;
|
|
myStatus : ErrorStatus from HatchGen ;
|
|
myDomains : Domains from HatchGen ;
|
|
|
|
end Hatching from Geom2dHatch ;
|