b311480e |
1 | // Created on: 2000-05-11 |
2 | // Created by: data exchange team |
973c2be1 |
3 | // Copyright (c) 2000-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
b311480e |
15 | |
7fd59977 |
16 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.1 |
7fd59977 |
17 | |
42cf5bc1 |
18 | #include <Standard_Transient.hxx> |
ec357c5c |
19 | #include <StepBasic_CharacterizedObject.hxx> |
42cf5bc1 |
20 | #include <StepBasic_DocumentFile.hxx> |
ec357c5c |
21 | #include <StepBasic_ProductDefinition.hxx> |
22 | #include <StepBasic_ProductDefinitionRelationship.hxx> |
42cf5bc1 |
23 | #include <StepRepr_CharacterizedDefinition.hxx> |
ec357c5c |
24 | #include <StepRepr_ProductDefinitionShape.hxx> |
25 | #include <StepRepr_ShapeAspect.hxx> |
26 | #include <StepRepr_ShapeAspectRelationship.hxx> |
42cf5bc1 |
27 | |
7fd59977 |
28 | //======================================================================= |
29 | //function : StepRepr_CharacterizedDefinition |
30 | //purpose : |
31 | //======================================================================= |
7fd59977 |
32 | StepRepr_CharacterizedDefinition::StepRepr_CharacterizedDefinition () |
33 | { |
34 | } |
35 | |
36 | //======================================================================= |
37 | //function : CaseNum |
38 | //purpose : |
39 | //======================================================================= |
40 | |
41 | Standard_Integer StepRepr_CharacterizedDefinition::CaseNum (const Handle(Standard_Transient)& ent) const |
42 | { |
43 | if (ent.IsNull()) return 0; |
44 | if (ent->IsKind(STANDARD_TYPE(StepBasic_CharacterizedObject))) return 1; |
45 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 2; |
46 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionRelationship))) return 3; |
47 | if (ent->IsKind(STANDARD_TYPE(StepRepr_ProductDefinitionShape))) return 4; |
48 | if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 5; |
49 | if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspectRelationship))) return 6; |
50 | if (ent->IsKind(STANDARD_TYPE(StepBasic_DocumentFile))) return 7; |
51 | return 0; |
52 | } |
53 | |
54 | //======================================================================= |
55 | //function : CharacterizedObject |
56 | //purpose : |
57 | //======================================================================= |
58 | |
59 | Handle(StepBasic_CharacterizedObject) StepRepr_CharacterizedDefinition::CharacterizedObject () const |
60 | { |
61 | return Handle(StepBasic_CharacterizedObject)::DownCast(Value()); |
62 | } |
63 | |
64 | //======================================================================= |
65 | //function : ProductDefinition |
66 | //purpose : |
67 | //======================================================================= |
68 | |
69 | Handle(StepBasic_ProductDefinition) StepRepr_CharacterizedDefinition::ProductDefinition () const |
70 | { |
71 | return Handle(StepBasic_ProductDefinition)::DownCast(Value()); |
72 | } |
73 | |
74 | //======================================================================= |
75 | //function : ProductDefinitionRelationship |
76 | //purpose : |
77 | //======================================================================= |
78 | |
79 | Handle(StepBasic_ProductDefinitionRelationship) StepRepr_CharacterizedDefinition::ProductDefinitionRelationship () const |
80 | { |
81 | return Handle(StepBasic_ProductDefinitionRelationship)::DownCast(Value()); |
82 | } |
83 | |
84 | //======================================================================= |
85 | //function : ProductDefinitionShape |
86 | //purpose : |
87 | //======================================================================= |
88 | |
89 | Handle(StepRepr_ProductDefinitionShape) StepRepr_CharacterizedDefinition::ProductDefinitionShape () const |
90 | { |
91 | return Handle(StepRepr_ProductDefinitionShape)::DownCast(Value()); |
92 | } |
93 | |
94 | //======================================================================= |
95 | //function : ShapeAspect |
96 | //purpose : |
97 | //======================================================================= |
98 | |
99 | Handle(StepRepr_ShapeAspect) StepRepr_CharacterizedDefinition::ShapeAspect () const |
100 | { |
101 | return Handle(StepRepr_ShapeAspect)::DownCast(Value()); |
102 | } |
103 | |
104 | //======================================================================= |
105 | //function : ShapeAspectRelationship |
106 | //purpose : |
107 | //======================================================================= |
108 | |
109 | Handle(StepRepr_ShapeAspectRelationship) StepRepr_CharacterizedDefinition::ShapeAspectRelationship () const |
110 | { |
111 | return Handle(StepRepr_ShapeAspectRelationship)::DownCast(Value()); |
112 | } |
113 | |
114 | //======================================================================= |
115 | //function : DocumentFile |
116 | //purpose : |
117 | //======================================================================= |
118 | |
119 | Handle(StepBasic_DocumentFile) StepRepr_CharacterizedDefinition::DocumentFile () const |
120 | { |
121 | return Handle(StepBasic_DocumentFile)::DownCast(Value()); |
122 | } |