0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / StepElement / StepElement_AnalysisItemWithinRepresentation.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_AnalysisItemWithinRepresentation.hxx>
20 #include <StepRepr_Representation.hxx>
21 #include <StepRepr_RepresentationItem.hxx>
22 #include <TCollection_HAsciiString.hxx>
23
24 IMPLEMENT_STANDARD_RTTIEXT(StepElement_AnalysisItemWithinRepresentation,Standard_Transient)
25
26 //=======================================================================
27 //function : StepElement_AnalysisItemWithinRepresentation
28 //purpose  : 
29 //=======================================================================
30 StepElement_AnalysisItemWithinRepresentation::StepElement_AnalysisItemWithinRepresentation ()
31 {
32 }
33
34 //=======================================================================
35 //function : Init
36 //purpose  : 
37 //=======================================================================
38
39 void StepElement_AnalysisItemWithinRepresentation::Init (const Handle(TCollection_HAsciiString) &aName,
40                                                          const Handle(TCollection_HAsciiString) &aDescription,
41                                                          const Handle(StepRepr_RepresentationItem) &aItem,
42                                                          const Handle(StepRepr_Representation) &aRep)
43 {
44
45   theName = aName;
46
47   theDescription = aDescription;
48
49   theItem = aItem;
50
51   theRep = aRep;
52 }
53
54 //=======================================================================
55 //function : Name
56 //purpose  : 
57 //=======================================================================
58
59 Handle(TCollection_HAsciiString) StepElement_AnalysisItemWithinRepresentation::Name () const
60 {
61   return theName;
62 }
63
64 //=======================================================================
65 //function : SetName
66 //purpose  : 
67 //=======================================================================
68
69 void StepElement_AnalysisItemWithinRepresentation::SetName (const Handle(TCollection_HAsciiString) &aName)
70 {
71   theName = aName;
72 }
73
74 //=======================================================================
75 //function : Description
76 //purpose  : 
77 //=======================================================================
78
79 Handle(TCollection_HAsciiString) StepElement_AnalysisItemWithinRepresentation::Description () const
80 {
81   return theDescription;
82 }
83
84 //=======================================================================
85 //function : SetDescription
86 //purpose  : 
87 //=======================================================================
88
89 void StepElement_AnalysisItemWithinRepresentation::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
90 {
91   theDescription = aDescription;
92 }
93
94 //=======================================================================
95 //function : Item
96 //purpose  : 
97 //=======================================================================
98
99 Handle(StepRepr_RepresentationItem) StepElement_AnalysisItemWithinRepresentation::Item () const
100 {
101   return theItem;
102 }
103
104 //=======================================================================
105 //function : SetItem
106 //purpose  : 
107 //=======================================================================
108
109 void StepElement_AnalysisItemWithinRepresentation::SetItem (const Handle(StepRepr_RepresentationItem) &aItem)
110 {
111   theItem = aItem;
112 }
113
114 //=======================================================================
115 //function : Rep
116 //purpose  : 
117 //=======================================================================
118
119 Handle(StepRepr_Representation) StepElement_AnalysisItemWithinRepresentation::Rep () const
120 {
121   return theRep;
122 }
123
124 //=======================================================================
125 //function : SetRep
126 //purpose  : 
127 //=======================================================================
128
129 void StepElement_AnalysisItemWithinRepresentation::SetRep (const Handle(StepRepr_Representation) &aRep)
130 {
131   theRep = aRep;
132 }