0023047: Behaviour of XDE sample is non-stable
[occt.git] / src / XCAFDoc / XCAFDoc_DimTol.cdl
CommitLineData
b311480e 1-- Created on: 2004-01-09
2-- Created by: Sergey KUUL
3-- Copyright (c) 2004-2012 OPEN CASCADE SAS
4--
5-- The content of this file is subject to the Open CASCADE Technology Public
6-- License Version 6.5 (the "License"). You may not use the content of this file
7-- except in compliance with the License. Please obtain a copy of the License
8-- at http://www.opencascade.org and read it completely before using this file.
9--
10-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12--
13-- The Original Code and all software distributed under the License is
14-- distributed on an "AS IS" basis, without warranty of any kind, and the
15-- Initial Developer hereby disclaims all such warranties, including without
16-- limitation, any warranties of merchantability, fitness for a particular
17-- purpose or non-infringement. Please see the License for the specific terms
18-- and conditions governing the rights and limitations under the License.
19
7fd59977 20
21class DimTol from XCAFDoc inherits Attribute from TDF
22
23 ---Purpose:
24
25uses
26 Label from TDF,
27 RelocationTable from TDF,
28 HArray1OfReal from TColStd,
29 HAsciiString from TCollection
30
31is
32 Create returns DimTol from XCAFDoc;
33
34 ---Category: class methods
35 -- =============
36
37 GetID (myclass)
38 ---C++: return const &
39 returns GUID from Standard;
40
41 Set (myclass; label : Label from TDF; kind : Integer from Standard;
42 aVal : HArray1OfReal from TColStd;
43 aName : HAsciiString from TCollection;
44 aDescription : HAsciiString from TCollection)
45 returns DimTol from XCAFDoc;
46
47 Set (me : mutable; kind : Integer from Standard;
48 aVal : HArray1OfReal from TColStd;
49 aName : HAsciiString from TCollection;
50 aDescription : HAsciiString from TCollection);
51
52 GetKind (me) returns Integer from Standard;
53
54 GetVal (me) returns HArray1OfReal from TColStd;
55
56 GetName (me) returns HAsciiString from TCollection;
57
58 GetDescription (me) returns HAsciiString from TCollection;
59
60 ID (me)
61 ---C++: return const &
62 returns GUID from Standard;
63
64 Restore (me: mutable; With : Attribute from TDF);
65
66 NewEmpty (me)
67 returns mutable Attribute from TDF;
68
69 Paste (me; Into : mutable Attribute from TDF;
70 RT : mutable RelocationTable from TDF);
71
72fields
73 myKind : Integer from Standard;
74 myVal : HArray1OfReal from TColStd;
75 myName : HAsciiString from TCollection;
76 myDescription : HAsciiString from TCollection;
77 -- Table of kinds:
78 -- dimensions:
79 -- 1 - diameter
80 --
81 -- tolerances with datum references:
82 -- 21 - GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol (ModGeoTol->MaximumMaterialCondition)
83 -- 22 - GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol (ModGeoTol->LeastMaterialCondition)
84 -- 23 - GeoTolAndGeoTolWthDatRefAndModGeoTolAndPosTol (ModGeoTol->RegardlessOfFeatureSize)
85 -- 24 - AngularityTolerance
86 -- 25 - CircularRunoutTolerance
87 -- 26 - CoaxialityTolerance
88 -- 27 - ConcentricityTolerance
89 -- 28 - ParallelismTolerance
90 -- 29 - PerpendicularityTolerance
91 -- 30 - SymmetryTolerance
92 -- 31 - TotalRunoutTolerance
93 -- tolerances without datum references:
94 -- 35 - ModifiedGeometricTolerance (MaximumMaterialCondition)
95 -- 36 - ModifiedGeometricTolerance (LeastMaterialCondition)
96 -- 37 - ModifiedGeometricTolerance (RegardlessOfFeatureSize)
97 -- 38 - CylindricityTolerance
98 -- 39 - FlatnessTolerance
99 -- 40 - LineProfileTolerance
100 -- 41 - PositionTolerance
101 -- 42 - RoundnessTolerance
102 -- 43 - StraightnessTolerance
103 -- 44 - SurfaceProfileTolerance
104
105end DimTol;