summaryrefslogtreecommitdiff
path: root/src/StepVisual/StepVisual_MarkerSelect.cxx
blob: b3ee314f11ebac0d240caa2aa1b27bcce65a0006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

#include <StepVisual_MarkerSelect.ixx>
#include <Interface_Macros.hxx>

StepVisual_MarkerSelect::StepVisual_MarkerSelect () {  }

Standard_Integer StepVisual_MarkerSelect::CaseNum(const Handle(Standard_Transient)& ent) const
{
	return 0;
}

Handle(StepData_SelectMember)  StepVisual_MarkerSelect::NewMember () const
{  return new StepVisual_MarkerMember;  }

Standard_Integer  StepVisual_MarkerSelect::CaseMem
  (const Handle(StepData_SelectMember)& ent) const
{
  if (ent.IsNull()) return 0;
  Interface_ParamType type = ent->ParamType();
//  Void : on admet "non defini" (en principe, on ne devrait pas)
  if (type != Interface_ParamVoid && type != Interface_ParamEnum) return 0;
  if (ent->Matches("MARKER_TYPE")) return 1;
  return 0;
}

Handle(StepVisual_MarkerMember)  StepVisual_MarkerSelect::MarkerMember () const
{  return GetCasted(StepVisual_MarkerMember,Value());  }