mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-10 09:30:48 +08:00
28 lines
880 B
C++
Executable File
28 lines
880 B
C++
Executable File
|
|
#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()); }
|