blob: 12ae742cf6670e3cbc19b39ae4138be57ef638ee (
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
28
29
|
#include <StepRepr_ShapeDefinition.ixx>
#include <Interface_Macros.hxx>
StepRepr_ShapeDefinition::StepRepr_ShapeDefinition () { }
Standard_Integer StepRepr_ShapeDefinition::CaseNum(const Handle(Standard_Transient)& ent) const
{
if (ent.IsNull()) return 0;
if (ent->IsKind(STANDARD_TYPE(StepRepr_ProductDefinitionShape))) return 1;
if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 2;
if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspectRelationship))) return 3;
return 0;
}
Handle(StepRepr_ProductDefinitionShape) StepRepr_ShapeDefinition::ProductDefinitionShape () const
{
return GetCasted(StepRepr_ProductDefinitionShape,Value());
}
Handle(StepRepr_ShapeAspect) StepRepr_ShapeDefinition::ShapeAspect () const
{
return GetCasted(StepRepr_ShapeAspect,Value());
}
Handle(StepRepr_ShapeAspectRelationship) StepRepr_ShapeDefinition::ShapeAspectRelationship () const
{
return GetCasted(StepRepr_ShapeAspectRelationship,Value());
}
|