0030675: Visualization - remove redundant proxy classes in hierarchy of PrsMgr_Presen...
[occt.git] / src / StepShape / StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem.cxx
CommitLineData
973c2be1 1// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 2//
973c2be1 3// This file is part of Open CASCADE Technology software library.
b311480e 4//
d5f74e42 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
973c2be1 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.
b311480e 10//
973c2be1 11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
b311480e 13
42cf5bc1 14
15#include <Standard_Type.hxx>
16#include <StepBasic_MeasureValueMember.hxx>
17#include <StepBasic_MeasureWithUnit.hxx>
18#include <StepBasic_Unit.hxx>
19#include <StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem.hxx>
20#include <StepShape_ValueQualifier.hxx>
21#include <TCollection_HAsciiString.hxx>
7fd59977 22
92efcf78 23IMPLEMENT_STANDARD_RTTIEXT(StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem,StepRepr_RepresentationItem)
24
7fd59977 25StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem::StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem ()
26{
27 myMeasure = new StepBasic_MeasureWithUnit;
28}
29
30void StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem::Init
31 (const Handle(TCollection_HAsciiString)& aName,
32 const Handle(StepBasic_MeasureValueMember)& aValueComponent,
33 const StepBasic_Unit& aUnitComponent,
34 const Handle(StepShape_HArray1OfValueQualifier)& qualifiers)
35{
36 StepRepr_RepresentationItem::Init (aName);
37 myMeasure->Init ( aValueComponent, aUnitComponent );
38 theQualifiers = qualifiers;
39}
40
41
42void StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem::SetMeasure (const Handle(StepBasic_MeasureWithUnit)& Measure)
43{ myMeasure = Measure; }
44
45Handle(StepBasic_MeasureWithUnit) StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem::Measure () const
46{ return myMeasure; }
47
48
49
50Handle(StepShape_HArray1OfValueQualifier) StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem::Qualifiers () const
51{ return theQualifiers; }
52
53Standard_Integer StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem::NbQualifiers () const
54{ return theQualifiers->Length(); }
55
56void StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem::SetQualifiers
57 (const Handle(StepShape_HArray1OfValueQualifier)& qualifiers)
58{ theQualifiers = qualifiers; }
59
60StepShape_ValueQualifier StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem::QualifiersValue
61 (const Standard_Integer num) const
62{ return theQualifiers->Value(num); }
63
64void StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem::SetQualifiersValue
65 (const Standard_Integer num, const StepShape_ValueQualifier& aqualifier)
66{ theQualifiers->SetValue (num,aqualifier); }