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 | |
7fd59977 |
14 | |
42cf5bc1 |
15 | #include <Standard_Type.hxx> |
16 | #include <StepBasic_DimensionalExponents.hxx> |
7fd59977 |
17 | |
92efcf78 |
18 | IMPLEMENT_STANDARD_RTTIEXT(StepBasic_DimensionalExponents,MMgt_TShared) |
19 | |
7fd59977 |
20 | StepBasic_DimensionalExponents::StepBasic_DimensionalExponents () {} |
21 | |
22 | void StepBasic_DimensionalExponents::Init( |
23 | const Standard_Real aLengthExponent, |
24 | const Standard_Real aMassExponent, |
25 | const Standard_Real aTimeExponent, |
26 | const Standard_Real aElectricCurrentExponent, |
27 | const Standard_Real aThermodynamicTemperatureExponent, |
28 | const Standard_Real aAmountOfSubstanceExponent, |
29 | const Standard_Real aLuminousIntensityExponent) |
30 | { |
31 | // --- classe own fields --- |
32 | lengthExponent = aLengthExponent; |
33 | massExponent = aMassExponent; |
34 | timeExponent = aTimeExponent; |
35 | electricCurrentExponent = aElectricCurrentExponent; |
36 | thermodynamicTemperatureExponent = aThermodynamicTemperatureExponent; |
37 | amountOfSubstanceExponent = aAmountOfSubstanceExponent; |
38 | luminousIntensityExponent = aLuminousIntensityExponent; |
39 | } |
40 | |
41 | |
42 | void StepBasic_DimensionalExponents::SetLengthExponent(const Standard_Real aLengthExponent) |
43 | { |
44 | lengthExponent = aLengthExponent; |
45 | } |
46 | |
47 | Standard_Real StepBasic_DimensionalExponents::LengthExponent() const |
48 | { |
49 | return lengthExponent; |
50 | } |
51 | |
52 | void StepBasic_DimensionalExponents::SetMassExponent(const Standard_Real aMassExponent) |
53 | { |
54 | massExponent = aMassExponent; |
55 | } |
56 | |
57 | Standard_Real StepBasic_DimensionalExponents::MassExponent() const |
58 | { |
59 | return massExponent; |
60 | } |
61 | |
62 | void StepBasic_DimensionalExponents::SetTimeExponent(const Standard_Real aTimeExponent) |
63 | { |
64 | timeExponent = aTimeExponent; |
65 | } |
66 | |
67 | Standard_Real StepBasic_DimensionalExponents::TimeExponent() const |
68 | { |
69 | return timeExponent; |
70 | } |
71 | |
72 | void StepBasic_DimensionalExponents::SetElectricCurrentExponent(const Standard_Real aElectricCurrentExponent) |
73 | { |
74 | electricCurrentExponent = aElectricCurrentExponent; |
75 | } |
76 | |
77 | Standard_Real StepBasic_DimensionalExponents::ElectricCurrentExponent() const |
78 | { |
79 | return electricCurrentExponent; |
80 | } |
81 | |
82 | void StepBasic_DimensionalExponents::SetThermodynamicTemperatureExponent(const Standard_Real aThermodynamicTemperatureExponent) |
83 | { |
84 | thermodynamicTemperatureExponent = aThermodynamicTemperatureExponent; |
85 | } |
86 | |
87 | Standard_Real StepBasic_DimensionalExponents::ThermodynamicTemperatureExponent() const |
88 | { |
89 | return thermodynamicTemperatureExponent; |
90 | } |
91 | |
92 | void StepBasic_DimensionalExponents::SetAmountOfSubstanceExponent(const Standard_Real aAmountOfSubstanceExponent) |
93 | { |
94 | amountOfSubstanceExponent = aAmountOfSubstanceExponent; |
95 | } |
96 | |
97 | Standard_Real StepBasic_DimensionalExponents::AmountOfSubstanceExponent() const |
98 | { |
99 | return amountOfSubstanceExponent; |
100 | } |
101 | |
102 | void StepBasic_DimensionalExponents::SetLuminousIntensityExponent(const Standard_Real aLuminousIntensityExponent) |
103 | { |
104 | luminousIntensityExponent = aLuminousIntensityExponent; |
105 | } |
106 | |
107 | Standard_Real StepBasic_DimensionalExponents::LuminousIntensityExponent() const |
108 | { |
109 | return luminousIntensityExponent; |
110 | } |