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

#include <OSGVector.h>

Inheritance diagram for osg::VecStorage3< ValueTypeT >:

osg::PointInterface< double, osg::VecStorage3< ValueTypeT > > osg::PointInterface< float, osg::VecStorage3< ValueTypeT > > osg::PointInterface< int16_t, osg::VecStorage3< ValueTypeT > > osg::PointInterface< int8_t, osg::VecStorage3< ValueTypeT > > osg::PointInterface< long double, osg::VecStorage3< ValueTypeT > > osg::PointInterface< uint16_t, osg::VecStorage3< ValueTypeT > > osg::PointInterface< uint8_t, osg::VecStorage3< ValueTypeT > > osg::VectorInterface< double, osg::VecStorage3< ValueTypeT > > osg::VectorInterface< float, osg::VecStorage3< ValueTypeT > > osg::VectorInterface< int16_t, osg::VecStorage3< ValueTypeT > > osg::VectorInterface< int8_t, osg::VecStorage3< ValueTypeT > > osg::VectorInterface< long double, osg::VecStorage3< ValueTypeT > > osg::VectorInterface< uint16_t, osg::VecStorage3< ValueTypeT > > osg::VectorInterface< uint8_t, osg::VecStorage3< ValueTypeT > >

List of all members.

Public Member Functions

Constructor


 VecStorage3 (void)
Destructor


 ~VecStorage3 (void)
Access


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

Static Public Attributes

static const UInt32 _iSize = 3
 Storage size.

Protected Attributes

ValueTypeT _values [_iSize]
 Value store.

Private Member Functions

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


Detailed Description

template<class ValueTypeT>
class osg::VecStorage3< ValueTypeT >

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

Definition at line 140 of file OSGVector.h.


Constructor & Destructor Documentation

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

Definition at line 130 of file OSGVector.inl.

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

00131 {
00132     for(UInt32 i = 0; i < _iSize; i++)
00133     {
00134         _values[i] = TypeTraits<ValueTypeT>::getZeroElement();
00135     }
00136 }

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

Definition at line 140 of file OSGVector.inl.

00141 {
00142 }

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


Member Function Documentation

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

Definition at line 146 of file OSGVector.inl.

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

00149 {
00150     _values[0] = rVal1;
00151     _values[1] = rVal2;
00152     _values[2] = rVal3;
00153 }

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

Definition at line 157 of file OSGVector.inl.

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

00160 {
00161     rVal1 = _values[0];
00162     rVal2 = _values[1];
00163     rVal3 = _values[2];
00164 }

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

Definition at line 168 of file OSGVector.inl.

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

00169 {
00170     return _values[0];
00171 }

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

Definition at line 175 of file OSGVector.inl.

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

00176 {
00177     return _values[1];
00178 }

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

Definition at line 182 of file OSGVector.inl.

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

00183 {
00184     return _values[2];
00185 }

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


Member Data Documentation

template<class ValueTypeT>
VecStorage3::VectorSizeE osg::VecStorage3< ValueTypeT >::_iSize = 3 [static]

Definition at line 146 of file OSGVector.h.

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

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


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

Generated on Mon Mar 17 12:03:20 2008 for OpenSG by  doxygen 1.5.5