Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepVisual / StepVisual_MarkerSelect.cxx
CommitLineData
7fd59977 1
2#include <StepVisual_MarkerSelect.ixx>
3#include <Interface_Macros.hxx>
4
5StepVisual_MarkerSelect::StepVisual_MarkerSelect () { }
6
7Standard_Integer StepVisual_MarkerSelect::CaseNum(const Handle(Standard_Transient)& ent) const
8{
9 return 0;
10}
11
12Handle(StepData_SelectMember) StepVisual_MarkerSelect::NewMember () const
13{ return new StepVisual_MarkerMember; }
14
15Standard_Integer StepVisual_MarkerSelect::CaseMem
16 (const Handle(StepData_SelectMember)& ent) const
17{
18 if (ent.IsNull()) return 0;
19 Interface_ParamType type = ent->ParamType();
20// Void : on admet "non defini" (en principe, on ne devrait pas)
21 if (type != Interface_ParamVoid && type != Interface_ParamEnum) return 0;
22 if (ent->Matches("MARKER_TYPE")) return 1;
23 return 0;
24}
25
26Handle(StepVisual_MarkerMember) StepVisual_MarkerSelect::MarkerMember () const
27{ return GetCasted(StepVisual_MarkerMember,Value()); }