Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepVisual / StepVisual_PresentationRepresentationSelect.cxx
CommitLineData
7fd59977 1
2#include <StepVisual_PresentationRepresentationSelect.ixx>
3#include <Interface_Macros.hxx>
4
5StepVisual_PresentationRepresentationSelect::StepVisual_PresentationRepresentationSelect () { }
6
7Standard_Integer StepVisual_PresentationRepresentationSelect::CaseNum(const Handle(Standard_Transient)& ent) const
8{
9 if (ent.IsNull()) return 0;
10 if (ent->IsKind(STANDARD_TYPE(StepVisual_PresentationRepresentation))) return 1;
11 if (ent->IsKind(STANDARD_TYPE(StepVisual_PresentationSet))) return 2;
12 return 0;
13}
14
15Handle(StepVisual_PresentationRepresentation) StepVisual_PresentationRepresentationSelect::PresentationRepresentation () const
16{
17 return GetCasted(StepVisual_PresentationRepresentation,Value());
18}
19
20Handle(StepVisual_PresentationSet) StepVisual_PresentationRepresentationSelect::PresentationSet () const
21{
22 return GetCasted(StepVisual_PresentationSet,Value());
23}