1 // Created on: 2002-12-12
2 // Created by: data exchange team
3 // Copyright (c) 2002-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
18 #include <Standard_Transient.hxx>
19 #include <StepBasic_GeneralProperty.hxx>
20 #include <StepRepr_PropertyDefinition.hxx>
21 #include <StepRepr_PropertyDefinitionRelationship.hxx>
22 #include <StepRepr_RepresentedDefinition.hxx>
23 #include <StepRepr_ShapeAspect.hxx>
24 #include <StepRepr_ShapeAspectRelationship.hxx>
26 //=======================================================================
27 //function : StepRepr_RepresentedDefinition
29 //=======================================================================
30 StepRepr_RepresentedDefinition::StepRepr_RepresentedDefinition ()
34 //=======================================================================
37 //=======================================================================
39 Standard_Integer StepRepr_RepresentedDefinition::CaseNum (const Handle(Standard_Transient)& ent) const
41 if (ent.IsNull()) return 0;
42 if (ent->IsKind(STANDARD_TYPE(StepBasic_GeneralProperty))) return 1;
43 if (ent->IsKind(STANDARD_TYPE(StepRepr_PropertyDefinition))) return 2;
44 if (ent->IsKind(STANDARD_TYPE(StepRepr_PropertyDefinitionRelationship))) return 3;
45 if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspect))) return 4;
46 if (ent->IsKind(STANDARD_TYPE(StepRepr_ShapeAspectRelationship))) return 5;
50 //=======================================================================
51 //function : GeneralProperty
53 //=======================================================================
55 Handle(StepBasic_GeneralProperty) StepRepr_RepresentedDefinition::GeneralProperty () const
57 return Handle(StepBasic_GeneralProperty)::DownCast(Value());
60 //=======================================================================
61 //function : PropertyDefinition
63 //=======================================================================
65 Handle(StepRepr_PropertyDefinition) StepRepr_RepresentedDefinition::PropertyDefinition () const
67 return Handle(StepRepr_PropertyDefinition)::DownCast(Value());
70 //=======================================================================
71 //function : PropertyDefinitionRelationship
73 //=======================================================================
75 Handle(StepRepr_PropertyDefinitionRelationship) StepRepr_RepresentedDefinition::PropertyDefinitionRelationship () const
77 return Handle(StepRepr_PropertyDefinitionRelationship)::DownCast(Value());
80 //=======================================================================
81 //function : ShapeAspect
83 //=======================================================================
85 Handle(StepRepr_ShapeAspect) StepRepr_RepresentedDefinition::ShapeAspect () const
87 return Handle(StepRepr_ShapeAspect)::DownCast(Value());
90 //=======================================================================
91 //function : ShapeAspectRelationship
93 //=======================================================================
95 Handle(StepRepr_ShapeAspectRelationship) StepRepr_RepresentedDefinition::ShapeAspectRelationship () const
97 return Handle(StepRepr_ShapeAspectRelationship)::DownCast(Value());