Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions
Quantity_Convert Class Reference

Services to manage units conversion between Front-ends and Engines.
This conversion is managed by a table of correspondance between the quantities
and their "conversion coefficient".
This table is implemented like an external array (TCollection_Array1) regarding
to the quantities enumeration.
More...

#include <Quantity_Convert.hxx>

Public Member Functions

 Quantity_Convert ()
 Creates an object;
More...
 

Static Public Member Functions

static void SetQuantity (const Quantity_PhysicalQuantity aQuantity, const Quantity_Coefficient aCoef)
 
 Updates the conversion table (correspondances between <br>

Quantities and conversion coefficients).
More...

 
static Standard_Real ConvertUserToSI (const Quantity_PhysicalQuantity aQuantity, const Standard_Real aVal)
 
 Converts, from the conversion table, the value <aVal> <br>

from the user system to the SI system.
More...

 
static Standard_Real ConvertSIToUser (const Quantity_PhysicalQuantity aQuantity, const Standard_Real aVal)
 
 Converts, from the conversion table, the value <aVal> <br>

from the SI system to the user system.
More...

 
static Standard_Boolean IsPhysicalQuantity (const TCollection_AsciiString &aTypeName, TCollection_AsciiString &anEnum)
 if (aType is a physical quantity)
returns True and the name of the associated PhysicalQuantity .
else
returns False.
More...
 

Detailed Description

Services to manage units conversion between Front-ends and Engines.
This conversion is managed by a table of correspondance between the quantities
and their "conversion coefficient".
This table is implemented like an external array (TCollection_Array1) regarding
to the quantities enumeration.

Constructor & Destructor Documentation

Quantity_Convert::Quantity_Convert ( )

Creates an object;

Member Function Documentation

static Standard_Real Quantity_Convert::ConvertSIToUser ( const Quantity_PhysicalQuantity  aQuantity,
const Standard_Real  aVal 
)
static

 Converts, from the conversion table, the value <aVal> <br>

from the SI system to the user system.

static Standard_Real Quantity_Convert::ConvertUserToSI ( const Quantity_PhysicalQuantity  aQuantity,
const Standard_Real  aVal 
)
static

 Converts, from the conversion table, the value <aVal> <br>

from the user system to the SI system.

static Standard_Boolean Quantity_Convert::IsPhysicalQuantity ( const TCollection_AsciiString aTypeName,
TCollection_AsciiString anEnum 
)
static

if (aType is a physical quantity)
returns True and the name of the associated PhysicalQuantity .
else
returns False.

static void Quantity_Convert::SetQuantity ( const Quantity_PhysicalQuantity  aQuantity,
const Quantity_Coefficient  aCoef 
)
static

 Updates the conversion table (correspondances between <br>

Quantities and conversion coefficients).


The documentation for this class was generated from the following file: