0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying...
[occt.git] / src / StepFEA / StepFEA_FeaCurveSectionGeometricRelationship.cxx
1 // Created on: 2003-01-22
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_CurveElementSectionDefinition.hxx>
21 #include <StepFEA_FeaCurveSectionGeometricRelationship.hxx>
22
23 IMPLEMENT_STANDARD_RTTIEXT(StepFEA_FeaCurveSectionGeometricRelationship,Standard_Transient)
24
25 //=======================================================================
26 //function : StepFEA_FeaCurveSectionGeometricRelationship
27 //purpose  : 
28 //=======================================================================
29 StepFEA_FeaCurveSectionGeometricRelationship::StepFEA_FeaCurveSectionGeometricRelationship ()
30 {
31 }
32
33 //=======================================================================
34 //function : Init
35 //purpose  : 
36 //=======================================================================
37
38 void StepFEA_FeaCurveSectionGeometricRelationship::Init (const Handle(StepElement_CurveElementSectionDefinition) &aSectionRef,
39                                                          const Handle(StepElement_AnalysisItemWithinRepresentation) &aItem)
40 {
41
42   theSectionRef = aSectionRef;
43
44   theItem = aItem;
45 }
46
47 //=======================================================================
48 //function : SectionRef
49 //purpose  : 
50 //=======================================================================
51
52 Handle(StepElement_CurveElementSectionDefinition) StepFEA_FeaCurveSectionGeometricRelationship::SectionRef () const
53 {
54   return theSectionRef;
55 }
56
57 //=======================================================================
58 //function : SetSectionRef
59 //purpose  : 
60 //=======================================================================
61
62 void StepFEA_FeaCurveSectionGeometricRelationship::SetSectionRef (const Handle(StepElement_CurveElementSectionDefinition) &aSectionRef)
63 {
64   theSectionRef = aSectionRef;
65 }
66
67 //=======================================================================
68 //function : Item
69 //purpose  : 
70 //=======================================================================
71
72 Handle(StepElement_AnalysisItemWithinRepresentation) StepFEA_FeaCurveSectionGeometricRelationship::Item () const
73 {
74   return theItem;
75 }
76
77 //=======================================================================
78 //function : SetItem
79 //purpose  : 
80 //=======================================================================
81
82 void StepFEA_FeaCurveSectionGeometricRelationship::SetItem (const Handle(StepElement_AnalysisItemWithinRepresentation) &aItem)
83 {
84   theItem = aItem;
85 }