blob: 41ed37d044191dd88451b68bb67a15341ed1ed64 (
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
|
// File: StepAP203_SpecifiedItem.cxx
// Created: Fri Nov 26 16:26:27 1999
// Author: Andrey BETENEV
// Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
// Copyright: Matra Datavision 1999
#include <StepAP203_SpecifiedItem.ixx>
//=======================================================================
//function : StepAP203_SpecifiedItem
//purpose :
//=======================================================================
StepAP203_SpecifiedItem::StepAP203_SpecifiedItem ()
{
}
//=======================================================================
//function : CaseNum
//purpose :
//=======================================================================
Standard_Integer StepAP203_SpecifiedItem::CaseNum (const Handle(Standard_Transient)& ent) const
{
if (ent.IsNull()) return 0;
if (ent->IsKind(STANDARD_TYPE(StepBasic_ProductDefinition))) return 1;
if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 2;
return 0;
}
//=======================================================================
//function : ProductDefinition
//purpose :
//=======================================================================
Handle(StepBasic_ProductDefinition) StepAP203_SpecifiedItem::ProductDefinition () const
{
return Handle(StepBasic_ProductDefinition)::DownCast(Value());
}
//=======================================================================
//function : ShapeAspect
//purpose :
//=======================================================================
Handle(StepRepr_ShapeAspect) StepAP203_SpecifiedItem::ShapeAspect () const
{
return Handle(StepRepr_ShapeAspect)::DownCast(Value());
}
|