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