0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying...
[occt.git] / src / StepFEA / StepFEA_Curve3dElementRepresentation.cxx
1 // Created on: 2002-12-12
2 // Created by: data exchange team
3 // Copyright (c) 2002-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 // Generator:   ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
17
18 #include <Standard_Type.hxx>
19 #include <StepElement_Curve3dElementDescriptor.hxx>
20 #include <StepElement_ElementMaterial.hxx>
21 #include <StepFEA_Curve3dElementProperty.hxx>
22 #include <StepFEA_Curve3dElementRepresentation.hxx>
23 #include <StepFEA_FeaModel3d.hxx>
24 #include <StepRepr_RepresentationContext.hxx>
25 #include <TCollection_HAsciiString.hxx>
26
27 IMPLEMENT_STANDARD_RTTIEXT(StepFEA_Curve3dElementRepresentation,StepFEA_ElementRepresentation)
28
29 //=======================================================================
30 //function : StepFEA_Curve3dElementRepresentation
31 //purpose  : 
32 //=======================================================================
33 StepFEA_Curve3dElementRepresentation::StepFEA_Curve3dElementRepresentation ()
34 {
35 }
36
37 //=======================================================================
38 //function : Init
39 //purpose  : 
40 //=======================================================================
41
42 void StepFEA_Curve3dElementRepresentation::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_Curve3dElementDescriptor) &aElementDescriptor,
48                                                  const Handle(StepFEA_Curve3dElementProperty) &aProperty,
49                                                  const Handle(StepElement_ElementMaterial) &aMaterial)
50 {
51   StepFEA_ElementRepresentation::Init(aRepresentation_Name,
52                                       aRepresentation_Items,
53                                       aRepresentation_ContextOfItems,
54                                       aElementRepresentation_NodeList);
55
56   theModelRef = aModelRef;
57
58   theElementDescriptor = aElementDescriptor;
59
60   theProperty = aProperty;
61
62   theMaterial = aMaterial;
63 }
64
65 //=======================================================================
66 //function : ModelRef
67 //purpose  : 
68 //=======================================================================
69
70 Handle(StepFEA_FeaModel3d) StepFEA_Curve3dElementRepresentation::ModelRef () const
71 {
72   return theModelRef;
73 }
74
75 //=======================================================================
76 //function : SetModelRef
77 //purpose  : 
78 //=======================================================================
79
80 void StepFEA_Curve3dElementRepresentation::SetModelRef (const Handle(StepFEA_FeaModel3d) &aModelRef)
81 {
82   theModelRef = aModelRef;
83 }
84
85 //=======================================================================
86 //function : ElementDescriptor
87 //purpose  : 
88 //=======================================================================
89
90 Handle(StepElement_Curve3dElementDescriptor) StepFEA_Curve3dElementRepresentation::ElementDescriptor () const
91 {
92   return theElementDescriptor;
93 }
94
95 //=======================================================================
96 //function : SetElementDescriptor
97 //purpose  : 
98 //=======================================================================
99
100 void StepFEA_Curve3dElementRepresentation::SetElementDescriptor (const Handle(StepElement_Curve3dElementDescriptor) &aElementDescriptor)
101 {
102   theElementDescriptor = aElementDescriptor;
103 }
104
105 //=======================================================================
106 //function : Property
107 //purpose  : 
108 //=======================================================================
109
110 Handle(StepFEA_Curve3dElementProperty) StepFEA_Curve3dElementRepresentation::Property () const
111 {
112   return theProperty;
113 }
114
115 //=======================================================================
116 //function : SetProperty
117 //purpose  : 
118 //=======================================================================
119
120 void StepFEA_Curve3dElementRepresentation::SetProperty (const Handle(StepFEA_Curve3dElementProperty) &aProperty)
121 {
122   theProperty = aProperty;
123 }
124
125 //=======================================================================
126 //function : Material
127 //purpose  : 
128 //=======================================================================
129
130 Handle(StepElement_ElementMaterial) StepFEA_Curve3dElementRepresentation::Material () const
131 {
132   return theMaterial;
133 }
134
135 //=======================================================================
136 //function : SetMaterial
137 //purpose  : 
138 //=======================================================================
139
140 void StepFEA_Curve3dElementRepresentation::SetMaterial (const Handle(StepElement_ElementMaterial) &aMaterial)
141 {
142   theMaterial = aMaterial;
143 }