b311480e |
1 | // Created on: 2000-04-18 |
2 | // Created by: Andrey BETENEV |
973c2be1 |
3 | // Copyright (c) 2000-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.0 |
7fd59977 |
17 | |
42cf5bc1 |
18 | #include <Standard_Type.hxx> |
19 | #include <StepRepr_ShapeAspect.hxx> |
20 | #include <StepRepr_ShapeAspectRelationship.hxx> |
21 | #include <TCollection_HAsciiString.hxx> |
7fd59977 |
22 | |
23 | //======================================================================= |
24 | //function : StepRepr_ShapeAspectRelationship |
25 | //purpose : |
26 | //======================================================================= |
7fd59977 |
27 | StepRepr_ShapeAspectRelationship::StepRepr_ShapeAspectRelationship () |
28 | { |
29 | defDescription = Standard_False; |
30 | } |
31 | |
32 | //======================================================================= |
33 | //function : Init |
34 | //purpose : |
35 | //======================================================================= |
36 | |
37 | void StepRepr_ShapeAspectRelationship::Init (const Handle(TCollection_HAsciiString) &aName, |
38 | const Standard_Boolean hasDescription, |
39 | const Handle(TCollection_HAsciiString) &aDescription, |
40 | const Handle(StepRepr_ShapeAspect) &aRelatingShapeAspect, |
41 | const Handle(StepRepr_ShapeAspect) &aRelatedShapeAspect) |
42 | { |
43 | |
44 | theName = aName; |
45 | |
46 | defDescription = hasDescription; |
47 | if (defDescription) { |
48 | theDescription = aDescription; |
49 | } |
50 | else theDescription.Nullify(); |
51 | |
52 | theRelatingShapeAspect = aRelatingShapeAspect; |
53 | |
54 | theRelatedShapeAspect = aRelatedShapeAspect; |
55 | } |
56 | |
57 | //======================================================================= |
58 | //function : Name |
59 | //purpose : |
60 | //======================================================================= |
61 | |
62 | Handle(TCollection_HAsciiString) StepRepr_ShapeAspectRelationship::Name () const |
63 | { |
64 | return theName; |
65 | } |
66 | |
67 | //======================================================================= |
68 | //function : SetName |
69 | //purpose : |
70 | //======================================================================= |
71 | |
72 | void StepRepr_ShapeAspectRelationship::SetName (const Handle(TCollection_HAsciiString) &aName) |
73 | { |
74 | theName = aName; |
75 | } |
76 | |
77 | //======================================================================= |
78 | //function : Description |
79 | //purpose : |
80 | //======================================================================= |
81 | |
82 | Handle(TCollection_HAsciiString) StepRepr_ShapeAspectRelationship::Description () const |
83 | { |
84 | return theDescription; |
85 | } |
86 | |
87 | //======================================================================= |
88 | //function : SetDescription |
89 | //purpose : |
90 | //======================================================================= |
91 | |
92 | void StepRepr_ShapeAspectRelationship::SetDescription (const Handle(TCollection_HAsciiString) &aDescription) |
93 | { |
94 | theDescription = aDescription; |
95 | } |
96 | |
97 | //======================================================================= |
98 | //function : HasDescription |
99 | //purpose : |
100 | //======================================================================= |
101 | |
102 | Standard_Boolean StepRepr_ShapeAspectRelationship::HasDescription () const |
103 | { |
104 | return defDescription; |
105 | } |
106 | |
107 | //======================================================================= |
108 | //function : RelatingShapeAspect |
109 | //purpose : |
110 | //======================================================================= |
111 | |
112 | Handle(StepRepr_ShapeAspect) StepRepr_ShapeAspectRelationship::RelatingShapeAspect () const |
113 | { |
114 | return theRelatingShapeAspect; |
115 | } |
116 | |
117 | //======================================================================= |
118 | //function : SetRelatingShapeAspect |
119 | //purpose : |
120 | //======================================================================= |
121 | |
122 | void StepRepr_ShapeAspectRelationship::SetRelatingShapeAspect (const Handle(StepRepr_ShapeAspect) &aRelatingShapeAspect) |
123 | { |
124 | theRelatingShapeAspect = aRelatingShapeAspect; |
125 | } |
126 | |
127 | //======================================================================= |
128 | //function : RelatedShapeAspect |
129 | //purpose : |
130 | //======================================================================= |
131 | |
132 | Handle(StepRepr_ShapeAspect) StepRepr_ShapeAspectRelationship::RelatedShapeAspect () const |
133 | { |
134 | return theRelatedShapeAspect; |
135 | } |
136 | |
137 | //======================================================================= |
138 | //function : SetRelatedShapeAspect |
139 | //purpose : |
140 | //======================================================================= |
141 | |
142 | void StepRepr_ShapeAspectRelationship::SetRelatedShapeAspect (const Handle(StepRepr_ShapeAspect) &aRelatedShapeAspect) |
143 | { |
144 | theRelatedShapeAspect = aRelatedShapeAspect; |
145 | } |