1 -- File: QANewBRepNaming_Gluing.cdl
2 -- Created: Mon Nov 26 11:45:34 2001
3 -- Author: Sergey ZARITCHNY <szy@nnov.matra-dtv.fr>
4 -- Copyright: SAMTECH S.A. 2001
7 -- sccsid[] = "@(#) 3.0-00-1, 12/07/01@(#)";
9 -- Lastly modified by :
10 -- +---------------------------------------------------------------------------+
11 -- ! mpv ! Same history and divided shapes cases ! 6-09-2002! 3.0-00-3!
12 -- +---------------------------------------------------------------------------+
14 class Gluing from QANewBRepNaming inherits TopNaming from QANewBRepNaming
16 ---Purpose: Loads a result of Gluing operation in Data Framework
20 Glue from QANewModTopOpe,
22 ShapeEnum from TopAbs,
25 IndexedDataMapOfShapeListOfShape from TopTools,
26 DataMapOfShapeInteger from TopTools
29 raises NullObject from Standard
33 Create returns Gluing from QANewBRepNaming;
35 Create(theResultLabel : Label from TDF)
36 returns Gluing from QANewBRepNaming;
38 Init(me : in out; theResultLabel : Label from TDF);
41 Load (me : in out; theMkGluing : in out Glue from QANewModTopOpe);
42 ---Purpose: Loads a Gluing in a data framework
44 ---Category: Protected methods
45 -- ====================
47 ShapeType(me; theShape : Shape from TopoDS)
48 ---Purpose: If the shape is a compound the method
49 -- returns the underlying shape type.
50 returns ShapeEnum from TopAbs
53 GetShape(me; theShape : Shape from TopoDS)
54 ---Purpose: If the shape is a compound the method
55 -- returns the underlying shape.
56 returns Shape from TopoDS
59 LoadModifiedShapes(me; theMakeShape : in out Glue from QANewModTopOpe)
60 ---Purpose: A default implementation for naming of modified shapes of the operation
63 LoadDeletedShapes(me; theMakeShape : in out Glue from QANewModTopOpe)
64 ---Purpose: A default implementation for naming of modified shapes of the operation
69 returns Label from TDF;
71 LoadContent(me; theMakeShape : in out Glue from QANewModTopOpe)
72 ---Purpose: Loads the content of the result.
75 LoadResult(me; theMakeShape : in out Glue from QANewModTopOpe)
76 ---Purpose: Loads the result.
79 IsResultChanged(me; theMakeShape : in out Glue from QANewModTopOpe)
80 ---Purpose: Returns true if the result is not the same as the object shape.
81 returns Boolean from Standard is private ;
83 SetContext(me :in out; theObject, theTool : Shape from TopoDS);
85 SetLog(me: in out; theLog : LabelMap from TDF);
87 LoadSectionEdges(me; theMakeShape : in out Glue from QANewModTopOpe)
88 ---Purpose: Loads the deletion of the degenerated edges.
91 AddToTheUnique(me: in out; theUnique, theIdentifier : Shape from TopoDS) is private;
93 RecomputeUnique(me : in out; theMakeShape : in out Glue from QANewModTopOpe)
94 ---Purpose: Reset myShared map - shapes, which are modified by both object and tool.
97 LoadSourceShapes(me; theSources : in out DataMapOfShapeInteger from TopTools)
100 LoadUniqueShapes(me: in out; theMakeShape : in out Glue from QANewModTopOpe;
101 theSources : DataMapOfShapeInteger from TopTools)
102 ---Purpose: A default implementation for naming of generated shapes of the operation
108 myUnique : IndexedDataMapOfShapeListOfShape from TopTools;
110 myContext : Shape from TopoDS;
111 myLog : LabelMap from TDF;
118 -- Copyright SAMTECH ..........................................Version 3.0-00
119 -- Lastly modified by : mpv Date : 6-09-2002
121 -- File history synopsis (creation,modification,correction)
122 -- +---------------------------------------------------------------------------+
123 -- ! Developer ! Comments ! Date ! Version !
124 -- +-----------!-----------------------------------------!----------!----------+
125 -- ! szy ! Creation !26-11-2001! 3.0-00-1!
126 -- ! mpv ! Specific gluing operation naming ! 1-02-2002! 3.0-00-2!
127 -- ! mpv ! Same history and divided shapes cases ! 6-09-2002! 3.0-00-3!
128 -- +---------------------------------------------------------------------------+