Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepVisual / StepVisual_InvisibleItem.cxx
1
2 #include <StepVisual_InvisibleItem.ixx>
3 #include <Interface_Macros.hxx>
4
5 StepVisual_InvisibleItem::StepVisual_InvisibleItem () {  }
6
7 Standard_Integer StepVisual_InvisibleItem::CaseNum(const Handle(Standard_Transient)& ent) const
8 {
9         if (ent.IsNull()) return 0;
10         if (ent->IsKind(STANDARD_TYPE(StepVisual_StyledItem))) return 1;
11         if (ent->IsKind(STANDARD_TYPE(StepVisual_PresentationLayerAssignment))) return 2;
12         if (ent->IsKind(STANDARD_TYPE(StepVisual_PresentationRepresentation))) return 3;
13         return 0;
14 }
15
16 Handle(StepVisual_StyledItem) StepVisual_InvisibleItem::StyledItem () const
17 {
18         return GetCasted(StepVisual_StyledItem,Value());
19 }
20
21 Handle(StepVisual_PresentationLayerAssignment) StepVisual_InvisibleItem::PresentationLayerAssignment () const
22 {
23         return GetCasted(StepVisual_PresentationLayerAssignment,Value());
24 }
25
26 Handle(StepVisual_PresentationRepresentation) StepVisual_InvisibleItem::PresentationRepresentation () const
27 {
28         return GetCasted(StepVisual_PresentationRepresentation,Value());
29 }