summaryrefslogtreecommitdiff
path: root/src/StepAP214/StepAP214_AutoDesignGroupedItem.cxx
blob: 1451f295a0ce125a6c60067ab831357d431b2da5 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77

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

StepAP214_AutoDesignGroupedItem::StepAP214_AutoDesignGroupedItem () {  }

Standard_Integer StepAP214_AutoDesignGroupedItem::CaseNum(const Handle(Standard_Transient)& ent) const
{
	if (ent.IsNull()) return 0;
	if (ent->IsKind(STANDARD_TYPE(StepShape_AdvancedBrepShapeRepresentation))) return 1;
	if (ent->IsKind(STANDARD_TYPE(StepShape_CsgShapeRepresentation))) return 2;
	if (ent->IsKind(STANDARD_TYPE(StepShape_FacetedBrepShapeRepresentation))) return 3;
	if (ent->IsKind(STANDARD_TYPE(StepShape_GeometricallyBoundedSurfaceShapeRepresentation))) return 4;
	if (ent->IsKind(STANDARD_TYPE(StepShape_GeometricallyBoundedWireframeShapeRepresentation))) return 5;
	if (ent->IsKind(STANDARD_TYPE(StepShape_ManifoldSurfaceShapeRepresentation))) return 6;
	if (ent->IsKind(STANDARD_TYPE(StepRepr_Representation))) return 7;
	if (ent->IsKind(STANDARD_TYPE(StepRepr_RepresentationItem))) return 8;
	if (ent->IsKind(STANDARD_TYPE(StepShape_ShapeRepresentation))) return 9;
	if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 10;
	if (ent->IsKind(STANDARD_TYPE(StepVisual_TemplateInstance))) return 11;
	return 0;
}

Handle(StepShape_AdvancedBrepShapeRepresentation) StepAP214_AutoDesignGroupedItem::AdvancedBrepShapeRepresentation () const
{
	return GetCasted(StepShape_AdvancedBrepShapeRepresentation,Value());
}

Handle(StepShape_CsgShapeRepresentation) StepAP214_AutoDesignGroupedItem::CsgShapeRepresentation () const
{
	return GetCasted(StepShape_CsgShapeRepresentation,Value());
}

Handle(StepShape_FacetedBrepShapeRepresentation) StepAP214_AutoDesignGroupedItem::FacetedBrepShapeRepresentation () const
{
	return GetCasted(StepShape_FacetedBrepShapeRepresentation,Value());
}

Handle(StepShape_GeometricallyBoundedSurfaceShapeRepresentation) StepAP214_AutoDesignGroupedItem::GeometricallyBoundedSurfaceShapeRepresentation () const
{
	return GetCasted(StepShape_GeometricallyBoundedSurfaceShapeRepresentation,Value());
}

Handle(StepShape_GeometricallyBoundedWireframeShapeRepresentation) StepAP214_AutoDesignGroupedItem::GeometricallyBoundedWireframeShapeRepresentation () const
{
	return GetCasted(StepShape_GeometricallyBoundedWireframeShapeRepresentation,Value());
}

Handle(StepShape_ManifoldSurfaceShapeRepresentation) StepAP214_AutoDesignGroupedItem::ManifoldSurfaceShapeRepresentation () const
{
	return GetCasted(StepShape_ManifoldSurfaceShapeRepresentation,Value());
}

Handle(StepRepr_Representation) StepAP214_AutoDesignGroupedItem::Representation () const
{
	return GetCasted(StepRepr_Representation,Value());
}

Handle(StepRepr_RepresentationItem) StepAP214_AutoDesignGroupedItem::RepresentationItem () const
{
	return GetCasted(StepRepr_RepresentationItem,Value());
}

Handle(StepRepr_ShapeAspect) StepAP214_AutoDesignGroupedItem::ShapeAspect () const
{
	return GetCasted(StepRepr_ShapeAspect,Value());
}

Handle(StepShape_ShapeRepresentation) StepAP214_AutoDesignGroupedItem::ShapeRepresentation () const
{
	return GetCasted(StepShape_ShapeRepresentation,Value());
}

Handle(StepVisual_TemplateInstance) StepAP214_AutoDesignGroupedItem::TemplateInstance () const
{
	return GetCasted(StepVisual_TemplateInstance,Value());
}