Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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

#include <OSGVector.h>

Inheritance diagram for osg::VecStorage3< ValueTypeT >:

osg::PointInterface< Int16, VecStorage3 > osg::PointInterface< Int8, VecStorage3 > osg::PointInterface< Real128, VecStorage3 > osg::PointInterface< Real32, VecStorage3 > osg::PointInterface< Real64, VecStorage3 > osg::PointInterface< UInt16, VecStorage3 > osg::PointInterface< UInt8, VecStorage3 > osg::Pnt3s osg::VectorInterface< Int16, VecStorage3 > osg::Pnt3b osg::VectorInterface< Int8, VecStorage3 > osg::Pnt3ld osg::VectorInterface< Real128, VecStorage3 > osg::Pnt3f osg::VectorInterface< Real32, VecStorage3 > osg::Pnt3d osg::VectorInterface< Real64, VecStorage3 > osg::Pnt3us osg::VectorInterface< UInt16, VecStorage3 > osg::Pnt3ub osg::VectorInterface< UInt8, VecStorage3 > 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.

Referenced by osg::Billboard::adjustVolume(), drawViewerObjects< posTrait, colTrait, sizeTrait, geoTrait >::draw(), drawObjects< posTrait, colTrait, sizeTrait, normalTrait, geoTrait >::draw(), drawViewerObjects< posTrait, colTrait, sizeTrait, geoTrait >::drawIndexed(), drawObjects< posTrait, colTrait, sizeTrait, normalTrait, geoTrait >::drawIndexed(), osg::Slices::drawPrimitives(), osg::Slices::drawSlices(), osg::FlyNavigator::FlyNavigator(), osg::SphereVolume::getBounds(), osg::BoxVolume::getCenter(), osg::NormalQuantifier::getIndex(), osg::DVRIsoShader::getLightSources(), osg::BoxVolume::getSize(), osg::GeoProperty< GeoPropertyDesc >::getValue(), NormalTraitGeneric3f::init(), NormalTraitGeneric::init(), SizeTraitGeneric::init(), osg::Plane::intersect(), osg::MatrixLookAt(), osg::DynamicVolume::morphToType(), osg::TransformationMatrix< ValueTypeT >::multFullMatrixPnt(), osg::TransformationMatrix< ValueTypeT >::multMatrixPnt(), osg::TransformationMatrix< ValueTypeT >::multMatrixVec(), osg::TransformationMatrix< ValueTypeT >::multPntFullMatrix(), osg::TransformationMatrix< ValueTypeT >::multPntMatrix(), osg::TransformationMatrix< ValueTypeT >::multVecMatrix(), osg::RAWSceneFileType::read(), osg::OFFSceneFileType::read(), osg::OBJSceneFileType::read(), osg::TrackballNavigator::rotate(), osg::Plane::set(), osg::BoxVolume::setBounds(), osg::BoxVolume::setBoundsByCenterAndSize(), osg::Trackball::setStartPosition(), osg::SimpleSceneManager::showAll(), osg::TrackballNavigator::TrackballNavigator(), osg::BoxVolume::transform(), and osg::Trackball::updateRotation().

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.

Referenced by osg::BoxVolume::getBounds().

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.

Referenced by osg::Surface::buildSurface(), osg::calcVertexNormals(), osg::createNormalizationCubeMap(), osg::Slices::createSlice(), osg::Slices::drawSlices(), osg::NormalQuantifier::getIndex(), osg::Slices::initEdgeVec(), osg::FrustumVolume::intersect(), osg::DynamicVolume::morphToType(), osg::BoxVolume::setBoundsByCenterAndSize(), and osg::Surface::writetoobj().

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.

Referenced by osg::Surface::buildSurface(), osg::calcVertexNormals(), osg::createNormalizationCubeMap(), osg::Slices::drawSlices(), osg::NormalQuantifier::getIndex(), osg::Slices::initEdgeVec(), osg::FrustumVolume::intersect(), osg::DynamicVolume::morphToType(), osg::BoxVolume::setBoundsByCenterAndSize(), and osg::Surface::writetoobj().

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.

Referenced by osg::Surface::buildSurface(), osg::calcVertexNormals(), osg::createNormalizationCubeMap(), osg::Slices::drawSlices(), osg::NormalQuantifier::getIndex(), osg::Slices::initEdgeVec(), osg::FrustumVolume::intersect(), osg::DynamicVolume::morphToType(), osg::BoxVolume::setBoundsByCenterAndSize(), and osg::Surface::writetoobj().

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]
 

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

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

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


The documentation for this class was generated from the following files:
Generated on Thu Aug 25 04:12:37 2005 for OpenSG by  doxygen 1.4.3