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