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 | |
18 | #include <StepRepr_CharacterizedDefinition.ixx> |
19 | //======================================================================= |
20 | //function : StepRepr_CharacterizedDefinition |
21 | //purpose : |
22 | //======================================================================= |
23 | |
24 | StepRepr_CharacterizedDefinition::StepRepr_CharacterizedDefinition () |
25 | { |
26 | } |
27 | |
28 | //======================================================================= |
29 | //function : CaseNum |
30 | //purpose : |
31 | //======================================================================= |
32 | |
33 | Standard_Integer StepRepr_CharacterizedDefinition::CaseNum (const Handle(Standard_Transient)& ent) const |
34 | { |
35 | if (ent.IsNull()) return 0; |
36 | if (ent->IsKind(STANDARD_TYPE(StepBasic_CharacterizedObject))) return 1; |
37 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 2; |
38 | if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionRelationship))) return 3; |
39 | if (ent->IsKind(STANDARD_TYPE(StepRepr_ProductDefinitionShape))) return 4; |
40 | if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 5; |
41 | if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspectRelationship))) return 6; |
42 | if (ent->IsKind(STANDARD_TYPE(StepBasic_DocumentFile))) return 7; |
43 | return 0; |
44 | } |
45 | |
46 | //======================================================================= |
47 | //function : CharacterizedObject |
48 | //purpose : |
49 | //======================================================================= |
50 | |
51 | Handle(StepBasic_CharacterizedObject) StepRepr_CharacterizedDefinition::CharacterizedObject () const |
52 | { |
53 | return Handle(StepBasic_CharacterizedObject)::DownCast(Value()); |
54 | } |
55 | |
56 | //======================================================================= |
57 | //function : ProductDefinition |
58 | //purpose : |
59 | //======================================================================= |
60 | |
61 | Handle(StepBasic_ProductDefinition) StepRepr_CharacterizedDefinition::ProductDefinition () const |
62 | { |
63 | return Handle(StepBasic_ProductDefinition)::DownCast(Value()); |
64 | } |
65 | |
66 | //======================================================================= |
67 | //function : ProductDefinitionRelationship |
68 | //purpose : |
69 | //======================================================================= |
70 | |
71 | Handle(StepBasic_ProductDefinitionRelationship) StepRepr_CharacterizedDefinition::ProductDefinitionRelationship () const |
72 | { |
73 | return Handle(StepBasic_ProductDefinitionRelationship)::DownCast(Value()); |
74 | } |
75 | |
76 | //======================================================================= |
77 | //function : ProductDefinitionShape |
78 | //purpose : |
79 | //======================================================================= |
80 | |
81 | Handle(StepRepr_ProductDefinitionShape) StepRepr_CharacterizedDefinition::ProductDefinitionShape () const |
82 | { |
83 | return Handle(StepRepr_ProductDefinitionShape)::DownCast(Value()); |
84 | } |
85 | |
86 | //======================================================================= |
87 | //function : ShapeAspect |
88 | //purpose : |
89 | //======================================================================= |
90 | |
91 | Handle(StepRepr_ShapeAspect) StepRepr_CharacterizedDefinition::ShapeAspect () const |
92 | { |
93 | return Handle(StepRepr_ShapeAspect)::DownCast(Value()); |
94 | } |
95 | |
96 | //======================================================================= |
97 | //function : ShapeAspectRelationship |
98 | //purpose : |
99 | //======================================================================= |
100 | |
101 | Handle(StepRepr_ShapeAspectRelationship) StepRepr_CharacterizedDefinition::ShapeAspectRelationship () const |
102 | { |
103 | return Handle(StepRepr_ShapeAspectRelationship)::DownCast(Value()); |
104 | } |
105 | |
106 | //======================================================================= |
107 | //function : DocumentFile |
108 | //purpose : |
109 | //======================================================================= |
110 | |
111 | Handle(StepBasic_DocumentFile) StepRepr_CharacterizedDefinition::DocumentFile () const |
112 | { |
113 | return Handle(StepBasic_DocumentFile)::DownCast(Value()); |
114 | } |