22 #ifndef _vctFrame4x4Base_h
23 #define _vctFrame4x4Base_h
47 template<
class _containerType>
90 return this->TranslationRef;
94 return this->RotationRef;
98 return this->PerspectiveRef;
102 return this->TranslationRef;
106 return this->RotationRef;
110 return this->PerspectiveRef;
120 template <
class __rotationType,
class __translationType>
122 const __translationType & translation)
123 throw (std::runtime_error)
125 this->RotationRef.
From(rotation);
126 this->TranslationRef.Assign(translation);
127 this->PerspectiveRef.SetAll(static_cast<value_type>(0.0));
132 template <
class __rotationType,
class __translationType>
134 const __translationType & translation)
137 this->TranslationRef.Assign(translation);
138 this->PerspectiveRef.SetAll(static_cast<value_type>(0.0));
143 template <
class __rotationType,
class __translationType>
145 const __translationType & translation)
147 this->RotationRef.
FromRaw(rotation);
148 this->TranslationRef.Assign(translation);
149 this->PerspectiveRef.SetAll(static_cast<value_type>(0.0));
163 template <
class __rotationType>
165 throw (std::runtime_error)
167 this->
From(frame.Rotation(), frame.Translation());
171 template <
class __rotationType>
178 template <
class __rotationType>
194 this->PerspectiveRef.SetAll(static_cast<value_type>(0.0));
206 temp.
Assign(this->TranslationRef);
208 this->RotationRef.
ApplyTo(temp, this->TranslationRef);
213 template <
class __containerType>
215 this->TranslationRef.Assign(otherFrame.
Translation());
216 this->RotationRef.Assign(otherFrame.
Rotation());
224 #endif // _vctFrame4x4Base_h
Template base class for a 4x4 frame.
Definition: vctForwardDeclarations.h:234
A template for a fixed size matrix with fixed spacing in memory.
Definition: vctFixedSizeConstMatrixBase.h:103
ThisType & FromNormalized(const __rotationType &rotation, const __translationType &translation)
Definition: vctFrame4x4Base.h:133
ThisType & InverseSelf(void)
Definition: vctFrame4x4Base.h:201
vctFrame4x4ConstBase< ContainerType > BaseType
Definition: vctFrame4x4Base.h:55
ThisType & From(const __rotationType &rotation, const __translationType &translation)
Definition: vctFrame4x4Base.h:121
ThisType & From(const vctFrameBase< __rotationType > &frame)
Definition: vctFrame4x4Base.h:164
An implementation of the ``abstract'' vctFixedSizeVectorBase.
Definition: vctFixedSizeVectorRef.h:46
BaseType::ConstRefTransposeType ConstRefTransposeType
Definition: vctFrame4x4Base.h:68
BaseType::ConstRotationRefType ConstRotationRefType
Definition: vctFrame4x4Base.h:76
BaseType::ConstTranslationRefType ConstTranslationRefType
Definition: vctFrame4x4Base.h:72
cmnTypeTraits< value_type > TypeTraits
Definition: vctFrame4x4Base.h:78
An implementation of the ``abstract'' vctFixedSizeConstVectorBase.
Definition: vctFixedSizeConstVectorRef.h:50
ThisType & FromNormalized(const vctFrameBase< __rotationType > &frame)
Definition: vctFrame4x4Base.h:172
BaseType::ConstDiagonalRefType ConstDiagonalRefType
Definition: vctFrame4x4Base.h:66
BaseType::ConstRowRefType ConstRowRefType
Definition: vctFrame4x4Base.h:63
BaseType::ColumnRefType ColumnRefType
Definition: vctFrame4x4Base.h:62
Template base class for a 4x4 frame.
Definition: vctForwardDeclarations.h:235
ThisType & Assign(const vctFixedSizeConstVectorBase< _size, __stride, __elementType, __dataPtrType > &other)
Definition: vctFixedSizeVectorBase.h:274
Definition: vctFrame4x4Base.h:52
_containerType ContainerType
Definition: vctFrame4x4Base.h:54
ThisType & FromRaw(const vctFrameBase< __rotationType > &frame)
Definition: vctFrame4x4Base.h:179
Declaration of vctFrame4x4Base.
A template for a fixed size matrix with fixed spacings in memory.
Definition: vctFixedSizeMatrixBase.h:58
Definition: vctFrame4x4Base.h:53
ThisType & InverseOf(const vctFrame4x4ConstBase< __containerType > &otherFrame)
Definition: vctFrame4x4Base.h:214
ConstPerspectiveRefType Perspective(void) const
Definition: vctFrame4x4Base.h:97
RotationRefType Rotation(void)
Definition: vctFrame4x4Base.h:105
BaseType::PerspectiveRefType PerspectiveRefType
Definition: vctFrame4x4Base.h:73
An implementation of the ``abstract'' vctFixedSizeMatrixBase.
Definition: vctFixedSizeMatrixRef.h:46
ConstTranslationRefType Translation(void) const
Definition: vctFrame4x4Base.h:89
const TranslationType & Translation(void) const
Definition: vctFrameBase.h:188
BaseType::RefTransposeType RefTransposeType
Definition: vctFrame4x4Base.h:67
ConstRotationRefType Rotation(void) const
Definition: vctFrame4x4Base.h:93
PerspectiveRefType Perspective(void)
Definition: vctFrame4x4Base.h:109
ConstRotationRefType Rotation(void) const
Definition: vctFrame4x4ConstBase.h:124
BaseType::DiagonalRefType DiagonalRefType
Definition: vctFrame4x4Base.h:65
BaseType::TranslationRefType TranslationRefType
Definition: vctFrame4x4Base.h:71
BaseType::RowRefType RowRefType
Definition: vctFrame4x4Base.h:61
BaseType::RotationRefType RotationRefType
Definition: vctFrame4x4Base.h:75
BaseType::MatrixValueType MatrixValueType
Definition: vctFrame4x4Base.h:69
ThisType & NegationSelf(void)
Definition: vctFixedSizeVectorBase.h:1339
void ApplyTo(const vctFixedSizeConstVectorBase< DIMENSION, __stride1, value_type, __dataPtrType1 > &input, vctFixedSizeVectorBase< DIMENSION, __stride2, value_type, __dataPtrType2 > &output) const
Definition: vctFrame4x4ConstBase.h:161
ThisType & NormalizedSelf(void)
Definition: vctFrame4x4Base.h:192
vctFrame4x4Base< ContainerType > ThisType
Definition: vctFrame4x4Base.h:56
BaseType::ConstPerspectiveRefType ConstPerspectiveRefType
Definition: vctFrame4x4Base.h:74
An implementation of the ``abstract'' vctFixedSizeConstMatrixBase.
Definition: vctFixedSizeConstMatrixRef.h:50
TranslationRefType Translation(void)
Definition: vctFrame4x4Base.h:101
Template base class for a frame.
Definition: vctForwardDeclarations.h:232
ConstTranslationRefType Translation(void) const
Definition: vctFrame4x4ConstBase.h:120
Macros to export the symbols of cisstVector (in a Dll).
A collection of useful information about the C++ basic types, represented in a generic programming wa...
Definition: cmnTypeTraits.h:155
BaseType::ConstColumnRefType ConstColumnRefType
Definition: vctFrame4x4Base.h:64
VCT_CONTAINER_TRAITS_TYPEDEFS(typename ContainerType::value_type)
Definition: vctFrame4x4Base.h:52
const RotationType & Rotation(void) const
Definition: vctFrameBase.h:196
ThisType & FromRaw(const __rotationType &rotation, const __translationType &translation)
Definition: vctFrame4x4Base.h:144
vctFrame4x4Base(void)
Definition: vctFrame4x4Base.h:84