/
StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.cdl
126 lines (98 loc) · 5.73 KB
/
StepGeom_GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx.cdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
-- Created on: 1995-12-07
-- Created by: Frederic MAUPAS
-- 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 GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx from StepGeom
inherits RepresentationContext from StepRepr
-- This is a hand made implementation of EXPRESS ANDOR construct
-- It gather 3 Types :
-- GeometricRepresentationContext
-- GlobalUnitAssignedContext
-- GlobalUncertaintyAssignedContext
-- Common Supertype is RepresentationContext
uses
GeometricRepresentationContext from StepGeom,
GlobalUnitAssignedContext from StepRepr,
GlobalUncertaintyAssignedContext from StepRepr,
HArray1OfUncertaintyMeasureWithUnit from StepBasic,
UncertaintyMeasureWithUnit from StepBasic,
HArray1OfNamedUnit from StepBasic,
NamedUnit from StepBasic,
HAsciiString from TCollection,
Integer from Standard
is
Create returns mutable GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx;
Init (me : mutable;
aContextIdentifier : mutable HAsciiString from TCollection;
aContextType : mutable HAsciiString from TCollection) is redefined;
Init(me : mutable;
aContextIdentifier : mutable HAsciiString from TCollection;
aContextType : mutable HAsciiString from TCollection;
aGeometricRepresentationCtx : mutable GeometricRepresentationContext from StepGeom;
aGlobalUnitAssignedCtx : mutable GlobalUnitAssignedContext from StepRepr;
aGlobalUncertaintyAssignedCtx : mutable GlobalUncertaintyAssignedContext from StepRepr)
is virtual;
Init(me : mutable;
aContextIdentifier : mutable HAsciiString from TCollection;
aContextType : mutable HAsciiString from TCollection;
aCoordinateSpaceDimension : Integer from Standard;
aUnits : mutable HArray1OfNamedUnit from StepBasic;
anUncertainty : mutable HArray1OfUncertaintyMeasureWithUnit from StepBasic)
is virtual;
-- ====================================== --
-- Specific Methods for Field Data Access --
-- ====================================== --
SetGeometricRepresentationContext
(me : mutable;
aGeometricRepresentationContext : mutable GeometricRepresentationContext);
GeometricRepresentationContext (me)
returns mutable GeometricRepresentationContext;
SetGlobalUnitAssignedContext
(me : mutable;
aGlobalUnitAssignedContext : mutable GlobalUnitAssignedContext);
GlobalUnitAssignedContext (me)
returns mutable GlobalUnitAssignedContext;
SetGlobalUncertaintyAssignedContext
(me : mutable;
aGlobalUncertaintyAssignedCtx : GlobalUncertaintyAssignedContext from StepRepr);
GlobalUncertaintyAssignedContext(me)
returns GlobalUncertaintyAssignedContext from StepRepr;
-- ============================================================================= --
-- Specific Methods for ANDOR Field Data Access : GeometricRepresentationContext --
-- ============================================================================= --
SetCoordinateSpaceDimension(me : mutable; aCoordinateSpaceDimension : Integer);
CoordinateSpaceDimension (me) returns Integer;
-- ====================================================================== --
-- Specific Methods for ANDOR Field Data Access GlobalUnitAssignedContext --
-- ====================================================================== --
SetUnits(me : mutable; aUnits : mutable HArray1OfNamedUnit);
Units (me) returns mutable HArray1OfNamedUnit;
UnitsValue (me; num : Integer) returns mutable NamedUnit;
NbUnits (me) returns Integer;
-- ============================================================================= --
-- Specific Methods for ANDOR Field Data Access GlobalUncertaintyAssignedContext --
-- ============================================================================= --
SetUncertainty(me : mutable; aUncertainty : mutable HArray1OfUncertaintyMeasureWithUnit);
Uncertainty (me) returns mutable HArray1OfUncertaintyMeasureWithUnit;
UncertaintyValue (me; num : Integer) returns mutable UncertaintyMeasureWithUnit;
NbUncertainty (me) returns Integer;
fields
geometricRepresentationContext : GeometricRepresentationContext from StepGeom;
globalUnitAssignedContext : GlobalUnitAssignedContext from StepRepr;
globalUncertaintyAssignedContext : GlobalUncertaintyAssignedContext from StepRepr;
end GeomRepContextAndGlobUnitAssCtxAndGlobUncertaintyAssCtx;