Quaternion Class Reference

The Qaternion class. More...

#include <RobotAPI/libraries/aron/core/type/variant/ndarray/Quaternion.h>

+ Inheritance diagram for Quaternion:

Public Member Functions

type::quaternion::ElementType getElementType () const
 
virtual std::string getFullName () const override
 get the full name of this specific type More...
 
virtual std::string getShortName () const override
 get a short name of this specific type More...
 
 Quaternion (const Path &path=Path())
 
 Quaternion (const type::dto::Quaternion &, const Path &path)
 
void setElementType (type::quaternion::ElementType)
 
type::dto::QuaternionPtr toQuaternionDTO () const
 
- Public Member Functions inherited from NDArrayVariant< type::dto::Quaternion, Quaternion >
size_t childrenSize () const override
 
std::vector< VariantPtrgetChildren () const override
 get all child elements More...
 
std::string getDefaultValue () const
 
VariantPtr navigateAbsolute (const Path &path) const override
 naviate absolute More...
 
void setDefaultValue (const std::string &v)
 
virtual ~NDArrayVariant ()=default
 
- Public Member Functions inherited from SpecializedVariantBase< type::dto::Quaternion, Quaternion >
type::Maybe getMaybe () const override
 get the maybe type More...
 
VariantPtr navigateRelative (const Path &path) const override
 navigate relative More...
 
 operator type::dto::Quaternion ()
 
bool operator== (const Quaternion &other) const
 
bool operator== (const Variant &other) const override
 
void setMaybe (const type::Maybe m) override
 set the maybetype of this type More...
 
 SpecializedVariantBase (const type::Descriptor &descriptor, const Path &path)
 
 SpecializedVariantBase (const type::dto::Quaternion &o, const type::Descriptor &descriptor, const Path &path)
 
type::dto::GenericTypePtr toAronDTO () const override
 convert this variant to a dto object. More...
 
virtual ~SpecializedVariantBase ()=default
 
- Public Member Functions inherited from Variant
virtual size_t childrenSize () const =0
 
virtual std::vector< VariantPtrgetChildren () const =0
 get all child elements More...
 
type::Descriptor getDescriptor () const
 
virtual type::Maybe getMaybe () const =0
 get the maybe type More...
 
Path getPath () const
 
bool operator== (const VariantPtr &other) const
 
std::string pathToString () const
 
virtual type::dto::GenericTypePtr toAronDTO () const =0
 convert this variant to a dto object. More...
 
 Variant (const type::Descriptor &descriptor, const Path &path=Path())
 
virtual ~Variant ()=default
 

Static Public Attributes

static const std::map< quaternion::ElementType, std::string > Elementtype2String
 
static const std::map< std::string, quaternion::ElementType > String2Elementtype
 

Additional Inherited Members

- Public Types inherited from Variant
using PointerType = VariantPtr
 
- Static Public Member Functions inherited from SpecializedVariantBase< type::dto::Quaternion, Quaternion >
static const QuaternionDynamicCast (const Variant &n)
 
static std::shared_ptr< QuaternionDynamicCast (const VariantPtr &n)
 
static QuaternionDynamicCast (Variant &n)
 
static std::shared_ptr< QuaternionDynamicCastAndCheck (const VariantPtr &n)
 
- Static Public Member Functions inherited from Variant
static VariantPtr FromAronDTO (const type::dto::GenericType &, const Path &=Path())
 create a variant object from an dto object More...
 
- Protected Attributes inherited from SpecializedVariantBase< type::dto::Quaternion, Quaternion >
type::dto::Quaternion ::PointerType aron
 
- Protected Attributes inherited from Variant
const type::Descriptor descriptor
 
const Path path
 

Detailed Description

The Qaternion class.

It represents the quaternion type A Quaternion has dimension 1x4 and a varying type

Definition at line 39 of file Quaternion.h.

Constructor & Destructor Documentation

◆ Quaternion() [1/2]

Quaternion ( const Path path = Path())

Definition at line 38 of file Quaternion.cpp.

◆ Quaternion() [2/2]

Quaternion ( const type::dto::Quaternion &  o,
const Path path 
)

Definition at line 44 of file Quaternion.cpp.

Member Function Documentation

◆ getElementType()

type::quaternion::ElementType getElementType ( ) const

Definition at line 58 of file Quaternion.cpp.

+ Here is the caller graph for this function:

◆ getFullName()

std::string getFullName ( ) const
overridevirtual

get the full name of this specific type

Implements Variant.

Definition at line 77 of file Quaternion.cpp.

◆ getShortName()

std::string getShortName ( ) const
overridevirtual

get a short name of this specific type

Implements Variant.

Definition at line 71 of file Quaternion.cpp.

◆ setElementType()

void setElementType ( type::quaternion::ElementType  t)

Definition at line 64 of file Quaternion.cpp.

◆ toQuaternionDTO()

type::dto::QuaternionPtr toQuaternionDTO ( ) const

Definition at line 52 of file Quaternion.cpp.

Member Data Documentation

◆ Elementtype2String

const std::map< quaternion::ElementType, std::string > Elementtype2String
static
Initial value:
= {
{quaternion::ElementType::FLOAT32, "FLOAT32"},
{quaternion::ElementType::FLOAT64, "FLOAT64"}}

Definition at line 56 of file Quaternion.h.

◆ String2Elementtype

const std::map< std::string, quaternion::ElementType > String2Elementtype
static
Initial value:

Definition at line 57 of file Quaternion.h.


The documentation for this class was generated from the following files:
armarx::aron::type::Quaternion::Elementtype2String
static const std::map< quaternion::ElementType, std::string > Elementtype2String
Definition: Quaternion.h:56
armarx::aron::conversion::util::InvertMap
std::map< T2, T1 > InvertMap(const std::map< T1, T2 > &m)
Definition: Descriptor.h:42