0024275: Cppcheck warnings on uninitialized class members
[occt.git] / src / TNaming / TNaming_Naming.cdl
CommitLineData
b311480e 1-- Created on: 1997-09-08
2-- Created by: Yves FRICAUD
3-- Copyright (c) 1997-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23class Naming from TNaming inherits Attribute from TDF
24
25
26 ---Purpose: This attribute store the topological naming of any
27 -- selected shape, when this shape is not already
28 -- attached to a specific label. This class is also used
29 -- to solve it when the argumentsof the toipological
30 -- naming are modified.
31
32
33
34uses
35
36 Attribute from TDF,
37 Label from TDF,
38 LabelMap from TDF,
39 RelocationTable from TDF,
40 GUID from Standard,
41 NamedShape from TNaming,
42 Name from TNaming,
43 Shape from TopoDS,
44 AttributeIndexedMap from TDF,
45 IDFilter from TDF,
46 DataSet from TDF,
47 Scope from TNaming
48
49is
50
51
52
53 ---Purpose: following code from TDesignStd
54 -- ==============================
55
56
57 GetID (myclass)
58 ---C++: return const &
59 returns GUID from Standard;
60
61 Insert (myclass; under : Label from TDF)
62 returns Naming from TNaming;
63
64 Name (myclass; where : Label from TDF;
65 Selection : Shape from TopoDS;
66 Context : Shape from TopoDS;
67 Geometry : Boolean from Standard = Standard_False;
68 KeepOrientation : Boolean from Standard = Standard_False;
69 BNproblem : Boolean from Standard = Standard_False)
70 returns NamedShape from TNaming;
71 ---Purpose: Creates a Namimg attribute at label <where> to
72 -- identify the shape <Selection>. Geometry is
73 -- Standard_True if we are only interested by the
74 -- underlying geometry (e.g. setting a
75 -- constraint). <Context> is used to find neighbours of
76 -- <S> when required by the naming.
77 -- If KeepOrientation is True the Selection orientation is taken
78 -- into account. BNproblem == True points out that Context sub-shapes
79 -- in DF have orientation differences with Context shape itself.
80
81
82 ---Purpose: instance method
83 -- ===============
84
85
86 Create
87 returns mutable Naming from TNaming;
88
89 IsDefined (me) returns Boolean from Standard;
90
91 GetName(me)
92 returns Name from TNaming;
93 ---C++: return const &
94
95 ChangeName(me : mutable)
96 returns Name from TNaming;
97 ---C++: return &
98
99 Regenerate (me:mutable; scope : in out LabelMap from TDF)
100 ---Purpose: regenerate only the Name associated to me
101 returns Boolean;
102
103 Solve (me : mutable; scope : in out LabelMap from TDF)
104 ---Purpose: Regenerate recursively the whole name with scope. If
105 -- scope is empty it means that all the labels of the
106 -- framework are valid.
107 returns Boolean from Standard;
108
109 ID(me)
110 ---C++: return const &
111 returns GUID from Standard
112 is redefined;
113
114 ---Purpose: Deferred methods from TDF_Attribute
115 -- ===================================
116
117 NewEmpty (me)
118 returns mutable Attribute from TDF;
119
120 Restore (me: mutable; With : Attribute from TDF);
121
122 Paste (me; Into : mutable Attribute from TDF;
123 RT : mutable RelocationTable from TDF);
124
125 References (me; aDataSet : DataSet from TDF)
126 is redefined virtual;
127
128 Dump(me; anOS : in out OStream from Standard)
129 returns OStream from Standard
130 is redefined;
131 ---C++: return &
132
133 ExtendedDump(me;
134 anOS : in out OStream from Standard;
135 aFilter : IDFilter from TDF;
136 aMap : in out AttributeIndexedMap from TDF)
137 is redefined;
138
139
140fields
141
142 myName : Name from TNaming;
143
144end Naming;
145