osg::VecStorage4< ValueTypeT > Class Template Reference

#include <OSGVector.h>

Inheritance diagram for osg::VecStorage4< ValueTypeT >:

osg::PointInterface< ValueTypeT, VecStorage4< ValueTypeT > > osg::VectorInterface< ValueTypeT, VecStorage4< ValueTypeT > > osg::Color4< ValueTypeT > List of all members.

Public Member Functions

Constructor
 VecStorage4 (void)
Destructor
 ~VecStorage4 (void)

Static Public Attributes

static const UInt32 _uiSize = 4
 Storage size.

Protected Attributes

ValueTypeT _values [_uiSize]
 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 ^1^(BaseMath).

Definition at line 266 of file OSGVector.h.


Constructor & Destructor Documentation

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

Definition at line 263 of file OSGVector.inl.

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

00264 {
00265     for(UInt32 i = 0; i < _uiSize; i++)
00266     {
00267         _values[i] = TypeTraits<ValueTypeT>::getZeroElement();
00268     }
00269 }

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

Definition at line 273 of file OSGVector.inl.

00274 {
00275 }

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

prohibit default function (move to 'public' if needed)


Member Function Documentation

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

Definition at line 292 of file OSGVector.inl.

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

00296 {
00297     rVal1 = _values[0];
00298     rVal2 = _values[1];
00299     rVal3 = _values[2];
00300     rVal4 = _values[3];
00301 }

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

prohibit default function (move to 'public' if needed)

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

Definition at line 279 of file OSGVector.inl.

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

Referenced by osg::Color4< ValueTypeT >::clear(), osg::Color4< ValueTypeT >::Color4(), osg::TransformationMatrix< ValueTypeT >::multMatrixVec(), osg::TransformationMatrix< ValueTypeT >::setValue(), osg::Color4< ValueTypeT >::setValuesRGBA(), osg::TransformationMatrix< ValueTypeT >::setValueTransposed(), and osg::TransformationMatrix< ValueTypeT >::TransformationMatrix().

00283 {
00284     _values[0] = rVal1;
00285     _values[1] = rVal2;
00286     _values[2] = rVal3;
00287     _values[3] = rVal4;
00288 }

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

Definition at line 326 of file OSGVector.inl.

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

00327 {
00328     return _values[3];
00329 }

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

Definition at line 305 of file OSGVector.inl.

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

00306 {
00307     return _values[0];
00308 }

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

Definition at line 312 of file OSGVector.inl.

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

00313 {
00314     return _values[1];
00315 }

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

Definition at line 319 of file OSGVector.inl.

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

00320 {
00321     return _values[2];
00322 }


Member Data Documentation

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

Storage size.

Definition at line 272 of file OSGVector.h.

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

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

Value store.

Definition at line 312 of file OSGVector.h.

Referenced by osg::VecStorage4< ValueTypeT >::getSeparateValues(), osg::VecStorage4< ValueTypeT >::setValues(), osg::VecStorage4< ValueTypeT >::VecStorage4(), osg::VecStorage4< ValueTypeT >::w(), osg::VecStorage4< ValueTypeT >::x(), osg::VecStorage4< ValueTypeT >::y(), and osg::VecStorage4< ValueTypeT >::z().


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