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

osg::Pnt3f Class Reference

Inheritance diagram for osg::Pnt3f:

osg::PointInterface< Real32, VecStorage3 > osg::VecStorage3< ValueTypeT > List of all members.

Public Types

typedef VecStorage3 Inherited
typedef TypeTraits< Real32
>::RealReturnType 
RealReturnType
typedef Real32 ValueType
typedef VectorInterface< Real32,
VecStorage3
VecInterface
typedef PointInterface< Real32,
VecStorage3
Self

Public Member Functions

PointInterface (void)
 PointInterface (const Real32 *pVals)
 PointInterface (Real32 *pVals)
 PointInterface (const VectorT &vec)
 PointInterface (const PointInterface &source)
 PointInterface (const Real32rVal1, const Real32rVal2)
 PointInterface (const Real32rVal1, const Real32rVal2, const Real32rVal3)
 PointInterface (const Real32rVal1, const Real32rVal2, const Real32rVal3, const Real32rVal4)
*void setNull (void)
void setValue (const PointInterface &vec)
void setValue (const VectorT &vec)
void setValue (const Real32 *pVals)
void setValue (Real32 *pVals)
void setValue (const Char8 *szString)
void setValue (Char8 *szString)
void setValueFromCString (const Char8 *szString)
void setValueFromCString (Char8 *szString)
*Real32getValues (void)
const Real32getValues (void) const
*bool isZero (void) const
void negate (void)
bool equals (const PointInterface &vec, const Real32tolerance) const
VecInterfacesubZero (void)
const VecInterfacesubZero (void) const
RealReturnType dist (const PointInterface &vec) const
RealReturnType dist2 (const PointInterface &vec) const
RealReturnType maxValue (void) const
*void operator *= (const Real32val)
void operator/= (const Real32val)
VecInterface operator- (const PointInterface &vec) const
PointInterface operator- (const VecInterface &vec) const
PointInterface operator- (void)
PointInterface operator+ (const VecInterface &vec) const
PointInterface operator * (const Real32rVal) const
void operator+= (const VecInterface &vec)
void operator-= (const VecInterface &vec)
*Real32operator[] (const UInt32 uiVal)
const Real32operator[] (const UInt32 uiVal) const
*bool operator< (const PointInterface &other) const
bool operator== (const PointInterface &other) const
bool operator!= (const PointInterface &other) const
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 PointInterface Null
static const UInt32 _iSize = 3
 Storage size.

Protected Attributes

ValueTypeT _values [_iSize]
 Value store.

Detailed Description

This is a documentation wrapper. Its only purpose is to fool doxygen into thinking of a typedef as a class and to allow you to find all the needed info from this page.

Warning:
The real inheritance is not what you see here.

This is just to give you an idea of the conceptual relations and to help you understand the available methods of this class.

Definition at line 2612 of file dummyClasses.dox.


Member Typedef Documentation

typedef VecStorage3 osg::PointInterface< Real32 , VecStorage3 >::Inherited [inherited]
 

Reimplemented in osg::VectorInterface< Real32, VecStorage3 >.

Definition at line 289 of file OSGVector.h.

typedef TypeTraits<Real32 >::RealReturnType osg::PointInterface< Real32 , VecStorage3 >::RealReturnType [inherited]
 

Reimplemented in osg::VectorInterface< Real32, VecStorage3 >.

Definition at line 291 of file OSGVector.h.

typedef Real32 osg::PointInterface< Real32 , VecStorage3 >::ValueType [inherited]
 

Reimplemented in osg::VectorInterface< Real32, VecStorage3 >.

Definition at line 293 of file OSGVector.h.

typedef VectorInterface<Real32 , VecStorage3 > osg::PointInterface< Real32 , VecStorage3 >::VecInterface [inherited]
 

Definition at line 296 of file OSGVector.h.

typedef PointInterface<Real32 , VecStorage3 > osg::PointInterface< Real32 , VecStorage3 >::Self [inherited]
 

Reimplemented in osg::VectorInterface< Real32, VecStorage3 >.

Definition at line 300 of file OSGVector.h.


Member Function Documentation

* osg::PointInterface< Real32 , VecStorage3 >::PointInterface void   )  [inherited]
 

osg::PointInterface< Real32 , VecStorage3 >::PointInterface const Real32 pVals  )  [explicit, inherited]
 

Be shure the array size at least as large as the vector size.

osg::PointInterface< Real32 , VecStorage3 >::PointInterface Real32 pVals  )  [explicit, inherited]
 

Be shure the array size at least as large as the vector size.

osg::PointInterface< Real32 , VecStorage3 >::PointInterface const VectorT &  vec  )  [inline, explicit, inherited]
 

Definition at line 319 of file OSGVector.h.

00320     {
00321         if(Self::_iSize <= VectorT::_iSize)
00322         {
00323             for(UInt32 i = 0; i < Self::_iSize; i++)
00324             {
00325                 Self::_values[i] = vec.getValues()[i];
00326             }
00327         }
00328         else
00329         {
00330             UInt32 i;
00331             for(i = 0; i < VectorT::_iSize; i++)
00332             {
00333                 Self::_values[i] = vec.getValues()[i];
00334             }
00335             for(i = VectorT::_iSize; i < Self::_iSize; i++)
00336             {
00337                 Self::_values[i] = TypeTraits<ValueTypeT>::getZeroElement();
00338             }
00339         }
00340     }

osg::PointInterface< Real32 , VecStorage3 >::PointInterface const PointInterface< Real32, VecStorage3 > &  source  )  [inherited]
 

osg::PointInterface< Real32 , VecStorage3 >::PointInterface const Real32   rVal1,
const Real32   rVal2
[inherited]
 

osg::PointInterface< Real32 , VecStorage3 >::PointInterface const Real32   rVal1,
const Real32   rVal2,
const Real32   rVal3
[inherited]
 

osg::PointInterface< Real32 , VecStorage3 >::PointInterface const Real32   rVal1,
const Real32   rVal2,
const Real32   rVal3,
const Real32   rVal4
[inherited]
 

* void osg::PointInterface< Real32 , VecStorage3 >::setNull void   )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage3 >::setValue const PointInterface< Real32, VecStorage3 > &  vec  )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage3 >::setValue const VectorT &  vec  )  [inline, inherited]
 

Definition at line 393 of file OSGVector.h.

00394     {
00395         for(UInt32   i = 0;
00396                      i < (Self::_iSize < VectorT::_iSize ? 
00397                           Self::_iSize : VectorT::_iSize);
00398                    ++i)
00399         {
00400             Self::_values[i] = vec.getValues()[i];
00401         }
00402     }

void osg::PointInterface< Real32 , VecStorage3 >::setValue const Real32 pVals  )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage3 >::setValue Real32 pVals  )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage3 >::setValue const Char8 szString  )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage3 >::setValue Char8 szString  )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage3 >::setValueFromCString const Char8 szString  )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage3 >::setValueFromCString Char8 szString  )  [inherited]
 

* Real32 * osg::PointInterface< Real32 , VecStorage3 >::getValues void   )  [inherited]
 

const Real32 * osg::PointInterface< Real32 , VecStorage3 >::getValues void   )  const [inherited]
 

* bool osg::PointInterface< Real32 , VecStorage3 >::isZero void   )  const [inherited]
 

void osg::PointInterface< Real32 , VecStorage3 >::negate void   )  [inherited]
 

bool osg::PointInterface< Real32 , VecStorage3 >::equals const PointInterface< Real32, VecStorage3 > &  vec,
const Real32   tolerance
const [inherited]
 

VecInterface& osg::PointInterface< Real32 , VecStorage3 >::subZero void   )  [inherited]
 

Reimplemented in osg::VectorInterface< Real32, VecStorage3 >.

const VecInterface& osg::PointInterface< Real32 , VecStorage3 >::subZero void   )  const [inherited]
 

Reimplemented in osg::VectorInterface< Real32, VecStorage3 >.

RealReturnType osg::PointInterface< Real32 , VecStorage3 >::dist const PointInterface< Real32, VecStorage3 > &  vec  )  const [inherited]
 

RealReturnType osg::PointInterface< Real32 , VecStorage3 >::dist2 const PointInterface< Real32, VecStorage3 > &  vec  )  const [inherited]
 

RealReturnType osg::PointInterface< Real32 , VecStorage3 >::maxValue void   )  const [inherited]
 

* void osg::PointInterface< Real32 , VecStorage3 >::operator *= const Real32   val  )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage3 >::operator/= const Real32   val  )  [inherited]
 

VecInterface osg::PointInterface< Real32 , VecStorage3 >::operator- const PointInterface< Real32, VecStorage3 > &  vec  )  const [inherited]
 

PointInterface osg::PointInterface< Real32 , VecStorage3 >::operator- const VecInterface vec  )  const [inherited]
 

PointInterface osg::PointInterface< Real32 , VecStorage3 >::operator- void   )  [inherited]
 

PointInterface osg::PointInterface< Real32 , VecStorage3 >::operator+ const VecInterface vec  )  const [inherited]
 

PointInterface osg::PointInterface< Real32 , VecStorage3 >::operator * const Real32   rVal  )  const [inherited]
 

Reimplemented in osg::VectorInterface< Real32, VecStorage3 >.

void osg::PointInterface< Real32 , VecStorage3 >::operator+= const VecInterface vec  )  [inherited]
 

void osg::PointInterface< Real32 , VecStorage3 >::operator-= const VecInterface vec  )  [inherited]
 

* Real32 & osg::PointInterface< Real32 , VecStorage3 >::operator[] const UInt32  uiVal  )  [inherited]
 

const Real32 & osg::PointInterface< Real32 , VecStorage3 >::operator[] const UInt32  uiVal  )  const [inherited]
 

* bool osg::PointInterface< Real32 , VecStorage3 >::operator< const PointInterface< Real32, VecStorage3 > &  other  )  const [inherited]
 

bool osg::PointInterface< Real32 , VecStorage3 >::operator== const PointInterface< Real32, VecStorage3 > &  other  )  const [inherited]
 

bool osg::PointInterface< Real32 , VecStorage3 >::operator!= const PointInterface< Real32, VecStorage3 > &  other  )  const [inherited]
 

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

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, inherited]
 

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, inherited]
 

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, inherited]
 

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, inherited]
 

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 }


Member Data Documentation

const PointInterface osg::PointInterface< Real32 , VecStorage3 >::Null [static, inherited]
 

Reimplemented in osg::VectorInterface< Real32, VecStorage3 >.

Definition at line 302 of file OSGVector.h.

Referenced by osg::IntersectAction::getHitPoint(), and osg::FaceIterator::getPosition().

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

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

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

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 file:
Generated on Thu Aug 25 04:38:31 2005 for OpenSG by  doxygen 1.4.3