OSG::VecStorage2< ValueTypeT > Class Template Reference

#include <OSGVector.h>

List of all members.


Public Member Functions

Constructor


 VecStorage2 (void)
Destructor


 ~VecStorage2 (void)
Access


void setValues (const ValueTypeT rVal1, const ValueTypeT rVal2)
void getSeparateValues (ValueTypeT &rVal1, ValueTypeT &rVal2) const
ValueTypeT x (void) const
ValueTypeT y (void) const

Static Public Attributes

static const UInt32 _uiSize = 2
 Storage size.

Protected Attributes

ValueTypeT _values [_uiSize]
 Value store.

Private Member Functions

 VecStorage2 (const VecStorage2 &source)
 prohibit default function (move to 'public' if needed)
void operator= (const VecStorage2 &source)
 prohibit default function (move to 'public' if needed)

Detailed Description

template<class ValueTypeT>
class OSG::VecStorage2< ValueTypeT >

Vector storage holding 2 elements, for details about how vectors, points and matrices are actually build see BaseMath.

Definition at line 133 of file OSGVector.h.


Constructor & Destructor Documentation

template<class ValueTypeT>
OSG::VecStorage2< ValueTypeT >::VecStorage2 ( void   )  [inline]

Definition at line 116 of file OSGVector.inl.

References OSG::VecStorage2< ValueTypeT >::_uiSize, and OSG::VecStorage2< ValueTypeT >::_values.

00117 {
00118     for(UInt32 i = 0; i < _uiSize; i++)
00119     {
00120         _values[i] = TypeTraits<ValueTypeT>::getZeroElement();
00121     }
00122 }

template<class ValueTypeT>
OSG::VecStorage2< ValueTypeT >::~VecStorage2 ( void   )  [inline]

Definition at line 126 of file OSGVector.inl.

00127 {
00128 }

template<class ValueTypeT>
OSG::VecStorage2< ValueTypeT >::VecStorage2 ( const VecStorage2< ValueTypeT > &  source  )  [private]


Member Function Documentation

template<class ValueTypeT>
void OSG::VecStorage2< ValueTypeT >::setValues ( const ValueTypeT  rVal1,
const ValueTypeT  rVal2 
) [inline]

Definition at line 132 of file OSGVector.inl.

References OSG::VecStorage2< ValueTypeT >::_values.

00134 {
00135     _values[0] = rVal1;
00136     _values[1] = rVal2;
00137 }

template<class ValueTypeT>
void OSG::VecStorage2< ValueTypeT >::getSeparateValues ( ValueTypeT &  rVal1,
ValueTypeT &  rVal2 
) const [inline]

Definition at line 141 of file OSGVector.inl.

References OSG::VecStorage2< ValueTypeT >::_values.

00143 {
00144     rVal1 = _values[0];
00145     rVal2 = _values[1];
00146 }

template<class ValueTypeT>
ValueTypeT OSG::VecStorage2< ValueTypeT >::x ( void   )  const [inline]

Definition at line 150 of file OSGVector.inl.

References OSG::VecStorage2< ValueTypeT >::_values.

00151 {
00152     return _values[0];
00153 }

template<class ValueTypeT>
ValueTypeT OSG::VecStorage2< ValueTypeT >::y ( void   )  const [inline]

Definition at line 157 of file OSGVector.inl.

References OSG::VecStorage2< ValueTypeT >::_values.

00158 {
00159     return _values[1];
00160 }

template<class ValueTypeT>
void OSG::VecStorage2< ValueTypeT >::operator= ( const VecStorage2< ValueTypeT > &  source  )  [private]


Member Data Documentation

template<class ValueTypeT>
VecStorage2::VectorSizeE OSG::VecStorage2< ValueTypeT >::_uiSize = 2 [static]

Definition at line 139 of file OSGVector.h.

Referenced by OSG::VecStorage2< ValueTypeT >::VecStorage2().

template<class ValueTypeT>
ValueTypeT OSG::VecStorage2< ValueTypeT >::_values[iSize] [protected]


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