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

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

#include <OSGVector.h>

Inheritance diagram for osg::VecStorage2< ValueTypeT >:

osg::PointInterface< Int16, VecStorage2 > osg::PointInterface< Int8, VecStorage2 > osg::PointInterface< Real128, VecStorage2 > osg::PointInterface< Real32, VecStorage2 > osg::PointInterface< Real64, VecStorage2 > osg::PointInterface< UInt16, VecStorage2 > osg::PointInterface< UInt8, VecStorage2 > osg::Pnt2s osg::VectorInterface< Int16, VecStorage2 > osg::Pnt2b osg::VectorInterface< Int8, VecStorage2 > osg::Pnt2ld osg::VectorInterface< Real128, VecStorage2 > osg::Pnt2f osg::VectorInterface< Real32, VecStorage2 > osg::Pnt2d osg::VectorInterface< Real64, VecStorage2 > osg::Pnt2us osg::VectorInterface< UInt16, VecStorage2 > osg::Pnt2ub osg::VectorInterface< UInt8, VecStorage2 > 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.

Referenced by osg::TextFace::calculateBoundingBox(), osg::TextLayoutResult::clear(), osg::GeoProperty< GeoPropertyDesc >::getValue(), osg::TextPixmapFace::makeImage(), osg::OFFSceneFileType::read(), and osg::OBJSceneFileType::read().

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.

Referenced by osg::TextTXFFace::addToGeom(), osg::TextFace::adjustLineOrigin(), osg::ExtrusionSurface::calcOptimizedContour(), osg::TextFace::calculateBoundingBox(), osg::computeEdgeNormal(), osg::SimpleStatisticsForeground::draw(), osg::GraphicStatisticsForeground::drawString(), osg::TextVectorFace::fillGeo(), osg::ExtrusionSurface::isLeft(), osg::TextPixmapFace::makeImage(), osg::TextureBackground::updateGrid(), and osg::Surface::writetoobj().

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.

Referenced by osg::TextTXFFace::addToGeom(), osg::TextFace::adjustLineOrigin(), osg::TextFace::calculateBoundingBox(), osg::calcWindingNumber(), osg::ExtrusionSurface::calcWindingNumber(), osg::computeEdgeNormal(), osg::SimpleStatisticsForeground::draw(), osg::GraphicStatisticsForeground::drawString(), osg::TextVectorFace::fillGeo(), osg::ExtrusionSurface::isLeft(), osg::TextPixmapFace::makeImage(), osg::TextureBackground::updateGrid(), and osg::Surface::writetoobj().

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]
 

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

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

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


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