File indexing completed on 2025-01-18 10:05:29
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Units_Dimensions_HeaderFile
0018 #define _Units_Dimensions_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <Standard_Transient.hxx>
0024 #include <Standard_Integer.hxx>
0025
0026
0027 class Units_Dimensions;
0028 DEFINE_STANDARD_HANDLE(Units_Dimensions, Standard_Transient)
0029
0030
0031
0032
0033 class Units_Dimensions : public Standard_Transient
0034 {
0035
0036 public:
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047 Standard_EXPORT Units_Dimensions(const Standard_Real amass, const Standard_Real alength, const Standard_Real atime, const Standard_Real anelectriccurrent, const Standard_Real athermodynamictemperature, const Standard_Real anamountofsubstance, const Standard_Real aluminousintensity, const Standard_Real aplaneangle, const Standard_Real asolidangle);
0048
0049
0050 Standard_Real Mass() const;
0051
0052
0053 Standard_Real Length() const;
0054
0055
0056 Standard_Real Time() const;
0057
0058
0059
0060 Standard_Real ElectricCurrent() const;
0061
0062
0063
0064 Standard_Real ThermodynamicTemperature() const;
0065
0066
0067
0068 Standard_Real AmountOfSubstance() const;
0069
0070
0071
0072 Standard_Real LuminousIntensity() const;
0073
0074
0075
0076 Standard_Real PlaneAngle() const;
0077
0078
0079
0080 Standard_Real SolidAngle() const;
0081
0082
0083 Standard_EXPORT Standard_CString Quantity() const;
0084
0085
0086
0087
0088 Standard_EXPORT Handle(Units_Dimensions) Multiply (const Handle(Units_Dimensions)& adimensions) const;
0089
0090
0091
0092 Standard_EXPORT Handle(Units_Dimensions) Divide (const Handle(Units_Dimensions)& adimensions) const;
0093
0094
0095
0096 Standard_EXPORT Handle(Units_Dimensions) Power (const Standard_Real anexponent) const;
0097
0098
0099
0100 Standard_EXPORT Standard_Boolean IsEqual (const Handle(Units_Dimensions)& adimensions) const;
0101
0102
0103
0104 Standard_EXPORT Standard_Boolean IsNotEqual (const Handle(Units_Dimensions)& adimensions) const;
0105
0106
0107 Standard_EXPORT void Dump (const Standard_Integer ashift) const;
0108
0109 Standard_EXPORT static Handle(Units_Dimensions) ALess();
0110
0111 Standard_EXPORT static Handle(Units_Dimensions) AMass();
0112
0113 Standard_EXPORT static Handle(Units_Dimensions) ALength();
0114
0115 Standard_EXPORT static Handle(Units_Dimensions) ATime();
0116
0117 Standard_EXPORT static Handle(Units_Dimensions) AElectricCurrent();
0118
0119 Standard_EXPORT static Handle(Units_Dimensions) AThermodynamicTemperature();
0120
0121 Standard_EXPORT static Handle(Units_Dimensions) AAmountOfSubstance();
0122
0123 Standard_EXPORT static Handle(Units_Dimensions) ALuminousIntensity();
0124
0125 Standard_EXPORT static Handle(Units_Dimensions) APlaneAngle();
0126
0127
0128 Standard_EXPORT static Handle(Units_Dimensions) ASolidAngle();
0129
0130
0131
0132
0133 DEFINE_STANDARD_RTTIEXT(Units_Dimensions,Standard_Transient)
0134
0135 protected:
0136
0137
0138
0139
0140 private:
0141
0142
0143 Standard_Real themass;
0144 Standard_Real thelength;
0145 Standard_Real thetime;
0146 Standard_Real theelectriccurrent;
0147 Standard_Real thethermodynamictemperature;
0148 Standard_Real theamountofsubstance;
0149 Standard_Real theluminousintensity;
0150 Standard_Real theplaneangle;
0151 Standard_Real thesolidangle;
0152
0153
0154 };
0155
0156
0157 #include <Units_Dimensions.lxx>
0158
0159
0160
0161
0162
0163 #endif