0025418: Debug output to be limited to OCC development environment
[occt.git] / src / StepAP209 / StepAP209_Construct.cdl
1 -- Created on: 2002-12-06
2 -- Created by: data exchange team
3 -- Copyright (c) 2002-2014 OPEN CASCADE SAS
4 --
5 -- This file is part of Open CASCADE Technology software library.
6 --
7 -- This library is free software; you can redistribute it and/or modify it under
8 -- the terms of the GNU Lesser General Public License version 2.1 as published
9 -- by the Free Software Foundation, with special exception defined in the file
10 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 -- distribution for complete text of the license and disclaimer of any warranty.
12 --
13 -- Alternatively, this file may be used under the terms of Open CASCADE
14 -- commercial license or contractual agreement.
15
16 class Construct from StepAP209 inherits Tool from STEPConstruct
17
18     ---Purpose: Basic tool for working with AP209 model
19
20 uses
21     WorkSession from XSControl,
22     Product from StepBasic,
23     ProductDefinition from StepBasic,
24     ProductDefinitionFormation from StepBasic,
25     ProductDefinitionShape from StepRepr,
26     HSequenceOfElementRepresentation from StepFEA,
27     HSequenceOfElementMaterial from StepElement,
28     HSequenceOfCurveElementSectionDefinition from StepElement,
29     HSequenceOfElementGeometricRelationship from StepFEA,
30     FeaModel from StepFEA,
31     ShapeRepresentation from StepShape,
32     Curve3dElementRepresentation from StepFEA,
33     ElementRepresentation from StepFEA,
34     FeaAxis2Placement3d from StepFEA,
35     StepModel from StepData
36
37
38 is
39
40     Create returns Construct;
41         ---Purpose: Creates an empty tool
42
43     Create (WS: WorkSession from XSControl) returns Construct;
44         ---Purpose: Creates a tool and initializes it
45         
46     Init (me: in out; WS: WorkSession from XSControl) returns Boolean;
47         ---Purpose: Initializes tool; returns True if succeeded
48
49     IsDesing(me; PD: ProductDefinitionFormation from StepBasic) returns Boolean;
50     IsAnalys(me; PD: ProductDefinitionFormation from StepBasic) returns Boolean;
51
52
53     -- methods for getting fea_model
54     FeaModel(me; Prod: Product from StepBasic) returns FeaModel from StepFEA;
55
56     FeaModel(me; PDF: ProductDefinitionFormation from StepBasic) returns FeaModel from StepFEA;
57
58
59     -- methods for gettig fea_axis2_placement_3d
60     GetFeaAxis2Placement3d(me; theFeaModel: FeaModel from StepFEA)
61     returns FeaAxis2Placement3d from StepFEA;
62
63
64     -- methods for getting idealized_analysis_shape
65     IdealShape(me; Prod: Product from StepBasic) returns ShapeRepresentation from StepShape;
66
67     IdealShape(me; PDF: ProductDefinitionFormation from StepBasic) returns ShapeRepresentation from StepShape;
68
69
70     -- methods for getting nominal_design_shape
71     NominShape(me; Prod: Product from StepBasic) returns ShapeRepresentation from StepShape;
72
73     NominShape(me; PDF: ProductDefinitionFormation from StepBasic) returns ShapeRepresentation from StepShape;
74
75
76     -- method for getting list of element_material
77     GetElementMaterial(me) returns HSequenceOfElementMaterial from StepElement;
78     
79     -- method for getting list of element_geometric_relationship
80     GetElemGeomRelat(me) returns HSequenceOfElementGeometricRelationship from StepFEA;
81     
82
83     -- methods for getting list of element_representations
84     GetElements1D(me; theFeaModel: FeaModel from StepFEA)
85     returns HSequenceOfElementRepresentation from StepFEA;
86     
87     GetElements2D(me; theFEAModel: FeaModel from StepFEA)
88     returns HSequenceOfElementRepresentation from StepFEA;
89     
90     GetElements3D(me; theFEAModel: FeaModel from StepFEA)
91     returns HSequenceOfElementRepresentation from StepFEA;
92
93     GetFeaElements(me; theFeaModel: FeaModel from StepFEA;
94                        theType: Type from Standard)
95     returns HSequenceOfElementRepresentation from StepFEA is protected;
96
97
98     GetCurElemSection(me; ElemRepr: Curve3dElementRepresentation from StepFEA)
99     returns HSequenceOfCurveElementSectionDefinition from StepElement;
100     --- Purpose: Getting list of curve_element_section_definitions
101     ---          for given element_representation 
102
103     GetShReprForElem(me; ElemRepr: ElementRepresentation from StepFEA)
104     returns ShapeRepresentation from StepShape;
105         
106     CreateAnalysStructure(me; Prod: Product from StepBasic) returns Boolean from Standard;
107     --- Purpose: Create empty structure for idealized_analysis_shape
108
109     CreateFeaStructure(me; Prod: Product from StepBasic) returns Boolean from Standard;
110     --- Purpose: Create fea structure 
111
112     ReplaceCcDesingToApplied(me) returns Boolean from Standard;
113     --- Purpose: Put into model entities Applied... for AP209 instead of
114     --           entities CcDesing... from AP203.
115
116     CreateAddingEntities(me; AnaPD: ProductDefinition from StepBasic) returns Boolean from Standard;
117     --- Purpose: Create approval.. , date.. , time.. , person.. and
118     --           organization.. entities for analysis structure
119
120     CreateAP203Structure(me) returns StepModel from StepData;
121     --- Purpose: Create AP203 structure from existing AP209 structure
122
123     CreateAdding203Entities(me; PD: ProductDefinition from StepBasic;
124                                 aModel: in out StepModel from StepData)
125     returns Boolean from Standard;
126     --- Purpose: Create approval.. , date.. , time.. , person.. and
127     --           organization.. entities for 203 structure
128
129     -- auxiliary methods
130     FeaModel(me; PDS: ProductDefinitionShape from StepRepr) returns FeaModel from StepFEA;
131     FeaModel(me; PD: ProductDefinition from StepBasic) returns FeaModel from StepFEA;
132     IdealShape(me; PD: ProductDefinition from StepBasic) returns ShapeRepresentation from StepShape;
133     IdealShape(me; PDS: ProductDefinitionShape from StepRepr) returns ShapeRepresentation from StepShape;
134    
135
136 --fields
137
138 end Construct;