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