osg::VecStorage4< ValueTypeT > Class Template Reference
[Objects]

#include <OSGVector.h>

List of all members.

Public Member Functions

Constructor



 VecStorage4 (void)
Destructor



 ~VecStorage4 (void)
Access



void setValues (const ValueTypeT rVal1, const ValueTypeT rVal2, const ValueTypeT rVal3, const ValueTypeT rVal4)
void getSeparateValues (ValueTypeT &rVal1, ValueTypeT &rVal2, ValueTypeT &rVal3, ValueTypeT &rVal4) const
ValueTypeT x (void) const
ValueTypeT y (void) const
ValueTypeT z (void) const
ValueTypeT w (void) const

Static Public Attributes

static const UInt32 _iSize = 4
 Storage size.

Protected Attributes

ValueTypeT _values [_iSize]
 Value store.

Private Member Functions

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

Detailed Description

template<class ValueTypeT>
class osg::VecStorage4< ValueTypeT >

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

Definition at line 208 of file OSGVector.h.


Constructor & Destructor Documentation

template<class ValueTypeT >
osg::VecStorage4< ValueTypeT >::VecStorage4 ( void   )  [inline]

Definition at line 209 of file OSGVector.inl.

References osg::VecStorage4< ValueTypeT >::_iSize, and osg::VecStorage4< ValueTypeT >::_values.

00210 {
00211     for(UInt32 i = 0; i < _iSize; i++)
00212     {
00213         _values[i] = TypeTraits<ValueTypeT>::getZeroElement();
00214     }
00215 }

template<class ValueTypeT >
osg::VecStorage4< ValueTypeT >::~VecStorage4 ( void   )  [inline]

Definition at line 219 of file OSGVector.inl.

00220 {
00221 }

template<class ValueTypeT >
osg::VecStorage4< ValueTypeT >::VecStorage4 ( const VecStorage4< ValueTypeT > &  source  )  [private]

Member Function Documentation

template<class ValueTypeT >
void osg::VecStorage4< ValueTypeT >::setValues ( const ValueTypeT  rVal1,
const ValueTypeT  rVal2,
const ValueTypeT  rVal3,
const ValueTypeT  rVal4 
) [inline]

Definition at line 225 of file OSGVector.inl.

References osg::VecStorage4< ValueTypeT >::_values.

00229 {
00230     _values[0] = rVal1;
00231     _values[1] = rVal2;
00232     _values[2] = rVal3;
00233     _values[3] = rVal4;
00234 }

template<class ValueTypeT >
void osg::VecStorage4< ValueTypeT >::getSeparateValues ( ValueTypeT &  rVal1,
ValueTypeT &  rVal2,
ValueTypeT &  rVal3,
ValueTypeT &  rVal4 
) const [inline]

Definition at line 238 of file OSGVector.inl.

References osg::VecStorage4< ValueTypeT >::_values.

00242 {
00243     rVal1 = _values[0];
00244     rVal2 = _values[1];
00245     rVal3 = _values[2];
00246     rVal4 = _values[3];
00247 }

template<class ValueTypeT >
ValueTypeT osg::VecStorage4< ValueTypeT >::x ( void   )  const [inline]

Definition at line 251 of file OSGVector.inl.

References osg::VecStorage4< ValueTypeT >::_values.

00252 {
00253     return _values[0];
00254 }

template<class ValueTypeT >
ValueTypeT osg::VecStorage4< ValueTypeT >::y ( void   )  const [inline]

Definition at line 258 of file OSGVector.inl.

References osg::VecStorage4< ValueTypeT >::_values.

00259 {
00260     return _values[1];
00261 }

template<class ValueTypeT >
ValueTypeT osg::VecStorage4< ValueTypeT >::z ( void   )  const [inline]

Definition at line 265 of file OSGVector.inl.

References osg::VecStorage4< ValueTypeT >::_values.

00266 {
00267     return _values[2];
00268 }

template<class ValueTypeT >
ValueTypeT osg::VecStorage4< ValueTypeT >::w ( void   )  const [inline]

Definition at line 272 of file OSGVector.inl.

References osg::VecStorage4< ValueTypeT >::_values.

00273 {
00274     return _values[3];
00275 }

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

Member Data Documentation

template<class ValueTypeT >
VecStorage4::VectorSizeE osg::VecStorage4< ValueTypeT >::_iSize = 4 [static]

Definition at line 214 of file OSGVector.h.

Referenced by osg::VecStorage4< ValueTypeT >::VecStorage4().

template<class ValueTypeT >
ValueTypeT osg::VecStorage4< ValueTypeT >::_values[iSize] [protected]

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

Generated on 8 Feb 2010 for OpenSG by  doxygen 1.6.1