b311480e |
1 | // Copyright (c) 1999-2012 OPEN CASCADE SAS |
2 | // |
3 | // The content of this file is subject to the Open CASCADE Technology Public |
4 | // License Version 6.5 (the "License"). You may not use the content of this file |
5 | // except in compliance with the License. Please obtain a copy of the License |
6 | // at http://www.opencascade.org and read it completely before using this file. |
7 | // |
8 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
9 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
10 | // |
11 | // The Original Code and all software distributed under the License is |
12 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
13 | // Initial Developer hereby disclaims all such warranties, including without |
14 | // limitation, any warranties of merchantability, fitness for a particular |
15 | // purpose or non-infringement. Please see the License for the specific terms |
16 | // and conditions governing the rights and limitations under the License. |
17 | |
7fd59977 |
18 | |
19 | #include <StepAP214_AutoDesignGroupedItem.ixx> |
20 | #include <Interface_Macros.hxx> |
21 | |
22 | StepAP214_AutoDesignGroupedItem::StepAP214_AutoDesignGroupedItem () { } |
23 | |
24 | Standard_Integer StepAP214_AutoDesignGroupedItem::CaseNum(const Handle(Standard_Transient)& ent) const |
25 | { |
26 | if (ent.IsNull()) return 0; |
27 | if (ent->IsKind(STANDARD_TYPE(StepShape_AdvancedBrepShapeRepresentation))) return 1; |
28 | if (ent->IsKind(STANDARD_TYPE(StepShape_CsgShapeRepresentation))) return 2; |
29 | if (ent->IsKind(STANDARD_TYPE(StepShape_FacetedBrepShapeRepresentation))) return 3; |
30 | if (ent->IsKind(STANDARD_TYPE(StepShape_GeometricallyBoundedSurfaceShapeRepresentation))) return 4; |
31 | if (ent->IsKind(STANDARD_TYPE(StepShape_GeometricallyBoundedWireframeShapeRepresentation))) return 5; |
32 | if (ent->IsKind(STANDARD_TYPE(StepShape_ManifoldSurfaceShapeRepresentation))) return 6; |
33 | if (ent->IsKind(STANDARD_TYPE(StepRepr_Representation))) return 7; |
34 | if (ent->IsKind(STANDARD_TYPE(StepRepr_RepresentationItem))) return 8; |
35 | if (ent->IsKind(STANDARD_TYPE(StepShape_ShapeRepresentation))) return 9; |
36 | if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 10; |
37 | if (ent->IsKind(STANDARD_TYPE(StepVisual_TemplateInstance))) return 11; |
38 | return 0; |
39 | } |
40 | |
41 | Handle(StepShape_AdvancedBrepShapeRepresentation) StepAP214_AutoDesignGroupedItem::AdvancedBrepShapeRepresentation () const |
42 | { |
43 | return GetCasted(StepShape_AdvancedBrepShapeRepresentation,Value()); |
44 | } |
45 | |
46 | Handle(StepShape_CsgShapeRepresentation) StepAP214_AutoDesignGroupedItem::CsgShapeRepresentation () const |
47 | { |
48 | return GetCasted(StepShape_CsgShapeRepresentation,Value()); |
49 | } |
50 | |
51 | Handle(StepShape_FacetedBrepShapeRepresentation) StepAP214_AutoDesignGroupedItem::FacetedBrepShapeRepresentation () const |
52 | { |
53 | return GetCasted(StepShape_FacetedBrepShapeRepresentation,Value()); |
54 | } |
55 | |
56 | Handle(StepShape_GeometricallyBoundedSurfaceShapeRepresentation) StepAP214_AutoDesignGroupedItem::GeometricallyBoundedSurfaceShapeRepresentation () const |
57 | { |
58 | return GetCasted(StepShape_GeometricallyBoundedSurfaceShapeRepresentation,Value()); |
59 | } |
60 | |
61 | Handle(StepShape_GeometricallyBoundedWireframeShapeRepresentation) StepAP214_AutoDesignGroupedItem::GeometricallyBoundedWireframeShapeRepresentation () const |
62 | { |
63 | return GetCasted(StepShape_GeometricallyBoundedWireframeShapeRepresentation,Value()); |
64 | } |
65 | |
66 | Handle(StepShape_ManifoldSurfaceShapeRepresentation) StepAP214_AutoDesignGroupedItem::ManifoldSurfaceShapeRepresentation () const |
67 | { |
68 | return GetCasted(StepShape_ManifoldSurfaceShapeRepresentation,Value()); |
69 | } |
70 | |
71 | Handle(StepRepr_Representation) StepAP214_AutoDesignGroupedItem::Representation () const |
72 | { |
73 | return GetCasted(StepRepr_Representation,Value()); |
74 | } |
75 | |
76 | Handle(StepRepr_RepresentationItem) StepAP214_AutoDesignGroupedItem::RepresentationItem () const |
77 | { |
78 | return GetCasted(StepRepr_RepresentationItem,Value()); |
79 | } |
80 | |
81 | Handle(StepRepr_ShapeAspect) StepAP214_AutoDesignGroupedItem::ShapeAspect () const |
82 | { |
83 | return GetCasted(StepRepr_ShapeAspect,Value()); |
84 | } |
85 | |
86 | Handle(StepShape_ShapeRepresentation) StepAP214_AutoDesignGroupedItem::ShapeRepresentation () const |
87 | { |
88 | return GetCasted(StepShape_ShapeRepresentation,Value()); |
89 | } |
90 | |
91 | Handle(StepVisual_TemplateInstance) StepAP214_AutoDesignGroupedItem::TemplateInstance () const |
92 | { |
93 | return GetCasted(StepVisual_TemplateInstance,Value()); |
94 | } |