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

osg::MField< FieldTypeT, fieldNameSpace > Class Template Reference
[FieldsMulti-Element Fields]

#include <OSGMField.h>

Inheritance diagram for osg::MField< FieldTypeT, fieldNameSpace >:

osg::Field osg::MFAttachmentContainerPtr osg::MFAttachmentMap osg::MFAttachmentPtr osg::MFBackgroundPtr osg::MFBillboardPtr osg::MFBitVector osg::MFBlendChunkPtr osg::MFBool osg::MFCameraDecoratorPtr osg::MFCameraPtr osg::MFChunkMaterialPtr osg::MFClipPlaneChunkPtr osg::MFClusterWindowPtr osg::MFColor3f osg::MFColor3ub osg::MFColor4f osg::MFColor4ub osg::MFColorBufferViewportPtr osg::MFColorMaskChunkPtr osg::MFComponentTransformPtr osg::MFCubeTextureChunkPtr osg::MFDepthChunkPtr osg::MFDisplayCalibrationPtr osg::MFDisplayP osg::MFDrawablePtr osg::MFDVRClipGeometryPtr osg::MFFatBorderChunkPtr osg::MFFieldContainerPtr osg::MFFileGrabForegroundPtr osg::MFForegroundPtr osg::MFFragmentProgramChunkPtr osg::MFGenericAttPtr osg::MFGeoColorsPtr osg::MFGeoIndicesPtr osg::MFGeometryPtr osg::MFGeoNormalsPtr osg::MFGeoPLengthsPtr osg::MFGeoPositionsPtr osg::MFGeoPTypesPtr osg::MFGeoTexCoordsPtr osg::MFGLenum osg::MFGLUTWindowPtr osg::MFGLXContext osg::MFGrabForegroundPtr osg::MFGradientBackgroundPtr osg::MFGraphicStatisticsForegroundPtr osg::MFGroupPtr osg::MFHDC osg::MFHGLRC osg::MFHWND osg::MFImageComposerPtr osg::MFImageForegroundPtr osg::MFImageGenericAttPtr osg::MFImageP osg::MFImagePtr osg::MFInlinePtr osg::MFInt16 osg::MFInt32 osg::MFInt64 osg::MFInt8 osg::MFInverseTransformPtr osg::MFLightChunkPtr osg::MFLineChunkPtr osg::MFMaterialChunkPtr osg::MFMaterialDrawablePtr osg::MFMaterialGroupPtr osg::MFMaterialPoolPtr osg::MFMaterialPtr osg::MFMatrix osg::MFMatrixCameraDecoratorPtr osg::MFMatrixCameraPtr osg::MFMultiPassMaterialPtr osg::MFNodeCorePtr osg::MFNodePtr osg::MFOffCenterPerspectiveCameraPtr osg::MFOSGQGLWidgetP osg::MFPAINTSTRUCT osg::MFParticlesPtr osg::MFPassiveViewportPtr osg::MFPassiveWindowPtr osg::MFPerspectiveCameraPtr osg::MFPlane osg::MFPnt2b osg::MFPnt2d osg::MFPnt2f osg::MFPnt2ld osg::MFPnt2s osg::MFPnt2ub osg::MFPnt2us osg::MFPnt3b osg::MFPnt3d osg::MFPnt3f osg::MFPnt3ld osg::MFPnt3s osg::MFPnt3ub osg::MFPnt3us osg::MFPnt4b osg::MFPnt4d osg::MFPnt4f osg::MFPnt4ld osg::MFPnt4s osg::MFPnt4ub osg::MFPnt4us osg::MFPointChunkPtr osg::MFPolygonBackgroundPtr osg::MFPolygonChunkPtr osg::MFPolygonForegroundPtr osg::MFProgramChunkPtr osg::MFProjectionCameraDecoratorPtr osg::MFQBit osg::MFQTWindowPtr osg::MFQuaternion osg::MFReal16 osg::MFReal32 osg::MFReal64 osg::MFRegisterCombinersChunkPtr osg::MFShaderChunkPtr osg::MFShaderParameterBoolPtr osg::MFShaderParameterChunkPtr osg::MFShaderParameterIntPtr osg::MFShaderParameterMatrixPtr osg::MFShaderParameterPtr osg::MFShaderParameterRealPtr osg::MFShaderParameterStringPtr osg::MFShaderParameterVec2fPtr osg::MFShaderParameterVec3fPtr osg::MFShaderParameterVec4fPtr osg::MFShearedStereoCameraDecoratorPtr osg::MFSHLChunkPtr osg::MFSHLParameterChunkPtr osg::MFSimpleStatisticsForegroundPtr osg::MFSimpleTexturedMaterialPtr osg::MFSkyBackgroundPtr osg::MFSlicesPtr osg::MFStateChunkPtr osg::MFStatePtr osg::MFStatisticsForegroundPtr osg::MFStereoBufferViewportPtr osg::MFStereoCameraDecoratorPtr osg::MFString osg::MFSurfacePtr osg::MFSwitchPtr osg::MFTexGenChunkPtr osg::MFTextureChunkPtr osg::MFTextureTransformChunkPtr osg::MFTileCameraDecoratorPtr osg::MFTime osg::MFTransformChunkPtr osg::MFTransformPtr osg::MFUInt16 osg::MFUInt32 osg::MFUInt64 osg::MFUInt8 osg::MFVec2b osg::MFVec2d osg::MFVec2f osg::MFVec2ld osg::MFVec2s osg::MFVec2ub osg::MFVec2us osg::MFVec3b osg::MFVec3d osg::MFVec3f osg::MFVec3ld osg::MFVec3s osg::MFVec3ub osg::MFVec3us osg::MFVec4b osg::MFVec4d osg::MFVec4f osg::MFVec4ld osg::MFVec4s osg::MFVec4ub osg::MFVec4us osg::MFVertexProgramChunkPtr osg::MFViewportPtr osg::MFVoidP osg::MFVolume osg::MFWIN32WindowPtr osg::MFWindowPtr osg::MFX11Window osg::MFXWindowPtr List of all members.

Public Types

typedef MFieldVector< FieldTypeT > StorageType
typedef StorageType::Inherited StorageTypeParent
typedef StorageType::iterator iterator
typedef StorageType::const_iterator const_iterator
typedef StorageType::reverse_iterator reverse_iterator
typedef StorageType::const_reverse_iterator const_reverse_iterator
typedef StorageType::reference reference
typedef StorageType::const_reference const_reference
typedef osgIF< fieldNameSpace==0,
FieldDataTraits< FieldTypeT >,
InvalidTrait >::_IRet 
MF0Trait
typedef osgIF< fieldNameSpace==1,
FieldDataTraits1< FieldTypeT >,
MF0Trait >::_IRet 
MF1Trait
typedef osgIF< fieldNameSpace==2,
FieldDataTraits2< FieldTypeT >,
MF1Trait >::_IRet 
MFieldTraits
typedef MField< FieldTypeT,
fieldNameSpace > 
Self
typedef FieldTypeT StoredType
typedef MFieldTraits::ArgumentType ArgumentType

Public Member Functions

template<>
UInt32 getBinSize (void) const
template<>
void copyToBin (BinaryDataHandler &pMem) const
template<>
void copyFromBin (BinaryDataHandler &pMem)
Constructors
MField (void)
 MField (const MField &obj)
 MField (const UInt32 size)
Destructor
*virtual ~MField (void)
Get
*reference getValue (const UInt32 index)
const_reference getValue (const UInt32 index) const
virtual UInt32 getSize (void) const
StorageTypegetValues (void)
const StorageTypegetValues (void) const
virtual const FieldTypegetType (void) const
virtual bool isEmpty (void) const
Set
*void setValues (const StorageType &value)
void setValues (const StorageTypeParent &value)
void setValues (const Self &obj)
virtual void setAbstrValue (const Field &obj)
 Copies the values from a given field iff the two fieldtypes are equal.
void setValue (ArgumentType value, const UInt32 index)
void addValue (ArgumentType value)
STL Interface
*iterator begin (void)
iterator end (void)
reverse_iterator rbegin (void)
reverse_iterator rend (void)
const_iterator begin (void) const
const_iterator end (void) const
const_reverse_iterator rbegin (void) const
const_reverse_iterator rend (void) const
reference front (void)
const_reference front (void) const
reference back (void)
const_reference back (void) const
void clear (void)
iterator insert (iterator pos, ArgumentType value)
iterator erase (iterator pos)
iterator find (ArgumentType value)
const_iterator find (ArgumentType value) const
void push_back (ArgumentType value)
void resize (size_t newsize, FieldTypeT t=FieldTypeT())
void reserve (size_t newsize)
UInt32 size (void) const
UInt32 capacity (void) const
bool empty (void) const
Index Operator
*reference operator[] (UInt32 index)
const_reference operator[] (UInt32 index) const
Assignment
*void operator= (const MField &source)
String IO
*virtual void pushValueByStr (const Char8 *str)
virtual std::string & getValueByStr (std::string &str) const
virtual std::string & getValueByStr (std::string &str, StringConversionStateBase &state) const
virtual std::string & getValueByStr (std::string &str, UInt32 index) const
MT Sync
*void syncWith (Self &source)
Binary Interface
*UInt32 getBinSize (void) const
void copyToBin (BinaryDataHandler &pMem) const
void copyFromBin (BinaryDataHandler &pMem)
Dump
*virtual void dump (void) const

Static Public Member Functions

Class Get
*static const FieldTypegetClassType (void)

Protected Types

typedef Field Inherited

Static Protected Member Functions

static Fieldcreate (void)

Protected Attributes

StorageType _values
UInt32 _uiSharedWith

Static Protected Attributes

static const FieldType _fieldType

Friends

class FieldContainer

Detailed Description

template<class FieldTypeT, Int32 fieldNameSpace = 0>
class osg::MField< FieldTypeT, fieldNameSpace >

Base class for all multi field, for example MFMatrix

Definition at line 72 of file OSGMField.h.


Member Typedef Documentation

template<class FieldTypeT, Int32 fieldNameSpace = 0>
typedef MFieldVector<FieldTypeT> osg::MField< FieldTypeT, fieldNameSpace >::StorageType
 

Definition at line 78 of file OSGMField.h.

template<class FieldTypeT, Int32 fieldNameSpace = 0>
typedef StorageType::Inherited osg::MField< FieldTypeT, fieldNameSpace >::StorageTypeParent
 

Definition at line 79 of file OSGMField.h.

template<class FieldTypeT, Int32 fieldNameSpace = 0>
typedef StorageType::iterator osg::MField< FieldTypeT, fieldNameSpace >::iterator
 

Definition at line 81 of file OSGMField.h.

template<class FieldTypeT, Int32 fieldNameSpace = 0>
typedef StorageType::const_iterator osg::MField< FieldTypeT, fieldNameSpace >::const_iterator
 

Definition at line 82 of file OSGMField.h.

template<class FieldTypeT, Int32 fieldNameSpace = 0>
typedef StorageType::reverse_iterator osg::MField< FieldTypeT, fieldNameSpace >::reverse_iterator
 

Definition at line 85 of file OSGMField.h.

template<class FieldTypeT, Int32 fieldNameSpace = 0>
typedef StorageType::const_reverse_iterator osg::MField< FieldTypeT, fieldNameSpace >::const_reverse_iterator
 

Definition at line 87 of file OSGMField.h.

template<class FieldTypeT, Int32 fieldNameSpace = 0>
typedef StorageType::reference osg::MField< FieldTypeT, fieldNameSpace >::reference
 

Definition at line 90 of file OSGMField.h.

template<class FieldTypeT, Int32 fieldNameSpace = 0>
typedef StorageType::const_reference osg::MField< FieldTypeT, fieldNameSpace >::const_reference
 

Definition at line 91 of file OSGMField.h.

template<class FieldTypeT, Int32 fieldNameSpace = 0>
typedef osgIF<fieldNameSpace == 0, FieldDataTraits <FieldTypeT>, InvalidTrait >::_IRet osg::MField< FieldTypeT, fieldNameSpace >::MF0Trait
 

Definition at line 96 of file OSGMField.h.

template<class FieldTypeT, Int32 fieldNameSpace = 0>
typedef osgIF<fieldNameSpace == 1, FieldDataTraits1<FieldTypeT>, MF0Trait >::_IRet osg::MField< FieldTypeT, fieldNameSpace >::MF1Trait
 

Definition at line 100 of file OSGMField.h.

template<class FieldTypeT, Int32 fieldNameSpace = 0>
typedef osgIF<fieldNameSpace == 2, FieldDataTraits2<FieldTypeT>, MF1Trait >::_IRet osg::MField< FieldTypeT, fieldNameSpace >::MFieldTraits
 

Definition at line 104 of file OSGMField.h.

template<class FieldTypeT, Int32 fieldNameSpace = 0>
typedef MField<FieldTypeT, fieldNameSpace> osg::MField< FieldTypeT, fieldNameSpace >::Self
 

Definition at line 106 of file OSGMField.h.

template<class FieldTypeT, Int32 fieldNameSpace = 0>
typedef FieldTypeT osg::MField< FieldTypeT, fieldNameSpace >::StoredType
 

Definition at line 108 of file OSGMField.h.

template<class FieldTypeT, Int32 fieldNameSpace = 0>
typedef MFieldTraits::ArgumentType osg::MField< FieldTypeT, fieldNameSpace >::ArgumentType
 

Definition at line 110 of file OSGMField.h.

template<class FieldTypeT, Int32 fieldNameSpace = 0>
typedef Field osg::MField< FieldTypeT, fieldNameSpace >::Inherited [protected]
 

Definition at line 292 of file OSGMField.h.


Constructor & Destructor Documentation

template<class FieldTypeT, Int32 fieldNameSpace>
osg::MField< FieldTypeT, fieldNameSpace >::MField void   )  [inline]
 

Definition at line 66 of file OSGMField.inl.

00066                                                :
00067      Inherited   ( ),
00068     _values      ( ),
00069     _uiSharedWith(0)
00070 {
00071 }

template<class FieldTypeT, Int32 fieldNameSpace>
osg::MField< FieldTypeT, fieldNameSpace >::MField const MField< FieldTypeT, fieldNameSpace > &  obj  )  [inline]
 

Definition at line 74 of file OSGMField.inl.

00074                                                             :
00075      Inherited   (obj        ),
00076     _values      (obj._values),
00077     _uiSharedWith(          0)
00078 {
00079 }

template<class FieldTypeT, Int32 fieldNameSpace>
osg::MField< FieldTypeT, fieldNameSpace >::MField const UInt32  size  )  [inline, explicit]
 

Definition at line 82 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

00082                                                             :
00083      Inherited   ( ),
00084     _values      ( ),
00085     _uiSharedWith(0)
00086 {
00087     _values.resize(size);
00088 }

template<class FieldTypeT, Int32 fieldNameSpace>
osg::MField< FieldTypeT, fieldNameSpace >::~MField void   )  [inline, virtual]
 

Definition at line 94 of file OSGMField.inl.

00095 {
00096 }


Member Function Documentation

template<class FieldTypeT, Int32 fieldNameSpace>
const FieldType & osg::MField< FieldTypeT, fieldNameSpace >::getClassType void   )  [inline, static]
 

Definition at line 56 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_fieldType.

Referenced by osg::VRMLFile::initExtIntFieldTypeMapper(), osg::OSGLoader::initFieldTypeMapper(), and osg::VRMLFile::initIntExtFieldTypeMapper().

00057 {
00058     return _fieldType;
00059 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::reference osg::MField< FieldTypeT, fieldNameSpace >::getValue const UInt32  index  )  [inline]
 

Definition at line 483 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::operator[]().

00484 {
00485     return operator[](index);
00486 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::const_reference osg::MField< FieldTypeT, fieldNameSpace >::getValue const UInt32  index  )  const [inline]
 

Definition at line 490 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::operator[]().

00491 {
00492     return operator[](index);
00493 }

template<class FieldTypeT, Int32 fieldNameSpace>
UInt32 osg::MField< FieldTypeT, fieldNameSpace >::getSize void   )  const [inline, virtual]
 

Implements osg::Field.

Definition at line 510 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::size().

Referenced by osg::SHLChunk::checkOSGParameters(), osg::TextureBackground::clear(), osg::Image::createData(), osg::PolygonForeground::draw(), and osg::MaterialPool::get().

00511 {
00512     return size();
00513 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::StorageType & osg::MField< FieldTypeT, fieldNameSpace >::getValues void   )  [inline]
 

Return a reference to the value store

Definition at line 106 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

Referenced by osg::PolygonChunk::changeFrom(), osg::Particles::drawPrimitives(), osg::VRMLExtrusionDesc::endNode(), osg::Window::refreshGLObject(), and osg::Window::reinitializeGLObject().

00107 {
00108     return _values;
00109 }

template<class FieldTypeT, Int32 fieldNameSpace>
const MField< FieldTypeT, fieldNameSpace >::StorageType & osg::MField< FieldTypeT, fieldNameSpace >::getValues void   )  const [inline]
 

Return a const reference to the value store

Definition at line 116 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

00117 {
00118     return _values;
00119 }

template<class FieldTypeT, Int32 fieldNameSpace>
const FieldType & osg::MField< FieldTypeT, fieldNameSpace >::getType void   )  const [inline, virtual]
 

Implements osg::Field.

Definition at line 123 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_fieldType.

Referenced by osg::Surface::FindClosestPoint(), and osg::MField< FieldTypeT, fieldNameSpace >::setAbstrValue().

00124 {
00125     return _fieldType;
00126 }

template<class FieldTypeT, Int32 fieldNameSpace>
bool osg::MField< FieldTypeT, fieldNameSpace >::isEmpty void   )  const [inline, virtual]
 

Implements osg::Field.

Definition at line 130 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::empty().

00131 {
00132     return empty();
00133 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::setValues const StorageType value  )  [inline]
 

Definition at line 161 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

Referenced by osg::Geometry::merge(), osg::Window::operator=(), osg::MField< FieldTypeT, fieldNameSpace >::setAbstrValue(), and osg::MField< FieldTypeT, fieldNameSpace >::syncWith().

00162 {
00163     _values = value;
00164 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::setValues const StorageTypeParent value  )  [inline]
 

Definition at line 167 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

00169 {
00170     // Hack probably move it to MFieldVector (GV)
00171 
00172     *(static_cast<StorageTypeParent *>(&_values)) = value;
00173 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::setValues const Self obj  )  [inline]
 

Definition at line 176 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

00177 {
00178     _values = obj._values;
00179 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::setAbstrValue const Field obj  )  [inline, virtual]
 

Implements osg::Field.

Definition at line 152 of file OSGMField.inl.

References osg::Field::getType(), osg::MField< FieldTypeT, fieldNameSpace >::getType(), and osg::MField< FieldTypeT, fieldNameSpace >::setValues().

00153 {
00154     if(getType() == obj.getType())
00155     {
00156         setValues(*((const MField<FieldTypeT, fieldNameSpace> *) &obj));
00157     }
00158 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::setValue ArgumentType  value,
const UInt32  index
[inline]
 

Definition at line 496 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::operator[]().

00498 {
00499     operator[](index) = value;
00500 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::addValue ArgumentType  value  )  [inline]
 

Definition at line 503 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::push_back().

00504 {
00505     push_back(value);
00506 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::iterator osg::MField< FieldTypeT, fieldNameSpace >::begin void   )  [inline]
 

Definition at line 187 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::begin().

Referenced by osg::State::activate(), osg::MField< FieldTypeT, fieldNameSpace >::begin(), osg::calcVertexTangents(), osg::calcVertexTexCoords(), osg::Node::changed(), osg::MultiPassMaterial::changed(), osg::MaterialPool::changed(), osg::Image::changed(), osg::ChunkMaterial::changed(), osg::State::changeFrom(), osg::MaterialPool::clear(), osg::State::clearChunks(), osg::Geometry::CompareMaterials(), osg::PhongMaterial::createFragmentProgram(), osg::State::deactivate(), osg::Window::drawAllViewports(), osg::State::dump(), osg::SimpleMaterial::dump(), osg::DVRLookupTable::dump(), osg::VRMLGeometryPointSetDesc::endNode(), osg::VRMLGeometryDesc::endNode(), osg::ProgramChunk::findParameter(), osg::Attachment::findParent(), osg::MaterialPool::get(), osg::QNodeTreeView::getBranchRecursion(), osg::ClusterWindow::init(), osg::Node::insertChild(), osg::Window::insertPort(), osg::MultiPassMaterial::isTransparent(), osg::ChunkMaterial::isTransparent(), osg::SimpleMaterial::makeState(), osg::PhongMaterial::makeState(), osg::FresnelMaterial::makeState(), osg::MaterialPool::onDestroy(), osg::SimpleMaterial::rebuildState(), osg::PhongMaterial::rebuildState(), osg::FresnelMaterial::rebuildState(), osg::DVRClipObjects::remove(), osg::Window::renderAllViewports(), osg::MaterialPool::sub(), osg::Node::subChild(), osg::ChunkMaterial::subChunk(), osg::MultiPassMaterial::subMaterial(), osg::ShaderParameterAccess::subParameter(), osg::Window::subPort(), osg::MaterialPool::sync(), osg::Node::updateVolume(), osg::ChunkMaterial::~ChunkMaterial(), osg::MultiPassMaterial::~MultiPassMaterial(), and osg::Node::~Node().

00188 {
00189     return _values.begin();
00190 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::iterator osg::MField< FieldTypeT, fieldNameSpace >::end void   )  [inline]
 

Definition at line 195 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::end().

Referenced by osg::State::activate(), osg::Node::changed(), osg::MultiPassMaterial::changed(), osg::MaterialPool::changed(), osg::Image::changed(), osg::ChunkMaterial::changed(), osg::State::changeFrom(), osg::MaterialPool::clear(), osg::State::clearChunks(), osg::Geometry::CompareMaterials(), osg::PhongMaterial::createFragmentProgram(), osg::State::deactivate(), osg::Window::drawAllViewports(), osg::State::dump(), osg::SimpleMaterial::dump(), osg::DVRLookupTable::dump(), osg::MField< FieldTypeT, fieldNameSpace >::end(), osg::VRMLGeometryPointSetDesc::endNode(), osg::VRMLGeometryDesc::endNode(), osg::ProgramChunk::findParameter(), osg::Attachment::findParent(), osg::MaterialPool::get(), osg::QNodeTreeView::getBranchRecursion(), osg::ClusterWindow::init(), osg::MultiPassMaterial::isTransparent(), osg::ChunkMaterial::isTransparent(), osg::SimpleMaterial::makeState(), osg::PhongMaterial::makeState(), osg::FresnelMaterial::makeState(), osg::MaterialPool::onDestroy(), osg::SimpleMaterial::rebuildState(), osg::PhongMaterial::rebuildState(), osg::FresnelMaterial::rebuildState(), osg::Window::refreshGLObject(), osg::Window::reinitializeGLObject(), osg::DVRClipObjects::remove(), osg::Window::renderAllViewports(), osg::Node::replaceChildBy(), osg::Window::replacePortBy(), osg::MaterialPool::sub(), osg::Node::subChild(), osg::NodeCore::subParent(), osg::Attachment::subParent(), osg::Window::subPort(), osg::MaterialPool::sync(), osg::Node::updateVolume(), osg::ChunkMaterial::~ChunkMaterial(), osg::MultiPassMaterial::~MultiPassMaterial(), and osg::Node::~Node().

00196 {
00197     return _values.end();
00198 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::reverse_iterator osg::MField< FieldTypeT, fieldNameSpace >::rbegin void   )  [inline]
 

Definition at line 204 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::rbegin().

Referenced by osg::QFCItem::addParents(), osg::QFCItem::addRefedContainer(), and osg::MField< FieldTypeT, fieldNameSpace >::rbegin().

00205 {
00206     return _values.rbegin();
00207 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::reverse_iterator osg::MField< FieldTypeT, fieldNameSpace >::rend void   )  [inline]
 

Definition at line 213 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::rend().

Referenced by osg::QFCItem::addParents(), osg::QFCItem::addRefedContainer(), and osg::MField< FieldTypeT, fieldNameSpace >::rend().

00214 {
00215     return _values.rend();
00216 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::const_iterator osg::MField< FieldTypeT, fieldNameSpace >::begin void   )  const [inline]
 

Definition at line 221 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::begin().

00223 {
00224     return _values.begin();
00225 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::const_iterator osg::MField< FieldTypeT, fieldNameSpace >::end void   )  const [inline]
 

Definition at line 230 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::end().

00232 {
00233     return _values.end();
00234 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::const_reverse_iterator osg::MField< FieldTypeT, fieldNameSpace >::rbegin void   )  const [inline]
 

Definition at line 240 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::rbegin().

00241 {
00242     return _values.rbegin();
00243 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::const_reverse_iterator osg::MField< FieldTypeT, fieldNameSpace >::rend void   )  const [inline]
 

Definition at line 249 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::rend().

00250 {
00251     return _values.rend();
00252 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::reference osg::MField< FieldTypeT, fieldNameSpace >::front void   )  [inline]
 

Definition at line 257 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::front().

Referenced by osg::MField< FieldTypeT, fieldNameSpace >::front().

00258 {
00259     return _values.front();
00260 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::const_reference osg::MField< FieldTypeT, fieldNameSpace >::front void   )  const [inline]
 

Definition at line 265 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::front().

00267 {
00268     return _values.front();
00269 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::reference osg::MField< FieldTypeT, fieldNameSpace >::back void   )  [inline]
 

Definition at line 274 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::back().

Referenced by osg::Window::addPort(), and osg::MField< FieldTypeT, fieldNameSpace >::back().

00275 {
00276     return _values.back();
00277 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::const_reference osg::MField< FieldTypeT, fieldNameSpace >::back void   )  const [inline]
 

Definition at line 282 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::back().

00284 {
00285     return _values.back();
00286 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::clear void   )  [inline]
 

Definition at line 289 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

Referenced by osg::VRMLImageTextureDesc::beginNode(), osg::MaterialPool::clear(), osg::Image::clearData(), osg::GradientBackground::clearLines(), osg::SortFirstWindow::clientPreSync(), osg::Image::createData(), osg::ClusterWindow::loadCalibration(), osg::Surface::readfromtso(), and osg::Surface::removeCurves().

00290 {
00291     _values.clear();
00292 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::iterator osg::MField< FieldTypeT, fieldNameSpace >::insert iterator  pos,
ArgumentType  value
[inline]
 

Definition at line 297 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::insert().

Referenced by osg::MField< FieldTypeT, fieldNameSpace >::insert(), osg::Node::insertChild(), and osg::Window::insertPort().

00299 {
00300     return _values.insert(pos, value);
00301 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::iterator osg::MField< FieldTypeT, fieldNameSpace >::erase iterator  pos  )  [inline]
 

Definition at line 306 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::erase().

Referenced by osg::calcVertexTangents(), osg::calcVertexTexCoords(), osg::MField< FieldTypeT, fieldNameSpace >::erase(), osg::MField< FieldTypeT, fieldNameSpace >::getValueByStr(), osg::DVRClipObjects::remove(), osg::GraphicStatisticsForeground::removeElement(), osg::MaterialPool::sub(), osg::Node::subChild(), osg::ChunkMaterial::subChunk(), osg::MultiPassMaterial::subMaterial(), osg::ShaderParameterAccess::subParameter(), osg::NodeCore::subParent(), osg::Attachment::subParent(), and osg::Window::subPort().

00308 {
00309     return _values.erase(pos);
00310 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::iterator osg::MField< FieldTypeT, fieldNameSpace >::find ArgumentType  value  )  [inline]
 

Definition at line 315 of file OSGMField.inl.

Referenced by osg::Geometry::CompareMaterials(), osg::Attachment::findParent(), osg::ClusterWindow::init(), osg::Node::replaceChildBy(), osg::Window::replacePortBy(), osg::MaterialPool::sub(), osg::Node::subChild(), osg::NodeCore::subParent(), osg::Attachment::subParent(), and osg::Window::subPort().

00317 {
00318     return STD::find(_values.begin(), _values.end(), value);
00319 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::const_iterator osg::MField< FieldTypeT, fieldNameSpace >::find ArgumentType  value  )  const [inline]
 

Definition at line 324 of file OSGMField.inl.

00326 {
00327     return STD::find(_values.begin(), _values.end(), value);
00328 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::push_back ArgumentType  value  )  [inline]
 

Definition at line 331 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

Referenced by osg::MaterialPool::add(), osg::DVRClipObjects::add(), osg::Node::addChild(), osg::ChunkMaterial::addChunk(), osg::Surface::addCurve(), osg::SimpleStatisticsForeground::addElement(), osg::GraphicStatisticsForeground::addElement(), osg::ImageForeground::addImage(), osg::GradientBackground::addLine(), osg::MultiPassMaterial::addMaterial(), osg::NodeCore::addParent(), osg::Attachment::addParent(), osg::Window::addPort(), osg::MField< FieldTypeT, fieldNameSpace >::addValue(), osg::calcFaceNormals(), osg::calcVertexNormals(), osg::calcVertexTangents(), osg::calcVertexTexCoords(), osg::SortFirstWindow::clientPreSync(), osg::ClusterWindow::loadCalibration(), osg::MField< FieldTypeT, fieldNameSpace >::pushValueByStr(), osg::Surface::readfromtso(), osg::ShaderParameterAccess::setParameter(), and osg::GeoTypeGraphOp::travNodeEnter().

00332 {
00333     _values.push_back(value);
00334 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::resize size_t  newsize,
FieldTypeT  t = FieldTypeT()
[inline]
 

Definition at line 337 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

Referenced by osg::State::addChunk(), osg::ProgramChunk::addParameter(), osg::DVRVolumeTexture::changed(), osg::DVRLookupTable::changed(), osg::DVRLookupTable::commonConstructor(), osg::Image::createData(), osg::Window::doInitRegisterGLObject(), osg::RegisterCombinersChunk::ensureSizes(), osg::ProgramChunk::setParameter(), and osg::TextureChunk::setShaderOffsetMatrix().

00338 {
00339     _values.resize(newsize, t);
00340 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::reserve size_t  newsize  )  [inline]
 

Definition at line 343 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

Referenced by osg::ParticleBSPTree::build(), and osg::GeoTypeGraphOp::travNodeEnter().

00344 {
00345     _values.reserve(newsize);
00346 }

template<class FieldTypeT, Int32 fieldNameSpace>
UInt32 osg::MField< FieldTypeT, fieldNameSpace >::size void   )  const [inline]
 

Definition at line 349 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

Referenced by osg::PolygonChunk::activate(), osg::SharePtrGraphOp::addAttachmentParent(), osg::State::addChunk(), osg::ChunkMaterial::addChunk(), osg::Surface::addCurve(), osg::ProgramChunk::addParameter(), osg::QFCItem::addParents(), osg::Particles::adjustVolume(), osg::ParticleBSPTree::build(), osg::calcFaceNormals(), osg::Particles::calcIndex(), osg::Geometry::calcMappingIndex(), osg::calcVertexNormals(), osg::calcVertexTangents(), osg::calcVertexTexCoords(), osg::ProxyGroup::changed(), osg::Particles::changed(), osg::GraphicStatisticsForeground::changed(), osg::Geometry::changed(), osg::DVRLookupTable::changed(), osg::PolygonChunk::changeFrom(), osg::SHLChunk::checkOSGParameters(), osg::State::chunkPresent(), osg::SkyBackground::clear(), osg::GradientBackground::clear(), osg::SharePtrGraphOp::clearAttachmentParent(), osg::MultiDisplayWindow::clientInit(), osg::SortFirstWindow::clientPreSync(), osg::SortFirstWindow::clientSwap(), osg::Geometry::CompareMaterials(), compareMField(), osg::Surface::convertSurface(), osg::DVRClipObjects::count(), osg::DisplayCalibration::createCMViewports(), osg::PolygonChunk::deactivate(), osg::Window::doInitRegisterGLObject(), osg::Viewport::draw(), osg::SimpleStatisticsForeground::draw(), osg::PolygonForeground::draw(), osg::ImageForeground::draw(), osg::GraphicStatisticsForeground::draw(), osg::DistanceLOD::draw(), osg::Particles::drawPrimitives(), osg::Geometry::drawPrimitives(), osg::NodeCore::dump(), osg::Node::dump(), osg::Geometry::dump(), osg::DVRLookupTable::dump(), osg::ChunkMaterial::dump(), osg::Attachment::dump(), osg::VRMLGeometryPointSetDesc::endNode(), osg::VRMLGeometryDesc::endNode(), osg::MaterialPool::find(), osg::ChunkMaterial::find(), osg::Node::findChild(), osg::Surface::FindClosestPoint(), osg::Particles::findDrawer(), osg::MaterialPool::get(), osg::Node::getChild(), osg::State::getChunk(), osg::MaterialPool::getCount(), osg::Node::getNChildren(), osg::MultiPassMaterial::getNPasses(), osg::ProgramChunk::getParameter(), osg::MField< FieldTypeT, fieldNameSpace >::getSize(), osg::MultiPassMaterial::getState(), osg::ProgramChunk::handleGL(), osg::TextureChunk::handleTextureShader(), osg::MultiPassMaterial::hasMaterial(), NormalTraitGeneric3f::init(), TexTraitGeneric::init(), SizeTraitGeneric::init(), osg::ClusterWindow::init(), osg::DVRClipObjects::initialize(), osg::NodeCore::invalidateVolume(), osg::ChunkMaterial::makeState(), osg::Geometry::merge0(), osg::Geometry::merge3(), osg::Geometry::merge5(), osg::Geometry::MergeIndex(), osg::Window::onDestroy(), osg::MaterialPool::onDestroy(), osg::SHLParameterChunk::operator==(), osg::SHLChunk::operator==(), osg::ProgramChunk::operator==(), osg::PolygonChunk::operator==(), osg::MultiPassMaterial::rebuildState(), osg::ChunkMaterial::rebuildState(), osg::Window::refreshGLObject(), osg::Window::reinitializeGLObject(), osg::GraphicStatisticsForeground::removeElement(), osg::Viewport::render(), osg::PassiveViewport::render(), osg::Node::replaceChild(), osg::ClusterWindow::saveCalibration(), osg::SortFirstWindow::serverRender(), osg::MultiDisplayWindow::serverRender(), osg::ClusterWindow::serverRender(), osg::ShaderParameterAccess::setParameter(), osg::ProgramChunk::setParameter(), osg::DVRClipObjects::setReferencePlane(), osg::DVRLookupTable::setTouched(), osg::QFCItem::setup(), osg::ProxyGroup::startLoading(), osg::State::subChunk(), osg::ChunkMaterial::subChunk(), osg::MultiPassMaterial::subMaterial(), osg::MaterialPool::sync(), osg::GeoTypeGraphOp::travNodeEnter(), osg::ProjectionCameraDecorator::updateData(), osg::DisplayCalibration::updateGamma(), osg::ShaderParameterAccess::updateMap(), osg::SHLChunk::updateParameters(), osg::Window::validateGLObject(), osg::OSGWriter::visitField(), and osg::OSGWriter::writeField().

00350 {
00351     return _values.size();
00352 }

template<class FieldTypeT, Int32 fieldNameSpace>
UInt32 osg::MField< FieldTypeT, fieldNameSpace >::capacity void   )  const [inline]
 

Definition at line 355 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

00356 {
00357     return _values.capacity();
00358 }

template<class FieldTypeT, Int32 fieldNameSpace>
bool osg::MField< FieldTypeT, fieldNameSpace >::empty void   )  const [inline]
 

Definition at line 361 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

Referenced by osg::Image::getData(), osg::MField< FieldTypeT, fieldNameSpace >::isEmpty(), and osg::SHLChunk::updateParameters().

00362 {
00363     return _values.empty();
00364 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::reference osg::MField< FieldTypeT, fieldNameSpace >::operator[] UInt32  index  )  [inline]
 

Definition at line 468 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

Referenced by osg::MField< FieldTypeT, fieldNameSpace >::getValue(), and osg::MField< FieldTypeT, fieldNameSpace >::setValue().

00469 {
00470     return _values[index];
00471 }

template<class FieldTypeT, Int32 fieldNameSpace>
MField< FieldTypeT, fieldNameSpace >::const_reference osg::MField< FieldTypeT, fieldNameSpace >::operator[] UInt32  index  )  const [inline]
 

Definition at line 475 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

00476 {
00477     return _values[index];
00478 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::operator= const MField< FieldTypeT, fieldNameSpace > &  source  )  [inline]
 

Definition at line 136 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

00137 {
00138     if(this == &source)
00139        return;
00140 
00141     _values = source._values;
00142 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::pushValueByStr const Char8 str  )  [inline, virtual]
 

Implements osg::Field.

Definition at line 370 of file OSGMField.inl.

References osg::FieldTraits::FromStringConvertable, and osg::MField< FieldTypeT, fieldNameSpace >::push_back().

00371 {
00372     FieldTypeT  tmpVal;
00373 
00374     typedef typename osgIF< (MFieldTraits::StringConvertable &
00375                              FieldTraits ::FromStringConvertable), 
00376                             MFieldTraits, 
00377                             ErrorFromToString<FieldTypeT> >::_IRet Converter;
00378     
00379     Converter::getFromString(tmpVal, str);
00380     
00381     push_back(tmpVal);
00382 }

template<class FieldTypeT, Int32 fieldNameSpace>
std::string & osg::MField< FieldTypeT, fieldNameSpace >::getValueByStr std::string &  str  )  const [inline, virtual]
 

Implements osg::Field.

Definition at line 386 of file OSGMField.inl.

References osg::FieldTraits::ToStringConvertable.

00387 {
00388     std::string tmpString;
00389 
00390     typedef typename osgIF< (MFieldTraits::StringConvertable &
00391                              FieldTraits ::ToStringConvertable),
00392                             MFieldTraits,
00393                             ErrorFromToString<FieldTypeT> >::_IRet Converter;
00394 
00395     for(UInt32 i = 0; i < size(); ++i)
00396     {
00397         Converter::putToString(_values[i], tmpString);
00398 
00399         str.append(tmpString);
00400 
00401         if(i < (size()-1))
00402         {
00403             str.append(", ");
00404         }
00405     }
00406 
00407     return str;
00408 }

template<class FieldTypeT, Int32 fieldNameSpace>
std::string & osg::MField< FieldTypeT, fieldNameSpace >::getValueByStr std::string &  str,
StringConversionStateBase state
const [inline, virtual]
 

Implements osg::Field.

Definition at line 412 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::erase(), and osg::FieldTraits::ToStringConvertable.

00415 {
00416     std::string valStr;
00417 
00418     typedef typename osgIF< (MFieldTraits::StringConvertable &
00419                              FieldTraits ::ToStringConvertable),
00420                             MFieldTraits,
00421                             ErrorFromToString<FieldTypeT> >::_IRet Converter;
00422 
00423     state.beginField(this, outStr);
00424 
00425     for(UInt32 i = 0; i < size(); ++i)
00426     {
00427         valStr.erase();
00428         Converter::putToString(_values[i], valStr);
00429 
00430         state.addValueStr(valStr, outStr);
00431     }
00432 
00433     state.endField(this, outStr);
00434     
00435     return outStr;
00436 }

template<class FieldTypeT, Int32 fieldNameSpace>
std::string & osg::MField< FieldTypeT, fieldNameSpace >::getValueByStr std::string &  str,
UInt32  index
const [inline, virtual]
 

Implements osg::Field.

Definition at line 440 of file OSGMField.inl.

References osg::FieldTraits::ToStringConvertable.

00443 {
00444     if(index >= size())
00445     {
00446         return str;
00447     }
00448 
00449     std::string tmpString;
00450 
00451     typedef typename osgIF< (MFieldTraits::StringConvertable &
00452                              FieldTraits::ToStringConvertable),
00453                             MFieldTraits,
00454                             ErrorFromToString<FieldTypeT> >::_IRet Converter;
00455 
00456     Converter::putToString(_values[index], tmpString);
00457 
00458     str.append(tmpString);
00459 
00460     return str;
00461 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::syncWith Self source  )  [inline]
 

Definition at line 520 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::setValues().

Referenced by osg::WindowBase::executeSyncImpl(), osg::ViewportBase::executeSyncImpl(), osg::TextureChunkBase::executeSyncImpl(), osg::TextureBackgroundBase::executeSyncImpl(), osg::SurfaceBase::executeSyncImpl(), osg::StatisticsForegroundBase::executeSyncImpl(), osg::StateBase::executeSyncImpl(), osg::SortFirstWindowBase::executeSyncImpl(), osg::SkyBackgroundBase::executeSyncImpl(), osg::SimpleStatisticsForegroundBase::executeSyncImpl(), osg::ShaderParameterChunkBase::executeSyncImpl(), osg::RegisterCombinersChunkBase::executeSyncImpl(), osg::ProxyGroupBase::executeSyncImpl(), osg::ProjectionCameraDecoratorBase::executeSyncImpl(), osg::ProgramChunkBase::executeSyncImpl(), osg::PolygonForegroundBase::executeSyncImpl(), osg::PolygonChunkBase::executeSyncImpl(), osg::PolygonBackgroundBase::executeSyncImpl(), osg::ParticlesBase::executeSyncImpl(), osg::Node::executeSyncImpl(), osg::NodeCore::executeSyncImpl(), osg::MultiPassMaterialBase::executeSyncImpl(), osg::MaterialPoolBase::executeSyncImpl(), osg::InlineBase::executeSyncImpl(), osg::ImageForegroundBase::executeSyncImpl(), osg::ImageBase::executeSyncImpl(), osg::GraphicStatisticsForegroundBase::executeSyncImpl(), osg::GradientBackgroundBase::executeSyncImpl(), osg::GeometryBase::executeSyncImpl(), osg::DVRVolumeTextureBase::executeSyncImpl(), osg::DVRVolumeBase::executeSyncImpl(), osg::DVRLookupTableBase::executeSyncImpl(), osg::DVRClipObjectsBase::executeSyncImpl(), osg::DistanceLODBase::executeSyncImpl(), osg::DisplayCalibrationBase::executeSyncImpl(), osg::ClusterWindowBase::executeSyncImpl(), osg::ChunkMaterialBase::executeSyncImpl(), and osg::Attachment::executeSyncImpl().

00521 {
00522     setValues(source);
00523 }

template<class FieldTypeT, Int32 fieldNameSpace>
UInt32 osg::MField< FieldTypeT, fieldNameSpace >::getBinSize void   )  const [inline]
 

Definition at line 687 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

Referenced by osg::WindowBase::getBinSize(), osg::ViewportBase::getBinSize(), osg::TextureChunkBase::getBinSize(), osg::TextureBackgroundBase::getBinSize(), osg::SurfaceBase::getBinSize(), osg::StatisticsForegroundBase::getBinSize(), osg::StateBase::getBinSize(), osg::SortFirstWindowBase::getBinSize(), osg::SkyBackgroundBase::getBinSize(), osg::SimpleStatisticsForegroundBase::getBinSize(), osg::ShaderParameterChunkBase::getBinSize(), osg::RegisterCombinersChunkBase::getBinSize(), osg::ProxyGroupBase::getBinSize(), osg::ProjectionCameraDecoratorBase::getBinSize(), osg::ProgramChunkBase::getBinSize(), osg::PolygonForegroundBase::getBinSize(), osg::PolygonChunkBase::getBinSize(), osg::PolygonBackgroundBase::getBinSize(), osg::ParticlesBase::getBinSize(), osg::Node::getBinSize(), osg::NodeCore::getBinSize(), osg::MultiPassMaterialBase::getBinSize(), osg::MaterialPoolBase::getBinSize(), osg::InlineBase::getBinSize(), osg::ImageForegroundBase::getBinSize(), osg::ImageBase::getBinSize(), osg::GraphicStatisticsForegroundBase::getBinSize(), osg::GradientBackgroundBase::getBinSize(), osg::GeometryBase::getBinSize(), osg::DVRVolumeTextureBase::getBinSize(), osg::DVRVolumeBase::getBinSize(), osg::DVRLookupTableBase::getBinSize(), osg::DVRClipObjectsBase::getBinSize(), osg::DistanceLODBase::getBinSize(), osg::DisplayCalibrationBase::getBinSize(), osg::ClusterWindowBase::getBinSize(), osg::ChunkMaterialBase::getBinSize(), and osg::Attachment::getBinSize().

00688 {
00689     return sizeof(UInt32) + // num elements
00690            MFieldTraits::getBinSize(&(_values[0]), _values.size());
00691 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::copyToBin BinaryDataHandler pMem  )  const [inline]
 

Definition at line 695 of file OSGMField.inl.

Referenced by osg::WindowBase::copyToBin(), osg::ViewportBase::copyToBin(), osg::TextureChunkBase::copyToBin(), osg::TextureBackgroundBase::copyToBin(), osg::SurfaceBase::copyToBin(), osg::StatisticsForegroundBase::copyToBin(), osg::StateBase::copyToBin(), osg::SortFirstWindowBase::copyToBin(), osg::SkyBackgroundBase::copyToBin(), osg::SimpleStatisticsForegroundBase::copyToBin(), osg::ShaderParameterChunkBase::copyToBin(), osg::RegisterCombinersChunkBase::copyToBin(), osg::ProxyGroupBase::copyToBin(), osg::ProjectionCameraDecoratorBase::copyToBin(), osg::ProgramChunkBase::copyToBin(), osg::PolygonForegroundBase::copyToBin(), osg::PolygonChunkBase::copyToBin(), osg::PolygonBackgroundBase::copyToBin(), osg::ParticlesBase::copyToBin(), osg::Node::copyToBin(), osg::NodeCore::copyToBin(), osg::MultiPassMaterialBase::copyToBin(), osg::MaterialPoolBase::copyToBin(), osg::InlineBase::copyToBin(), osg::ImageForegroundBase::copyToBin(), osg::ImageBase::copyToBin(), osg::GraphicStatisticsForegroundBase::copyToBin(), osg::GradientBackgroundBase::copyToBin(), osg::GeometryBase::copyToBin(), osg::DVRVolumeTextureBase::copyToBin(), osg::DVRVolumeBase::copyToBin(), osg::DVRLookupTableBase::copyToBin(), osg::DVRClipObjectsBase::copyToBin(), osg::DistanceLODBase::copyToBin(), osg::DisplayCalibrationBase::copyToBin(), osg::ClusterWindowBase::copyToBin(), osg::ChunkMaterialBase::copyToBin(), and osg::Attachment::copyToBin().

00696 {
00697     UInt32 n = _values.size();
00698 
00699     pMem.putValue(n);
00700     MFieldTraits::copyToBin(   pMem, 
00701                             &(_values[0]),
00702                               _values.size());
00703 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::copyFromBin BinaryDataHandler pMem  )  [inline]
 

Definition at line 706 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values, and osg::BinaryDataHandler::getValue().

Referenced by osg::WindowBase::copyFromBin(), osg::ViewportBase::copyFromBin(), osg::TextureChunkBase::copyFromBin(), osg::TextureBackgroundBase::copyFromBin(), osg::SurfaceBase::copyFromBin(), osg::StatisticsForegroundBase::copyFromBin(), osg::StateBase::copyFromBin(), osg::SortFirstWindowBase::copyFromBin(), osg::SkyBackgroundBase::copyFromBin(), osg::SimpleStatisticsForegroundBase::copyFromBin(), osg::ShaderParameterChunkBase::copyFromBin(), osg::RegisterCombinersChunkBase::copyFromBin(), osg::ProxyGroupBase::copyFromBin(), osg::ProjectionCameraDecoratorBase::copyFromBin(), osg::ProgramChunkBase::copyFromBin(), osg::PolygonForegroundBase::copyFromBin(), osg::PolygonChunkBase::copyFromBin(), osg::PolygonBackgroundBase::copyFromBin(), osg::ParticlesBase::copyFromBin(), osg::Node::copyFromBin(), osg::NodeCore::copyFromBin(), osg::MultiPassMaterialBase::copyFromBin(), osg::MaterialPoolBase::copyFromBin(), osg::InlineBase::copyFromBin(), osg::ImageForegroundBase::copyFromBin(), osg::ImageBase::copyFromBin(), osg::GraphicStatisticsForegroundBase::copyFromBin(), osg::GradientBackgroundBase::copyFromBin(), osg::GeometryBase::copyFromBin(), osg::DVRVolumeTextureBase::copyFromBin(), osg::DVRVolumeBase::copyFromBin(), osg::DVRLookupTableBase::copyFromBin(), osg::DVRClipObjectsBase::copyFromBin(), osg::DistanceLODBase::copyFromBin(), osg::DisplayCalibrationBase::copyFromBin(), osg::ClusterWindowBase::copyFromBin(), osg::ChunkMaterialBase::copyFromBin(), and osg::Attachment::copyFromBin().

00707 {
00708     UInt32 n;
00709 
00710      pMem  .getValue(n);
00711     _values.clear ( );
00712 
00713 #ifdef __hpux
00714     FieldTypeT tmpVal;
00715 
00716     _values.resize(n, tmpVal);
00717 #else
00718     _values.resize(n);
00719 #endif
00720 
00721     MFieldTraits::copyFromBin(pMem, 
00722                               &(_values[0]),
00723                               n);
00724 }

template<class FieldTypeT, Int32 fieldNameSpace>
void osg::MField< FieldTypeT, fieldNameSpace >::dump void   )  const [inline, virtual]
 

Implements osg::Field.

Definition at line 730 of file OSGMField.inl.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

Referenced by osg::Node::dump().

00731 {
00732     std::cout << "STMFST : " << std::endl;
00733 
00734     for(UInt32 i = 0; i < _values.size(); i++)
00735     {
00736 //        cout << _values[i] << " , ";
00737     }
00738 
00739     std::cout << std::endl;
00740 }

template<class FieldTypeT, Int32 fieldNameSpace>
Field * osg::MField< FieldTypeT, fieldNameSpace >::create void   )  [inline, static, protected]
 

Definition at line 746 of file OSGMField.inl.

00747 {
00748     return new MField<FieldTypeT, fieldNameSpace>(); 
00749 }

template<>
UInt32 osg::MField< bool, 2 >::getBinSize void   )  const [inline]
 

Definition at line 78 of file OSGMFSysTypes.h.

References osg::MField< FieldTypeT, fieldNameSpace >::_values.

00079 {
00080     return sizeof(UInt32) + // num elements
00081            sizeof(UInt8) * _values.size();
00082 }

template<>
void osg::MField< bool, 2 >::copyToBin BinaryDataHandler pMem  )  const [inline]
 

Definition at line 85 of file OSGMFSysTypes.h.

References osg::MField< FieldTypeT, fieldNameSpace >::_values, and osg::BinaryDataHandler::putValue().

00086 {
00087     UInt32 n = _values.size();
00088 
00089     pMem.putValue(n);
00090 
00091     for(UInt32 i = 0; i < n; ++i)
00092     {
00093         UInt8 bval = _values[i];
00094 
00095         pMem.putValue(bval);
00096     }
00097 }

template<>
void osg::MField< bool, 2 >::copyFromBin BinaryDataHandler pMem  )  [inline]
 

Definition at line 100 of file OSGMFSysTypes.h.

References osg::MField< FieldTypeT, fieldNameSpace >::_values, and osg::BinaryDataHandler::getValue().

00101 {
00102     UInt32 n;
00103     
00104      pMem  .getValue(n);
00105     _values.clear ( );
00106 
00107 #ifdef __hpux
00108     bool tmpVal;
00109 
00110     _values.resize(n, tmpVal);
00111 #else
00112     _values.resize(n);
00113 #endif
00114 
00115     UInt8 tmpBVal;
00116 
00117     for(UInt32 i = 0; i < n; ++i)
00118     {
00119         pMem.getValue(tmpBVal);
00120 
00121         _values[i] = (tmpBVal != 0);
00122     }
00123 }

const DataType & Field::getContentType void   )  const [inherited]
 

Definition at line 62 of file OSGField.cpp.

References osg::FieldType::getContentType(), and osg::Field::getType().

Referenced by osg::StandardStringConversionState::beginField(), and osg::QFieldLabelFactory::createLabel().

00063 {
00064     return getType().getContentType();
00065 }

FieldType::Cardinality Field::getCardinality void   )  const [inherited]
 

Definition at line 67 of file OSGField.cpp.

References osg::FieldType::getCardinality(), and osg::Field::getType().

Referenced by osg::StandardStringConversionState::beginField(), osg::SharePtrGraphOp::compareFCs(), osg::deepClone(), osg::BINWriter::doIndexFC(), osg::QNodeTreeView::getBranchRecursion(), osg::SharePtrGraphOp::isEqual(), isEqual(), osg::isMFFieldContainerPtr(), osg::isSFFieldContainerPtr(), osg::RemoteAspect::receiveSync(), osg::OSGLoader::setFieldContainerValue(), osg::QVectorFieldValueLabel< VectorTypeT >::updateCache(), osg::QPointFieldValueLabel< PointTypeT >::updateCache(), osg::QMatrixFieldValueLabel< MatrixTypeT >::updateCache(), osg::MultiDisplayWindow::updateViewport(), osg::OSGWriter::visitField(), and osg::OSGWriter::writeField().

00068 {
00069     return getType().getCardinality();
00070 }


Friends And Related Function Documentation

template<class FieldTypeT, Int32 fieldNameSpace = 0>
friend class FieldContainer [friend]
 

Definition at line 310 of file OSGMField.h.


Member Data Documentation

template<class FieldTypeT, Int32 fieldNameSpace = 0>
const FieldType osg::MField< FieldTypeT, fieldNameSpace >::_fieldType [static, protected]
 

Definition at line 297 of file OSGMField.h.

Referenced by osg::MField< FieldTypeT, fieldNameSpace >::getClassType(), and osg::MField< FieldTypeT, fieldNameSpace >::getType().

template<class FieldTypeT, Int32 fieldNameSpace = 0>
StorageType osg::MField< FieldTypeT, fieldNameSpace >::_values [protected]
 

Definition at line 299 of file OSGMField.h.

Referenced by osg::MField< FieldTypeT, fieldNameSpace >::capacity(), osg::MField< FieldTypeT, fieldNameSpace >::clear(), osg::MField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::MField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::MField< FieldTypeT, fieldNameSpace >::dump(), osg::MField< FieldTypeT, fieldNameSpace >::empty(), osg::MField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::MField< FieldTypeT, fieldNameSpace >::getValues(), osg::MField< FieldTypeT, fieldNameSpace >::MField(), osg::MField< FieldTypeT, fieldNameSpace >::operator=(), osg::MField< FieldTypeT, fieldNameSpace >::operator[](), osg::MField< FieldTypeT, fieldNameSpace >::push_back(), osg::MField< FieldTypeT, fieldNameSpace >::reserve(), osg::MField< FieldTypeT, fieldNameSpace >::resize(), osg::MField< FieldTypeT, fieldNameSpace >::setValues(), and osg::MField< FieldTypeT, fieldNameSpace >::size().

template<class FieldTypeT, Int32 fieldNameSpace = 0>
UInt32 osg::MField< FieldTypeT, fieldNameSpace >::_uiSharedWith [protected]
 

Definition at line 301 of file OSGMField.h.


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