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