Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepVisual / StepVisual_PresentationStyleSelect.cxx
... / ...
CommitLineData
1
2#include <StepVisual_PresentationStyleSelect.ixx>
3#include <Interface_Macros.hxx>
4
5StepVisual_PresentationStyleSelect::StepVisual_PresentationStyleSelect () { }
6
7Standard_Integer StepVisual_PresentationStyleSelect::CaseNum(const Handle(Standard_Transient)& ent) const
8{
9 if (ent.IsNull()) return 0;
10 if (ent->IsKind(STANDARD_TYPE(StepVisual_PointStyle))) return 1;
11 if (ent->IsKind(STANDARD_TYPE(StepVisual_CurveStyle))) return 2;
12 if (ent->IsKind(STANDARD_TYPE(StepVisual_SurfaceStyleUsage))) return 3;
13// if (ent->IsKind(STANDARD_TYPE(StepVisual_SymbolStyle))) return 4;
14// if (ent->IsKind(STANDARD_TYPE(StepVisual_FillAreaStyle))) return 5;
15// if (ent->IsKind(STANDARD_TYPE(StepVisual_TextStyle))) return 6;
16 return 0;
17}
18
19Handle(StepVisual_PointStyle) StepVisual_PresentationStyleSelect::PointStyle () const
20{
21 return GetCasted(StepVisual_PointStyle,Value());
22}
23
24Handle(StepVisual_CurveStyle) StepVisual_PresentationStyleSelect::CurveStyle () const
25{
26 return GetCasted(StepVisual_CurveStyle,Value());
27}
28
29Handle(StepVisual_SurfaceStyleUsage) StepVisual_PresentationStyleSelect::SurfaceStyleUsage () const
30{
31 return GetCasted(StepVisual_SurfaceStyleUsage,Value());
32}