1 // Created on: 2000-04-18
2 // Created by: Andrey BETENEV
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and / or modify it
8 // under the terms of the GNU Lesser General Public 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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.0
18 #include <StepRepr_ShapeAspectRelationship.ixx>
20 //=======================================================================
21 //function : StepRepr_ShapeAspectRelationship
23 //=======================================================================
25 StepRepr_ShapeAspectRelationship::StepRepr_ShapeAspectRelationship ()
27 defDescription = Standard_False;
30 //=======================================================================
33 //=======================================================================
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)
44 defDescription = hasDescription;
46 theDescription = aDescription;
48 else theDescription.Nullify();
50 theRelatingShapeAspect = aRelatingShapeAspect;
52 theRelatedShapeAspect = aRelatedShapeAspect;
55 //=======================================================================
58 //=======================================================================
60 Handle(TCollection_HAsciiString) StepRepr_ShapeAspectRelationship::Name () const
65 //=======================================================================
68 //=======================================================================
70 void StepRepr_ShapeAspectRelationship::SetName (const Handle(TCollection_HAsciiString) &aName)
75 //=======================================================================
76 //function : Description
78 //=======================================================================
80 Handle(TCollection_HAsciiString) StepRepr_ShapeAspectRelationship::Description () const
82 return theDescription;
85 //=======================================================================
86 //function : SetDescription
88 //=======================================================================
90 void StepRepr_ShapeAspectRelationship::SetDescription (const Handle(TCollection_HAsciiString) &aDescription)
92 theDescription = aDescription;
95 //=======================================================================
96 //function : HasDescription
98 //=======================================================================
100 Standard_Boolean StepRepr_ShapeAspectRelationship::HasDescription () const
102 return defDescription;
105 //=======================================================================
106 //function : RelatingShapeAspect
108 //=======================================================================
110 Handle(StepRepr_ShapeAspect) StepRepr_ShapeAspectRelationship::RelatingShapeAspect () const
112 return theRelatingShapeAspect;
115 //=======================================================================
116 //function : SetRelatingShapeAspect
118 //=======================================================================
120 void StepRepr_ShapeAspectRelationship::SetRelatingShapeAspect (const Handle(StepRepr_ShapeAspect) &aRelatingShapeAspect)
122 theRelatingShapeAspect = aRelatingShapeAspect;
125 //=======================================================================
126 //function : RelatedShapeAspect
128 //=======================================================================
130 Handle(StepRepr_ShapeAspect) StepRepr_ShapeAspectRelationship::RelatedShapeAspect () const
132 return theRelatedShapeAspect;
135 //=======================================================================
136 //function : SetRelatedShapeAspect
138 //=======================================================================
140 void StepRepr_ShapeAspectRelationship::SetRelatedShapeAspect (const Handle(StepRepr_ShapeAspect) &aRelatedShapeAspect)
142 theRelatedShapeAspect = aRelatedShapeAspect;