AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Namespaces | |
internal | |
Classes | |
struct | TransformableGeometryProperties |
class | Geometry |
class | GeometryOperator |
class | MatrixOperator |
class | CompositeOperator |
class | Translation |
class | Rotation |
class | Scale |
class | UnitConverter |
class | SliceOperator |
class | GeometryOperatorVisitor |
class | KleeError |
class | Shape |
class | ShapeSet |
Enumerations | |
enum class | Dimensions : int { Two = 2 , Three = 3 } |
enum class | LengthUnit { km , m , dm , cm , mm , um , nm , angstrom , miles , feet , inches , mils , unspecified } |
Functions | |
bool | operator== (const TransformableGeometryProperties &lhs, const TransformableGeometryProperties &rhs) |
bool | operator!= (const TransformableGeometryProperties &lhs, const TransformableGeometryProperties &rhs) |
ShapeSet | readShapeSet (std::istream &stream) |
ShapeSet | readShapeSet (const std::string &filePath) |
LengthUnit | parseLengthUnits (const std::string &unitsAsString, const std::string &path) |
LengthUnit | parseLengthUnits (const inlet::Proxy &unitsAsProxy) |
double | getConversionFactor (LengthUnit sourceUnits, LengthUnit targetUnits) |
double | convert (double sourceValue, LengthUnit sourceUnits, LengthUnit targetUnits) |
template<typename T > | |
void | convertAll (T &values, LengthUnit sourceUnits, LengthUnit targetUnits) |
|
strong |
|
strong |
bool axom::klee::operator== | ( | const TransformableGeometryProperties & | lhs, |
const TransformableGeometryProperties & | rhs | ||
) |
Compare transformable properties for equality.
lhs | the left-hand-side operand |
rhs | the right-hand-side operand |
|
inline |
Compare transformable properties for inequality.
lhs | the left-hand-side operand |
rhs | the right-hand-side operand |
ShapeSet axom::klee::readShapeSet | ( | std::istream & | stream | ) |
ShapeSet axom::klee::readShapeSet | ( | const std::string & | filePath | ) |
LengthUnit axom::klee::parseLengthUnits | ( | const std::string & | unitsAsString, |
const std::string & | path | ||
) |
LengthUnit axom::klee::parseLengthUnits | ( | const inlet::Proxy & | unitsAsProxy | ) |
Convert a proxy to a LengthUnit.
unitsAsProxy | the units as a proxy |
KleeError | if the string does not represent known units |
double axom::klee::getConversionFactor | ( | LengthUnit | sourceUnits, |
LengthUnit | targetUnits | ||
) |
Get the conversion factor to convert from the given source units to the target units.
sourceUnits | the original units |
targetUnits | the units to convert to |
double axom::klee::convert | ( | double | sourceValue, |
LengthUnit | sourceUnits, | ||
LengthUnit | targetUnits | ||
) |
Convert a value from one set of units to another.
sourceValue | the value of the length in the original units |
sourceUnits | the original units |
targetUnits | the units to convert to |
void axom::klee::convertAll | ( | T & | values, |
LengthUnit | sourceUnits, | ||
LengthUnit | targetUnits | ||
) |
Convert multiple lengths in place.
T | the type containing the units. Must be iterable. |
values | the value of the length in the original units |
sourceUnits | the original units |
targetUnits | the units to convert to |
References getConversionFactor().