mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-15 11:44:07 +03:00
141 lines
4.4 KiB
Plaintext
Executable File
141 lines
4.4 KiB
Plaintext
Executable File
-- Created on: 1995-10-26
|
|
-- Created by: Yves FRICAUD
|
|
-- Copyright (c) 1995-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 Image from BRepAlgo
|
|
|
|
---Purpose: Stores link between a shape <S> and a shape <NewS>
|
|
-- obtained from <S>. <NewS> is an image of <S>.
|
|
|
|
uses
|
|
Shape from TopoDS,
|
|
ShapeEnum from TopAbs,
|
|
ListOfShape from TopTools,
|
|
DataMapOfShapeListOfShape from TopTools,
|
|
DataMapOfShapeShape from TopTools
|
|
|
|
raises
|
|
ConstructionError from Standard
|
|
|
|
is
|
|
Create;
|
|
|
|
SetRoot (me : in out; S : Shape from TopoDS)
|
|
is static;
|
|
|
|
|
|
Bind (me : in out; OldS : Shape from TopoDS;
|
|
NewS : Shape from TopoDS)
|
|
---Purpose: Links <NewS> as image of <OldS>.
|
|
raises
|
|
ConstructionError -- if Olds has image.
|
|
is static;
|
|
|
|
|
|
Bind (me : in out; OldS : Shape from TopoDS;
|
|
NewS : ListOfShape from TopTools)
|
|
---Purpose: Links <NewS> as image of <OldS>.
|
|
raises
|
|
ConstructionError -- if Olds has image.
|
|
is static;
|
|
|
|
|
|
Add (me : in out; OldS : Shape from TopoDS;
|
|
NewS : Shape from TopoDS)
|
|
---Purpose: Add <NewS> to the image of <OldS>.
|
|
raises
|
|
ConstructionError -- if Olds has not image.
|
|
is static;
|
|
|
|
|
|
Add (me : in out; OldS : Shape from TopoDS;
|
|
NewS : ListOfShape from TopTools)
|
|
---Purpose: Add <NewS> to the image of <OldS>.
|
|
raises
|
|
ConstructionError -- if Olds has not image.
|
|
is static;
|
|
|
|
Clear(me : in out)
|
|
is static;
|
|
|
|
Remove(me : in out; S : Shape from TopoDS)
|
|
---Purpose: Remove <S> to set of images.
|
|
raises
|
|
ConstructionError -- if S is not an image.
|
|
is static;
|
|
|
|
Roots (me)
|
|
---C++: return const &
|
|
returns ListOfShape from TopTools
|
|
is static;
|
|
|
|
IsImage (me; S : Shape from TopoDS)
|
|
returns Boolean from Standard
|
|
is static;
|
|
|
|
ImageFrom (me; S : Shape from TopoDS)
|
|
---Purpose: Returns the generator of <S>
|
|
---C++: return const &
|
|
returns Shape from TopoDS
|
|
is static;
|
|
|
|
Root (me; S : Shape from TopoDS)
|
|
---Purpose: Returns the upper generator of <S>
|
|
---C++: return const &
|
|
returns Shape from TopoDS
|
|
is static;
|
|
|
|
HasImage (me; S : Shape from TopoDS)
|
|
returns Boolean from Standard
|
|
is static;
|
|
|
|
Image (me; S : Shape from TopoDS)
|
|
---Purpose: Returns the Image of <S>.
|
|
-- Returns <S> in the list if HasImage(S) is false.
|
|
---C++: return const &
|
|
returns ListOfShape from TopTools
|
|
is static;
|
|
|
|
LastImage (me; S : Shape from TopoDS;
|
|
L : in out ListOfShape from TopTools)
|
|
---Purpose: Stores in <L> the images of images of...images of <S>.
|
|
-- <L> contains only <S> if HasImage(S) is false.
|
|
is static;
|
|
|
|
Compact (me : in out)
|
|
---Purpose: Keeps only the link between roots and lastimage.
|
|
is static;
|
|
|
|
Filter (me : in out;
|
|
S : Shape from TopoDS;
|
|
ShapeType : ShapeEnum from TopAbs);
|
|
---Purpose: Deletes in the images the shape of type <ShapeType>
|
|
-- which are not in <S>.
|
|
-- Warning: Compact() must be call before.
|
|
|
|
fields
|
|
|
|
roots : ListOfShape from TopTools;
|
|
up : DataMapOfShapeShape from TopTools;
|
|
down : DataMapOfShapeListOfShape from TopTools;
|
|
|
|
end Image;
|