mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-16 21:30:14 +08:00
185 lines
4.8 KiB
Plaintext
Executable File
185 lines
4.8 KiB
Plaintext
Executable File
-- Created on: 1993-10-29
|
|
-- Created by: Jean Marc LACHAUME
|
|
-- Copyright (c) 1993-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
--
|
|
-- The content of this file is subject to the Open CASCADE Technology Public
|
|
-- License Version 6.5 (the "License"). You may not use the content of this file
|
|
-- except in compliance with the License. Please obtain a copy of the License
|
|
-- at http://www.opencascade.org and read it completely before using this file.
|
|
--
|
|
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
--
|
|
-- The Original Code and all software distributed under the License is
|
|
-- distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
-- Initial Developer hereby disclaims all such warranties, including without
|
|
-- limitation, any warranties of merchantability, fitness for a particular
|
|
-- purpose or non-infringement. Please see the License for the specific terms
|
|
-- and conditions governing the rights and limitations under the License.
|
|
|
|
|
|
class PointOnHatching from HatchGen
|
|
|
|
|
|
inherits IntersectionPoint from HatchGen
|
|
|
|
|
|
uses
|
|
PointOnElement from HatchGen ,
|
|
PointsOnElement from HatchGen ,
|
|
IntersectionPoint from IntRes2d
|
|
|
|
raises
|
|
OutOfRange from Standard
|
|
|
|
|
|
is
|
|
|
|
|
|
Create
|
|
|
|
---Purpose: Creates an empty point.
|
|
|
|
---Category: PointOnHatching
|
|
|
|
returns PointOnHatching from HatchGen ;
|
|
|
|
|
|
|
|
Create (Point : PointOnHatching from HatchGen)
|
|
|
|
---Purpose: Creates a point from an other.
|
|
|
|
---Category: PointOnHatching
|
|
|
|
returns PointOnHatching from HatchGen ;
|
|
|
|
|
|
Create (Point : IntersectionPoint from IntRes2d)
|
|
|
|
---Purpose: Creates a point from an intersection point.
|
|
|
|
---Category: PointOnHatching
|
|
|
|
returns PointOnHatching from HatchGen ;
|
|
|
|
|
|
Delete (me : out) is virtual;
|
|
---C++: alias "Standard_EXPORT virtual ~HatchGen_PointOnHatching(){Delete();}"
|
|
---Purpose: linux porting
|
|
|
|
AddPoint (me : in out ; Point : PointOnElement from HatchGen ;
|
|
Confusion : Real from Standard)
|
|
|
|
---Purpose: Adds a point on element to the point.
|
|
|
|
---Category: PointOnHatching
|
|
|
|
is static ;
|
|
|
|
|
|
NbPoints (me)
|
|
|
|
---Purpose: Returns the number of elements intersecting the
|
|
-- hatching at this point.
|
|
|
|
---Category: PointOnHatching
|
|
|
|
returns Integer from Standard
|
|
is static ;
|
|
|
|
|
|
Point (me; Index : Integer from Standard)
|
|
|
|
---Purpose: Returns the Index-th point on element of the point.
|
|
-- The exception OutOfRange is raised if
|
|
-- Index > NbPoints.
|
|
|
|
---Category: PointOnHatching
|
|
|
|
---C++: return const &
|
|
|
|
returns PointOnElement from HatchGen
|
|
raises OutOfRange from Standard
|
|
is static ;
|
|
|
|
|
|
RemPoint (me : in out ; Index : Integer from Standard)
|
|
|
|
---Purpose: Removes the Index-th point on element of the point.
|
|
-- The exception OutOfRange is raised if
|
|
-- Index > NbPoints.
|
|
|
|
---Category: PointOnHatching
|
|
|
|
raises OutOfRange from Standard
|
|
is static ;
|
|
|
|
|
|
ClrPoints (me : in out)
|
|
|
|
---Purpose: Removes all the points on element of the point.
|
|
|
|
---Category: PointOnHatching
|
|
|
|
is static ;
|
|
|
|
|
|
IsLower (me; Point : PointOnHatching from HatchGen ;
|
|
Confusion : Real from Standard)
|
|
|
|
---Purpose: Tests if the point is lower than an other.
|
|
-- A point on hatching P1 is said to be lower than an
|
|
-- other P2 if :
|
|
-- P2.myParam - P1.myParam > Confusion
|
|
|
|
---Category: PointOnHatching
|
|
|
|
returns Boolean from Standard
|
|
is static ;
|
|
|
|
|
|
IsEqual (me; Point : PointOnHatching from HatchGen ;
|
|
Confusion : Real from Standard)
|
|
|
|
|
|
---Purpose: Tests if the point is equal to an other.
|
|
-- A point on hatching P1 is said to be equal to an
|
|
-- other P2 if :
|
|
-- | P2.myParam - P1.myParam | <= Confusion
|
|
|
|
---Category: PointOnHatching
|
|
|
|
returns Boolean from Standard
|
|
is static ;
|
|
|
|
|
|
IsGreater (me; Point : PointOnHatching from HatchGen ;
|
|
Confusion : Real from Standard)
|
|
|
|
|
|
---Purpose: Tests if the point is greater than an other.
|
|
-- A point on hatching P1 is said to be greater than an
|
|
-- other P2 if :
|
|
-- P1.myParam - P2.myParam > Confusion
|
|
|
|
---Category: PointOnHatching
|
|
|
|
returns Boolean from Standard
|
|
is static ;
|
|
|
|
|
|
Dump (me; Index : Integer from Standard = 0)
|
|
|
|
---Purpose: Dump of the point.
|
|
|
|
is static ;
|
|
|
|
|
|
fields
|
|
|
|
myPoints : PointsOnElement from HatchGen is protected ;
|
|
|
|
end PointOnHatching from HatchGen ;
|