summaryrefslogtreecommitdiff
path: root/inc/Units_Dimensions.hxx
blob: 34ef494800774272bcc9dc4f86327459e4c99eb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _Units_Dimensions_HeaderFile
#define _Units_Dimensions_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_Units_Dimensions_HeaderFile
#include <Handle_Units_Dimensions.hxx>
#endif

#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif


//! This class includes all  the methods to create and <br>
//!          manipulate    the   dimensions  of the    physical <br>
//!          quantities. <br>
class Units_Dimensions : public MMgt_TShared {

public:

  //! Returns  a  Dimensions  object  which  represents  the <br>
//!          dimension  of  a  physical  quantity.    Each  of  the <br>
//!          <amass>,  <alength>,   <atime>,   <anelectriccurrent>, <br>
//!          <athermodynamictemperature>,    <anamountofsubstance>, <br>
//!          <aluminousintensity>, <aplaneangle>, <asolidangle> are <br>
//!          the powers for  the 7  fundamental  units of  physical <br>
//!          quantity and  the 2  secondary  fundamental  units  of <br>
//!          physical quantity. <br>
  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);
  //! Returns the power of mass stored in the dimensions. <br>
        Standard_Real Mass() const;
  //! Returns the power of length stored in the dimensions. <br>
        Standard_Real Length() const;
  //! Returns the power of time stored in the dimensions. <br>
        Standard_Real Time() const;
  //! Returns the  power of  electrical  intensity (current) <br>
//!          stored in the dimensions. <br>
        Standard_Real ElectricCurrent() const;
  //! Returns  the  power  of   temperature stored  in   the <br>
//!          dimensions. <br>
        Standard_Real ThermodynamicTemperature() const;
  //! Returns  the power   of quantity   of  material (mole) <br>
//!          stored in the dimensions. <br>
        Standard_Real AmountOfSubstance() const;
  //! Returns the  power of light   intensity stored  in the <br>
//!          dimensions. <br>
        Standard_Real LuminousIntensity() const;
  //! Returns  the power   of plane   angle  stored  in  the <br>
//!          dimensions. <br>
        Standard_Real PlaneAngle() const;
  //! Returns the   power   of  solid angle stored   in  the <br>
//!          dimensions. <br>
        Standard_Real SolidAngle() const;
  //! Returns the quantity string of the dimension <br>
  Standard_EXPORT     Standard_CString Quantity() const;
  //! Creates and returns  a new Dimensions  object which is <br>
//!          the   result   of the  multiplication    of  <me>  and <br>
//!          <adimensions>. <br>
  Standard_EXPORT     Handle_Units_Dimensions Multiply(const Handle(Units_Dimensions)& adimensions) const;
  //! Creates and returns a new  Dimensions object which  is <br>
//!          the result of the division of <me> by <adimensions>. <br>
  Standard_EXPORT     Handle_Units_Dimensions Divide(const Handle(Units_Dimensions)& adimensions) const;
  //! Creates  and returns a new  Dimensions object which is <br>
//!          the result of the power of <me> and <anexponent>. <br>
  Standard_EXPORT     Handle_Units_Dimensions Power(const Standard_Real anexponent) const;
  //! Returns true if  <me>  and <adimensions> have the same <br>
//!          dimensions, false otherwise. <br>
  Standard_EXPORT     Standard_Boolean IsEqual(const Handle(Units_Dimensions)& adimensions) const;
  //! Returns false if <me> and  <adimensions> have the same <br>
//!          dimensions, true otherwise. <br>
  Standard_EXPORT     Standard_Boolean IsNotEqual(const Handle(Units_Dimensions)& adimensions) const;
  //! Useful for degugging. <br>
  Standard_EXPORT     void Dump(const Standard_Integer ashift) const;
  
  Standard_EXPORT   static  Handle_Units_Dimensions ALess() ;
  
  Standard_EXPORT   static  Handle_Units_Dimensions AMass() ;
  
  Standard_EXPORT   static  Handle_Units_Dimensions ALength() ;
  
  Standard_EXPORT   static  Handle_Units_Dimensions ATime() ;
  
  Standard_EXPORT   static  Handle_Units_Dimensions AElectricCurrent() ;
  
  Standard_EXPORT   static  Handle_Units_Dimensions AThermodynamicTemperature() ;
  
  Standard_EXPORT   static  Handle_Units_Dimensions AAmountOfSubstance() ;
  
  Standard_EXPORT   static  Handle_Units_Dimensions ALuminousIntensity() ;
  
  Standard_EXPORT   static  Handle_Units_Dimensions APlaneAngle() ;
  //! Returns the basic dimensions. <br>
  Standard_EXPORT   static  Handle_Units_Dimensions ASolidAngle() ;




  DEFINE_STANDARD_RTTI(Units_Dimensions)

protected:




private: 


Standard_Real themass;
Standard_Real thelength;
Standard_Real thetime;
Standard_Real theelectriccurrent;
Standard_Real thethermodynamictemperature;
Standard_Real theamountofsubstance;
Standard_Real theluminousintensity;
Standard_Real theplaneangle;
Standard_Real thesolidangle;


};


#include <Units_Dimensions.lxx>



// other Inline functions and methods (like "C++: function call" methods)


#endif