0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / src / StepAP214 / StepAP214_DateAndTimeItem.cxx
1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14
15 #include <Interface_Macros.hxx>
16 #include <Standard_Transient.hxx>
17 #include <StepAP214_AppliedOrganizationAssignment.hxx>
18 #include <StepAP214_AppliedPersonAndOrganizationAssignment.hxx>
19 #include <StepAP214_DateAndTimeItem.hxx>
20 #include <StepBasic_ApprovalPersonOrganization.hxx>
21 #include <StepBasic_DocumentFile.hxx>
22 #include <StepBasic_Effectivity.hxx>
23 #include <StepBasic_Product.hxx>
24 #include <StepBasic_ProductDefinition.hxx>
25 #include <StepBasic_ProductDefinitionFormation.hxx>
26 #include <StepBasic_ProductDefinitionRelationship.hxx>
27 #include <StepBasic_SecurityClassification.hxx>
28 #include <StepRepr_AssemblyComponentUsageSubstitute.hxx>
29 #include <StepRepr_MaterialDesignation.hxx>
30 #include <StepRepr_PropertyDefinition.hxx>
31 #include <StepShape_ShapeRepresentation.hxx>
32 #include <StepVisual_MechanicalDesignGeometricPresentationRepresentation.hxx>
33 #include <StepVisual_PresentationArea.hxx>
34
35 StepAP214_DateAndTimeItem::StepAP214_DateAndTimeItem () {  }
36
37 Standard_Integer StepAP214_DateAndTimeItem::CaseNum(const Handle(Standard_Transient)& ent) const
38 {
39   if (ent.IsNull()) return 0;
40   if (ent->IsKind(STANDARD_TYPE(StepBasic_ApprovalPersonOrganization))) return 1;
41   if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedPersonAndOrganizationAssignment))) return 2;
42   if (ent->IsKind(STANDARD_TYPE(StepAP214_AppliedOrganizationAssignment))) return 3;
43   if (ent->IsKind(STANDARD_TYPE(StepRepr_AssemblyComponentUsageSubstitute))) return 4;
44   if (ent->IsKind(STANDARD_TYPE(StepBasic_DocumentFile))) return 5;
45   if (ent->IsKind(STANDARD_TYPE(StepBasic_Effectivity))) return 6;
46   if (ent->IsKind(STANDARD_TYPE(StepRepr_MaterialDesignation))) return 7;
47   if (ent->IsKind(STANDARD_TYPE(StepVisual_MechanicalDesignGeometricPresentationRepresentation))) return 8;
48   if (ent->IsKind(STANDARD_TYPE(StepVisual_PresentationArea))) return 9;
49   if (ent->IsKind(STANDARD_TYPE(StepBasic_Product))) return 10;
50   if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 11;
51   if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionFormation))) return 12;
52   if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinitionRelationship))) return 13;
53   if (ent->IsKind(STANDARD_TYPE(StepRepr_PropertyDefinition))) return 14;
54   if (ent->IsKind(STANDARD_TYPE(StepShape_ShapeRepresentation))) return 15;
55   if (ent->IsKind(STANDARD_TYPE(StepBasic_SecurityClassification))) return 16;
56   
57   return 0;
58 }
59
60 Handle(StepBasic_ApprovalPersonOrganization) StepAP214_DateAndTimeItem::ApprovalPersonOrganization () const
61 {
62         return GetCasted(StepBasic_ApprovalPersonOrganization,Value());
63 }
64
65 Handle(StepAP214_AppliedPersonAndOrganizationAssignment) StepAP214_DateAndTimeItem::AppliedPersonAndOrganizationAssignment () const
66 {
67         return GetCasted(StepAP214_AppliedPersonAndOrganizationAssignment,Value());
68 }
69
70 Handle(StepAP214_AppliedOrganizationAssignment) StepAP214_DateAndTimeItem::AppliedOrganizationAssignment() const
71 {  return GetCasted(StepAP214_AppliedOrganizationAssignment,Value());  }