1 // Created on: 2015-07-22
2 // Created by: Irina KRYLOVA
3 // Copyright (c) 2015 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 under
8 // the terms of the GNU Lesser General Public License 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.
17 #include <Standard_Type.hxx>
18 #include <StepBasic_MeasureWithUnit.hxx>
19 #include <StepRepr_MeasureRepresentationItem.hxx>
20 #include <StepRepr_RepresentationItem.hxx>
21 #include <StepRepr_ReprItemAndMeasureWithUnit.hxx>
23 IMPLEMENT_STANDARD_RTTIEXT(StepRepr_ReprItemAndMeasureWithUnit,StepRepr_RepresentationItem)
25 //=======================================================================
26 //function : StepRepr_ReprItemAndMeasureWithUnit
28 //=======================================================================
29 StepRepr_ReprItemAndMeasureWithUnit::StepRepr_ReprItemAndMeasureWithUnit()
31 myMeasureWithUnit = new StepBasic_MeasureWithUnit();
32 myMeasureRepresentationItem = new StepRepr_MeasureRepresentationItem();
36 //=======================================================================
39 //=======================================================================
41 void StepRepr_ReprItemAndMeasureWithUnit::Init
42 (const Handle(StepBasic_MeasureWithUnit)& aMWU,
43 const Handle(StepRepr_RepresentationItem)& aRI)
45 myMeasureWithUnit = aMWU;
49 //=======================================================================
50 //function : GetMeasureRepresentationItem
52 //=======================================================================
54 Handle(StepRepr_MeasureRepresentationItem) StepRepr_ReprItemAndMeasureWithUnit::
55 GetMeasureRepresentationItem() const
57 return myMeasureRepresentationItem;
61 //=======================================================================
62 //function : SetMeasureWithUnit
64 //=======================================================================
66 void StepRepr_ReprItemAndMeasureWithUnit::SetMeasureWithUnit
67 (const Handle(StepBasic_MeasureWithUnit)& aMWU)
69 myMeasureWithUnit = aMWU;
73 //=======================================================================
74 //function : GetMeasureWithUnit
76 //=======================================================================
78 Handle(StepBasic_MeasureWithUnit) StepRepr_ReprItemAndMeasureWithUnit::
79 GetMeasureWithUnit() const
81 return myMeasureWithUnit;
85 //=======================================================================
86 //function : GetRepresentationItem
88 //=======================================================================
90 Handle(StepRepr_RepresentationItem) StepRepr_ReprItemAndMeasureWithUnit::
91 GetRepresentationItem() const
93 Handle(StepRepr_RepresentationItem) RI = new StepRepr_RepresentationItem();