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

osg::Pnt2s Class Reference

Inheritance diagram for osg::Pnt2s:

osg::PointInterface< Int16, VecStorage2 > osg::VecStorage2< ValueTypeT > List of all members.

Public Types

typedef VecStorage2 Inherited
typedef TypeTraits< Int16
>::RealReturnType 
RealReturnType
typedef Int16 ValueType
typedef VectorInterface< Int16,
VecStorage2
VecInterface
typedef PointInterface< Int16,
VecStorage2
Self

Public Member Functions

PointInterface (void)
 PointInterface (const Int16 *pVals)
 PointInterface (Int16 *pVals)
 PointInterface (const VectorT &vec)
 PointInterface (const PointInterface &source)
 PointInterface (const Int16rVal1, const Int16rVal2)
 PointInterface (const Int16rVal1, const Int16rVal2, const Int16rVal3)
 PointInterface (const Int16rVal1, const Int16rVal2, const Int16rVal3, const Int16rVal4)
*void setNull (void)
void setValue (const PointInterface &vec)
void setValue (const VectorT &vec)
void setValue (const Int16 *pVals)
void setValue (Int16 *pVals)
void setValue (const Char8 *szString)
void setValue (Char8 *szString)
void setValueFromCString (const Char8 *szString)
void setValueFromCString (Char8 *szString)
*Int16getValues (void)
const Int16getValues (void) const
*bool isZero (void) const
void negate (void)
bool equals (const PointInterface &vec, const Int16tolerance) 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 Int16val)
void operator/= (const Int16val)
VecInterface operator- (const PointInterface &vec) const
PointInterface operator- (const VecInterface &vec) const
PointInterface operator- (void)
PointInterface operator+ (const VecInterface &vec) const
PointInterface operator * (const Int16rVal) const
void operator+= (const VecInterface &vec)
void operator-= (const VecInterface &vec)
*Int16operator[] (const UInt32 uiVal)
const Int16operator[] (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)
void getSeparateValues (ValueTypeT &rVal1, ValueTypeT &rVal2) const
ValueTypeT x (void) const
ValueTypeT y (void) const

Static Public Attributes

static const PointInterface Null
static const UInt32 _iSize = 2
 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 2552 of file dummyClasses.dox.


Member Typedef Documentation

typedef VecStorage2 osg::PointInterface< Int16 , VecStorage2 >::Inherited [inherited]
 

Reimplemented in osg::VectorInterface< Int16, VecStorage2 >.

Definition at line 289 of file OSGVector.h.

typedef TypeTraits<Int16 >::RealReturnType osg::PointInterface< Int16 , VecStorage2 >::RealReturnType [inherited]
 

Reimplemented in osg::VectorInterface< Int16, VecStorage2 >.

Definition at line 291 of file OSGVector.h.

typedef Int16 osg::PointInterface< Int16 , VecStorage2 >::ValueType [inherited]
 

Reimplemented in osg::VectorInterface< Int16, VecStorage2 >.

Definition at line 293 of file OSGVector.h.

typedef VectorInterface<Int16 , VecStorage2 > osg::PointInterface< Int16 , VecStorage2 >::VecInterface [inherited]
 

Definition at line 296 of file OSGVector.h.

typedef PointInterface<Int16 , VecStorage2 > osg::PointInterface< Int16 , VecStorage2 >::Self [inherited]
 

Reimplemented in osg::VectorInterface< Int16, VecStorage2 >.

Definition at line 300 of file OSGVector.h.


Member Function Documentation

* osg::PointInterface< Int16 , VecStorage2 >::PointInterface void   )  [inherited]
 

osg::PointInterface< Int16 , VecStorage2 >::PointInterface const Int16 pVals  )  [explicit, inherited]
 

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

osg::PointInterface< Int16 , VecStorage2 >::PointInterface Int16 pVals  )  [explicit, inherited]
 

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

osg::PointInterface< Int16 , VecStorage2 >::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< Int16 , VecStorage2 >::PointInterface const PointInterface< Int16, VecStorage2 > &  source  )  [inherited]
 

osg::PointInterface< Int16 , VecStorage2 >::PointInterface const Int16   rVal1,
const Int16   rVal2
[inherited]
 

osg::PointInterface< Int16 , VecStorage2 >::PointInterface const Int16   rVal1,
const Int16   rVal2,
const Int16   rVal3
[inherited]
 

osg::PointInterface< Int16 , VecStorage2 >::PointInterface const Int16   rVal1,
const Int16   rVal2,
const Int16   rVal3,
const Int16   rVal4
[inherited]
 

* void osg::PointInterface< Int16 , VecStorage2 >::setNull void   )  [inherited]
 

void osg::PointInterface< Int16 , VecStorage2 >::setValue const PointInterface< Int16, VecStorage2 > &  vec  )  [inherited]
 

void osg::PointInterface< Int16 , VecStorage2 >::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< Int16 , VecStorage2 >::setValue const Int16 pVals  )  [inherited]
 

void osg::PointInterface< Int16 , VecStorage2 >::setValue Int16 pVals  )  [inherited]
 

void osg::PointInterface< Int16 , VecStorage2 >::setValue const Char8 szString  )  [inherited]
 

void osg::PointInterface< Int16 , VecStorage2 >::setValue Char8 szString  )  [inherited]
 

void osg::PointInterface< Int16 , VecStorage2 >::setValueFromCString const Char8 szString  )  [inherited]
 

void osg::PointInterface< Int16 , VecStorage2 >::setValueFromCString Char8 szString  )  [inherited]
 

* Int16 * osg::PointInterface< Int16 , VecStorage2 >::getValues void   )  [inherited]
 

const Int16 * osg::PointInterface< Int16 , VecStorage2 >::getValues void   )  const [inherited]
 

* bool osg::PointInterface< Int16 , VecStorage2 >::isZero void   )  const [inherited]
 

void osg::PointInterface< Int16 , VecStorage2 >::negate void   )  [inherited]
 

bool osg::PointInterface< Int16 , VecStorage2 >::equals const PointInterface< Int16, VecStorage2 > &  vec,
const Int16   tolerance
const [inherited]
 

VecInterface& osg::PointInterface< Int16 , VecStorage2 >::subZero void   )  [inherited]
 

Reimplemented in osg::VectorInterface< Int16, VecStorage2 >.

const VecInterface& osg::PointInterface< Int16 , VecStorage2 >::subZero void   )  const [inherited]
 

Reimplemented in osg::VectorInterface< Int16, VecStorage2 >.

RealReturnType osg::PointInterface< Int16 , VecStorage2 >::dist const PointInterface< Int16, VecStorage2 > &  vec  )  const [inherited]
 

RealReturnType osg::PointInterface< Int16 , VecStorage2 >::dist2 const PointInterface< Int16, VecStorage2 > &  vec  )  const [inherited]
 

RealReturnType osg::PointInterface< Int16 , VecStorage2 >::maxValue void   )  const [inherited]
 

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

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

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

PointInterface osg::PointInterface< Int16 , VecStorage2 >::operator- const VecInterface vec  )  const [inherited]
 

PointInterface osg::PointInterface< Int16 , VecStorage2 >::operator- void   )  [inherited]
 

PointInterface osg::PointInterface< Int16 , VecStorage2 >::operator+ const VecInterface vec  )  const [inherited]
 

PointInterface osg::PointInterface< Int16 , VecStorage2 >::operator * const Int16   rVal  )  const [inherited]
 

Reimplemented in osg::VectorInterface< Int16, VecStorage2 >.

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

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

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

const Int16 & osg::PointInterface< Int16 , VecStorage2 >::operator[] const UInt32  uiVal  )  const [inherited]
 

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

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

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

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

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

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

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

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 }


Member Data Documentation

const PointInterface osg::PointInterface< Int16 , VecStorage2 >::Null [static, inherited]
 

Reimplemented in osg::VectorInterface< Int16, VecStorage2 >.

Definition at line 302 of file OSGVector.h.

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

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

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

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