0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / src / StepAP203 / StepAP203_PersonOrganizationItem.cxx
1 // Created on: 1999-11-26
2 // Created by: Andrey BETENEV
3 // Copyright (c) 1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 // Generator:   ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
18
19 #include <Standard_Transient.hxx>
20 #include <StepAP203_Change.hxx>
21 #include <StepAP203_ChangeRequest.hxx>
22 #include <StepAP203_PersonOrganizationItem.hxx>
23 #include <StepAP203_StartRequest.hxx>
24 #include <StepAP203_StartWork.hxx>
25 #include <StepBasic_Contract.hxx>
26 #include <StepBasic_Product.hxx>
27 #include <StepBasic_ProductDefinition.hxx>
28 #include <StepBasic_ProductDefinitionFormation.hxx>
29 #include <StepBasic_SecurityClassification.hxx>
30 #include <StepRepr_ConfigurationItem.hxx>
31
32 //=======================================================================
33 //function : StepAP203_PersonOrganizationItem
34 //purpose  : 
35 //=======================================================================
36 StepAP203_PersonOrganizationItem::StepAP203_PersonOrganizationItem ()
37 {
38 }
39
40 //=======================================================================
41 //function : CaseNum
42 //purpose  : 
43 //=======================================================================
44
45 Standard_Integer StepAP203_PersonOrganizationItem::CaseNum (const Handle(Standard_Transient)& ent) const
46 {
47   if (ent.IsNull()) return 0;
48   if (ent->IsKind(STANDARD_TYPE(StepAP203_Change))) return 1;
49   if (ent->IsKind(STANDARD_TYPE(StepAP203_StartWork))) return 2;
50   if (ent->IsKind(STANDARD_TYPE(StepAP203_ChangeRequest))) return 3;
51   if (ent->IsKind(STANDARD_TYPE(StepAP203_StartRequest))) return 4;
52   if (ent->IsKind(STANDARD_TYPE(StepRepr_ConfigurationItem))) return 5;
53   if (ent->IsKind(STANDARD_TYPE(StepBasic_Product))) return 6;
54   if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionFormation))) return 7;
55   if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 8;
56   if (ent->IsKind(STANDARD_TYPE(StepBasic_Contract))) return 9;
57   if (ent->IsKind(STANDARD_TYPE(StepBasic_SecurityClassification))) return 10;
58   return 0;
59 }
60
61 //=======================================================================
62 //function : Change
63 //purpose  : 
64 //=======================================================================
65
66 Handle(StepAP203_Change) StepAP203_PersonOrganizationItem::Change () const
67 {
68   return Handle(StepAP203_Change)::DownCast(Value());
69 }
70
71 //=======================================================================
72 //function : StartWork
73 //purpose  : 
74 //=======================================================================
75
76 Handle(StepAP203_StartWork) StepAP203_PersonOrganizationItem::StartWork () const
77 {
78   return Handle(StepAP203_StartWork)::DownCast(Value());
79 }
80
81 //=======================================================================
82 //function : ChangeRequest
83 //purpose  : 
84 //=======================================================================
85
86 Handle(StepAP203_ChangeRequest) StepAP203_PersonOrganizationItem::ChangeRequest () const
87 {
88   return Handle(StepAP203_ChangeRequest)::DownCast(Value());
89 }
90
91 //=======================================================================
92 //function : StartRequest
93 //purpose  : 
94 //=======================================================================
95
96 Handle(StepAP203_StartRequest) StepAP203_PersonOrganizationItem::StartRequest () const
97 {
98   return Handle(StepAP203_StartRequest)::DownCast(Value());
99 }
100
101 //=======================================================================
102 //function : ConfigurationItem
103 //purpose  : 
104 //=======================================================================
105
106 Handle(StepRepr_ConfigurationItem) StepAP203_PersonOrganizationItem::ConfigurationItem () const
107 {
108   return Handle(StepRepr_ConfigurationItem)::DownCast(Value());
109 }
110
111 //=======================================================================
112 //function : Product
113 //purpose  : 
114 //=======================================================================
115
116 Handle(StepBasic_Product) StepAP203_PersonOrganizationItem::Product () const
117 {
118   return Handle(StepBasic_Product)::DownCast(Value());
119 }
120
121 //=======================================================================
122 //function : ProductDefinitionFormation
123 //purpose  : 
124 //=======================================================================
125
126 Handle(StepBasic_ProductDefinitionFormation) StepAP203_PersonOrganizationItem::ProductDefinitionFormation () const
127 {
128   return Handle(StepBasic_ProductDefinitionFormation)::DownCast(Value());
129 }
130
131 //=======================================================================
132 //function : ProductDefinition
133 //purpose  : 
134 //=======================================================================
135
136 Handle(StepBasic_ProductDefinition) StepAP203_PersonOrganizationItem::ProductDefinition () const
137 {
138   return Handle(StepBasic_ProductDefinition)::DownCast(Value());
139 }
140
141 //=======================================================================
142 //function : Contract
143 //purpose  : 
144 //=======================================================================
145
146 Handle(StepBasic_Contract) StepAP203_PersonOrganizationItem::Contract () const
147 {
148   return Handle(StepBasic_Contract)::DownCast(Value());
149 }
150
151 //=======================================================================
152 //function : SecurityClassification
153 //purpose  : 
154 //=======================================================================
155
156 Handle(StepBasic_SecurityClassification) StepAP203_PersonOrganizationItem::SecurityClassification () const
157 {
158   return Handle(StepBasic_SecurityClassification)::DownCast(Value());
159 }