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_Type.hxx>
19 #include <StepElement_ElementMaterial.hxx>
20 #include <StepElement_Surface3dElementDescriptor.hxx>
21 #include <StepElement_SurfaceElementProperty.hxx>
22 #include <StepFEA_FeaModel3d.hxx>
23 #include <StepFEA_Surface3dElementRepresentation.hxx>
24 #include <StepRepr_RepresentationContext.hxx>
25 #include <TCollection_HAsciiString.hxx>
27 IMPLEMENT_STANDARD_RTTIEXT(StepFEA_Surface3dElementRepresentation,StepFEA_ElementRepresentation)
29 //=======================================================================
30 //function : StepFEA_Surface3dElementRepresentation
32 //=======================================================================
33 StepFEA_Surface3dElementRepresentation::StepFEA_Surface3dElementRepresentation ()
37 //=======================================================================
40 //=======================================================================
42 void StepFEA_Surface3dElementRepresentation::Init (const Handle(TCollection_HAsciiString) &aRepresentation_Name,
43 const Handle(StepRepr_HArray1OfRepresentationItem) &aRepresentation_Items,
44 const Handle(StepRepr_RepresentationContext) &aRepresentation_ContextOfItems,
45 const Handle(StepFEA_HArray1OfNodeRepresentation) &aElementRepresentation_NodeList,
46 const Handle(StepFEA_FeaModel3d) &aModelRef,
47 const Handle(StepElement_Surface3dElementDescriptor) &aElementDescriptor,
48 const Handle(StepElement_SurfaceElementProperty) &aProperty,
49 const Handle(StepElement_ElementMaterial) &aMaterial)
51 StepFEA_ElementRepresentation::Init(aRepresentation_Name,
52 aRepresentation_Items,
53 aRepresentation_ContextOfItems,
54 aElementRepresentation_NodeList);
56 theModelRef = aModelRef;
58 theElementDescriptor = aElementDescriptor;
60 theProperty = aProperty;
62 theMaterial = aMaterial;
65 //=======================================================================
68 //=======================================================================
70 Handle(StepFEA_FeaModel3d) StepFEA_Surface3dElementRepresentation::ModelRef () const
75 //=======================================================================
76 //function : SetModelRef
78 //=======================================================================
80 void StepFEA_Surface3dElementRepresentation::SetModelRef (const Handle(StepFEA_FeaModel3d) &aModelRef)
82 theModelRef = aModelRef;
85 //=======================================================================
86 //function : ElementDescriptor
88 //=======================================================================
90 Handle(StepElement_Surface3dElementDescriptor) StepFEA_Surface3dElementRepresentation::ElementDescriptor () const
92 return theElementDescriptor;
95 //=======================================================================
96 //function : SetElementDescriptor
98 //=======================================================================
100 void StepFEA_Surface3dElementRepresentation::SetElementDescriptor (const Handle(StepElement_Surface3dElementDescriptor) &aElementDescriptor)
102 theElementDescriptor = aElementDescriptor;
105 //=======================================================================
106 //function : Property
108 //=======================================================================
110 Handle(StepElement_SurfaceElementProperty) StepFEA_Surface3dElementRepresentation::Property () const
115 //=======================================================================
116 //function : SetProperty
118 //=======================================================================
120 void StepFEA_Surface3dElementRepresentation::SetProperty (const Handle(StepElement_SurfaceElementProperty) &aProperty)
122 theProperty = aProperty;
125 //=======================================================================
126 //function : Material
128 //=======================================================================
130 Handle(StepElement_ElementMaterial) StepFEA_Surface3dElementRepresentation::Material () const
135 //=======================================================================
136 //function : SetMaterial
138 //=======================================================================
140 void StepFEA_Surface3dElementRepresentation::SetMaterial (const Handle(StepElement_ElementMaterial) &aMaterial)
142 theMaterial = aMaterial;