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

#include <OSGVector.h>

Inheritance diagram for osg::VecStorage2< ValueTypeT >:

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

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 _iSize = 2
 Storage size.

Protected Attributes

ValueTypeT _values [_iSize]
 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 Math.

Definition at line 75 of file OSGVector.h.


Constructor & Destructor Documentation

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

Definition at line 62 of file OSGVector.inl.

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

00063 {
00064     for(UInt32 i = 0; i < _iSize; i++)
00065     {
00066         _values[i] = TypeTraits<ValueTypeT>::getZeroElement();
00067     }
00068 }

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

Definition at line 72 of file OSGVector.inl.

00073 {
00074 }

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 78 of file OSGVector.inl.

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

00080 {
00081     _values[0] = rVal1;
00082     _values[1] = rVal2;
00083 }

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

Definition at line 87 of file OSGVector.inl.

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

00089 {
00090     rVal1 = _values[0];
00091     rVal2 = _values[1];
00092 }

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

Definition at line 96 of file OSGVector.inl.

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

00097 {
00098     return _values[0];
00099 }

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

Definition at line 103 of file OSGVector.inl.

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

00104 {
00105     return _values[1];
00106 }

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


Member Data Documentation

template<class ValueTypeT>
VecStorage2::VectorSizeE osg::VecStorage2< ValueTypeT >::_iSize = 2 [static]

Definition at line 81 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:

Generated on Mon Mar 17 11:10:51 2008 for OpenSG by  doxygen 1.5.5