1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
15 #include <StepRepr_ItemDefinedTransformation.hxx>
16 #include <StepRepr_RepresentationItem.hxx>
17 #include <TCollection_HAsciiString.hxx>
19 IMPLEMENT_STANDARD_RTTIEXT(StepRepr_ItemDefinedTransformation,Standard_Transient)
21 StepRepr_ItemDefinedTransformation::StepRepr_ItemDefinedTransformation () { }
23 void StepRepr_ItemDefinedTransformation::Init
24 (const Handle(TCollection_HAsciiString)& aName,
25 const Handle(TCollection_HAsciiString)& aDescription,
26 const Handle(StepRepr_RepresentationItem)& aTransformItem1,
27 const Handle(StepRepr_RepresentationItem)& aTransformItem2)
28 { theName = aName; theDescription = aDescription;
29 theTransformItem1 = aTransformItem1; theTransformItem2 = aTransformItem2; }
31 void StepRepr_ItemDefinedTransformation::SetName (const Handle(TCollection_HAsciiString)& aName)
34 Handle(TCollection_HAsciiString) StepRepr_ItemDefinedTransformation::Name () const
37 void StepRepr_ItemDefinedTransformation::SetDescription (const Handle(TCollection_HAsciiString)& aDescription)
38 { theDescription = aDescription; }
40 Handle(TCollection_HAsciiString) StepRepr_ItemDefinedTransformation::Description () const
41 { return theDescription; }
43 void StepRepr_ItemDefinedTransformation::SetTransformItem1 (const Handle(StepRepr_RepresentationItem)& aTransformItem1)
44 { theTransformItem1 = aTransformItem1; }
46 Handle(StepRepr_RepresentationItem) StepRepr_ItemDefinedTransformation::TransformItem1 () const
47 { return theTransformItem1; }
49 void StepRepr_ItemDefinedTransformation::SetTransformItem2 (const Handle(StepRepr_RepresentationItem)& aTransformItem2)
50 { theTransformItem2 = aTransformItem2; }
52 Handle(StepRepr_RepresentationItem) StepRepr_ItemDefinedTransformation::TransformItem2 () const
53 { return theTransformItem2; }