0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying...
[occt.git] / src / StepFEA / StepFEA_ElementGeometricRelationship.cxx
1 // Created on: 2003-02-04
2 // Created by: data exchange team
3 // Copyright (c) 2003-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_AnalysisItemWithinRepresentation.hxx>
20 #include <StepElement_ElementAspect.hxx>
21 #include <StepFEA_ElementGeometricRelationship.hxx>
22 #include <StepFEA_ElementOrElementGroup.hxx>
23
24 IMPLEMENT_STANDARD_RTTIEXT(StepFEA_ElementGeometricRelationship,Standard_Transient)
25
26 //=======================================================================
27 //function : StepFEA_ElementGeometricRelationship
28 //purpose  : 
29 //=======================================================================
30 StepFEA_ElementGeometricRelationship::StepFEA_ElementGeometricRelationship ()
31 {
32 }
33
34 //=======================================================================
35 //function : Init
36 //purpose  : 
37 //=======================================================================
38
39 void StepFEA_ElementGeometricRelationship::Init (const StepFEA_ElementOrElementGroup &aElementRef,
40                                                  const Handle(StepElement_AnalysisItemWithinRepresentation) &aItem,
41                                                  const StepElement_ElementAspect &aAspect)
42 {
43
44   theElementRef = aElementRef;
45
46   theItem = aItem;
47
48   theAspect = aAspect;
49 }
50
51 //=======================================================================
52 //function : ElementRef
53 //purpose  : 
54 //=======================================================================
55
56 StepFEA_ElementOrElementGroup StepFEA_ElementGeometricRelationship::ElementRef () const
57 {
58   return theElementRef;
59 }
60
61 //=======================================================================
62 //function : SetElementRef
63 //purpose  : 
64 //=======================================================================
65
66 void StepFEA_ElementGeometricRelationship::SetElementRef (const StepFEA_ElementOrElementGroup &aElementRef)
67 {
68   theElementRef = aElementRef;
69 }
70
71 //=======================================================================
72 //function : Item
73 //purpose  : 
74 //=======================================================================
75
76 Handle(StepElement_AnalysisItemWithinRepresentation) StepFEA_ElementGeometricRelationship::Item () const
77 {
78   return theItem;
79 }
80
81 //=======================================================================
82 //function : SetItem
83 //purpose  : 
84 //=======================================================================
85
86 void StepFEA_ElementGeometricRelationship::SetItem (const Handle(StepElement_AnalysisItemWithinRepresentation) &aItem)
87 {
88   theItem = aItem;
89 }
90
91 //=======================================================================
92 //function : Aspect
93 //purpose  : 
94 //=======================================================================
95
96 StepElement_ElementAspect StepFEA_ElementGeometricRelationship::Aspect () const
97 {
98   return theAspect;
99 }
100
101 //=======================================================================
102 //function : SetAspect
103 //purpose  : 
104 //=======================================================================
105
106 void StepFEA_ElementGeometricRelationship::SetAspect (const StepElement_ElementAspect &aAspect)
107 {
108   theAspect = aAspect;
109 }