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