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