#include <OSGShaderParameterChunk.h>
Inheritance diagram for osg::ShaderParameterChunk:

Chunk Class Access | |
| *UInt32 | getClassId (void) const |
| virtual const StateChunkClass * | getClass (void) const |
State | |
| *virtual void | activate (DrawActionBase *action, UInt32 index=0) |
| virtual void | changeFrom (DrawActionBase *action, StateChunk *old, UInt32 index=0) |
| virtual void | deactivate (DrawActionBase *action, UInt32 index=0) |
| virtual bool | isTransparent (void) const |
General Fieldcontainer Declaration | |
| virtual osg::FieldContainerPtr | shallowCopy (void) const |
| static AttachmentPtr | create (void) |
| static AttachmentPtr | createEmpty (void) |
Sync | |
| *void | executeSyncImpl (ShaderParameterChunkBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Public Types | |
| typedef ShaderParameterChunkPtr | Ptr |
| enum | { ParametersFieldId = Inherited::NextFieldId, NextFieldId = ParametersFieldId + 1 } |
Public Member Functions | |
Sync | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
Output | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Binary Access | |
| *virtual UInt32 | getBinSize (const BitVector &whichField) |
| virtual void | copyToBin (BinaryDataHandler &pMem, const BitVector &whichField) |
| virtual void | copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField) |
Static Public Member Functions | |
Class Get | |
| *static FieldContainerType & | getClassType (void) |
| access the type of the class | |
| static UInt32 | getClassTypeId (void) |
| access the numerical type of the class | |
Static Public Attributes | |
| static const osg::BitVector | ParametersFieldMask |
| static const osg::BitVector | MTInfluenceMask |
| static const BitVector | InternalFieldMask = (1 << Attachment::InternalFieldId) |
| static const BitVector | ParentsFieldMask = (1 << Attachment::ParentsFieldId) |
| static const BitVector | NextFieldMask |
Protected Member Functions | |
| void | onCreate (const ShaderParameterChunk *source=NULL) |
| void | onDestroy (void) |
Constructors | |
| * | ShaderParameterChunk (void) |
| ShaderParameterChunk (const ShaderParameterChunk &source) | |
Destructors | |
| *virtual | ~ShaderParameterChunk (void) |
Private Types | |
| typedef ShaderParameterChunkBase | Inherited |
Private Member Functions | |
| void | operator= (const ShaderParameterChunk &source) |
Static Private Member Functions | |
| static void | initMethod (void) |
Friends | |
| class | FieldContainer |
| class | ShaderParameterChunkBase |
Definition at line 56 of file OSGShaderParameterChunk.h.
|
|
Reimplemented from osg::ShaderParameterChunkBase. Reimplemented in osg::ShaderChunk, osg::ShaderChunkBase, osg::SHLChunk, osg::SHLChunkBase, osg::SHLParameterChunk, and osg::SHLParameterChunkBase. Definition at line 60 of file OSGShaderParameterChunk.h. |
|
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::ShaderChunkBase, osg::SHLChunkBase, and osg::SHLParameterChunkBase. Definition at line 90 of file OSGShaderParameterChunkBase.h. |
|
|
Reimplemented from osg::Attachment. Definition at line 92 of file OSGShaderParameterChunkBase.h. 00093 { 00094 ParametersFieldId = Inherited::NextFieldId, 00095 NextFieldId = ParametersFieldId + 1 00096 };
|
|
|
Definition at line 92 of file OSGShaderParameterChunk.cpp. 00092 : 00093 Inherited(), 00094 _parameter_access(NULL) 00095 { 00096 }
|
|
|
Definition at line 98 of file OSGShaderParameterChunk.cpp. 00098 : 00099 Inherited(source), 00100 _parameter_access(source._parameter_access) 00101 { 00102 }
|
|
|
Definition at line 104 of file OSGShaderParameterChunk.cpp.
|
|
||||||||||||
|
Reimplemented from osg::StateChunk. Reimplemented in osg::ShaderChunk, osg::SHLChunk, and osg::SHLParameterChunk. Definition at line 129 of file OSGShaderParameterChunk.cpp. References osg::StateChunk::changed(). Referenced by osg::SHLParameterChunk::changed(), and osg::ShaderChunk::changed(). 00130 { 00131 Inherited::changed(whichField, origin); 00132 }
|
|
||||||||||||
|
Reimplemented from osg::StateChunk. Reimplemented in osg::ShaderChunk, osg::SHLChunk, and osg::SHLParameterChunk. Definition at line 134 of file OSGShaderParameterChunk.cpp. References SLOG. 00136 { 00137 SLOG << "Dump ShaderParameterChunk NI" << std::endl; 00138 }
|
|
||||||||||||
|
Definition at line 145 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::ShaderParameterAccess::setParameter(). Referenced by osg::SHLChunk::addParameterCallback(). 00146 { 00147 return _parameter_access->setParameter<ShaderParameterBool>(name, value); 00148 }
|
|
||||||||||||
|
Definition at line 150 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::ShaderParameterAccess::setParameter(). 00151 { 00152 return _parameter_access->setParameter<ShaderParameterInt>(name, value); 00153 }
|
|
||||||||||||
|
Definition at line 155 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::ShaderParameterAccess::setParameter(). 00156 { 00157 return _parameter_access->setParameter<ShaderParameterReal>(name, value); 00158 }
|
|
||||||||||||
|
Definition at line 160 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::ShaderParameterAccess::setParameter(). 00161 { 00162 return _parameter_access->setParameter<ShaderParameterVec2f>(name, value); 00163 }
|
|
||||||||||||
|
Definition at line 165 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::ShaderParameterAccess::setParameter(). 00166 { 00167 return _parameter_access->setParameter<ShaderParameterVec3f>(name, value); 00168 }
|
|
||||||||||||
|
Definition at line 170 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::ShaderParameterAccess::setParameter(). 00171 { 00172 return _parameter_access->setParameter<ShaderParameterVec4f>(name, value); 00173 }
|
|
||||||||||||
|
Definition at line 175 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::ShaderParameterAccess::setParameter(). 00176 { 00177 return _parameter_access->setParameter<ShaderParameterMatrix>(name, value); 00178 }
|
|
||||||||||||
|
Definition at line 182 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::ShaderParameterAccess::getParameter(). 00183 { 00184 return _parameter_access->getParameter<ShaderParameterBool>(name, value); 00185 }
|
|
||||||||||||
|
Definition at line 187 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::ShaderParameterAccess::getParameter(). 00188 { 00189 return _parameter_access->getParameter<ShaderParameterInt>(name, value); 00190 }
|
|
||||||||||||
|
Definition at line 192 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::ShaderParameterAccess::getParameter(). 00193 { 00194 return _parameter_access->getParameter<ShaderParameterReal>(name, value); 00195 }
|
|
||||||||||||
|
Definition at line 197 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::ShaderParameterAccess::getParameter(). 00198 { 00199 return _parameter_access->getParameter<ShaderParameterVec2f>(name, value); 00200 }
|
|
||||||||||||
|
Definition at line 202 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::ShaderParameterAccess::getParameter(). 00203 { 00204 return _parameter_access->getParameter<ShaderParameterVec3f>(name, value); 00205 }
|
|
||||||||||||
|
Definition at line 207 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::ShaderParameterAccess::getParameter(). 00208 { 00209 return _parameter_access->getParameter<ShaderParameterVec4f>(name, value); 00210 }
|
|
||||||||||||
|
Definition at line 212 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::ShaderParameterAccess::getParameter(). 00213 { 00214 return _parameter_access->getParameter<ShaderParameterMatrix>(name, value); 00215 }
|
|
|
Definition at line 217 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::ShaderParameterAccess::subParameter(). 00218 { 00219 return _parameter_access->subParameter(name); 00220 }
|
|
|
Definition at line 108 of file OSGShaderParameterChunk.cpp. References _parameter_access, osg::ShaderParameterChunkBase::getParameters(), osg::GlobalSystemState, osg::FieldContainer::onCreate(), and osg::Startup. Referenced by osg::SHLChunk::onCreate(). 00109 { 00110 Inherited::onCreate(source); 00111 00112 // ignore prototypes. 00113 if(GlobalSystemState == Startup) 00114 return; 00115 00116 _parameter_access = new ShaderParameterAccess(getParameters()); 00117 }
|
|
|
Reimplemented from osg::Attachment. Reimplemented in osg::SHLChunk. Definition at line 119 of file OSGShaderParameterChunk.cpp. References _parameter_access, and osg::Attachment::onDestroy(). Referenced by osg::SHLChunk::onDestroy(). 00120 { 00121 Inherited::onDestroy(); 00122 00123 if(_parameter_access != NULL) 00124 delete _parameter_access; 00125 }
|
|
|
Reimplemented from osg::StateChunk. Reimplemented in osg::ShaderChunk, osg::SHLChunk, and osg::SHLParameterChunk. Definition at line 77 of file OSGShaderParameterChunk.cpp.
|
|
|
|
|
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::ShaderChunkBase, osg::SHLChunkBase, and osg::SHLParameterChunkBase. Definition at line 58 of file OSGShaderParameterChunkBase.inl. References osg::ShaderParameterChunkBase::_type. 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::ShaderChunkBase, osg::SHLChunkBase, and osg::SHLParameterChunkBase. Definition at line 65 of file OSGShaderParameterChunkBase.inl. References osg::ShaderParameterChunkBase::_type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::ShaderChunkBase, osg::SHLChunkBase, and osg::SHLParameterChunkBase. Definition at line 106 of file OSGShaderParameterChunkBase.cpp. References osg::ShaderParameterChunkBase::_type. 00107 { 00108 return _type; 00109 }
|
|
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::ShaderChunkBase, osg::SHLChunkBase, and osg::SHLParameterChunkBase. Definition at line 111 of file OSGShaderParameterChunkBase.cpp. References osg::ShaderParameterChunkBase::_type. 00112 { 00113 return _type; 00114 }
|
|
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::ShaderChunkBase, osg::SHLChunkBase, and osg::SHLParameterChunkBase. Definition at line 117 of file OSGShaderParameterChunkBase.cpp. 00118 { 00119 return sizeof(ShaderParameterChunk); 00120 }
|
|
|
Definition at line 75 of file OSGShaderParameterChunkBase.inl. References osg::ShaderParameterChunkBase::_mfParameters. 00076 { 00077 return &_mfParameters; 00078 }
|
|
|
Definition at line 84 of file OSGShaderParameterChunkBase.inl. References osg::ShaderParameterChunkBase::_mfParameters. Referenced by osg::SHLParameterChunk::operator==(), and osg::SHLChunk::operator==(). 00085 { 00086 return _mfParameters[index]; 00087 }
|
|
|
Definition at line 91 of file OSGShaderParameterChunkBase.inl. References osg::ShaderParameterChunkBase::_mfParameters. Referenced by osg::SHLChunk::checkOSGParameters(), osg::SHLChunk::handleGL(), onCreate(), osg::SHLParameterChunk::operator==(), osg::SHLChunk::operator==(), osg::SHLParameterChunk::updateParameters(), and osg::SHLChunk::updateProgram(). 00092 { 00093 return _mfParameters; 00094 }
|
|
|
Definition at line 98 of file OSGShaderParameterChunkBase.inl. References osg::ShaderParameterChunkBase::_mfParameters. 00099 { 00100 return _mfParameters; 00101 }
|
|
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::ShaderChunkBase, osg::SHLChunkBase, and osg::SHLParameterChunkBase. Definition at line 180 of file OSGShaderParameterChunkBase.cpp. References osg::ShaderParameterChunkBase::_mfParameters, osg::MField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::StateChunkBase::getBinSize(), osg::FieldBits::NoField, and osg::ShaderParameterChunkBase::ParametersFieldMask. Referenced by osg::SHLParameterChunkBase::getBinSize(), and osg::ShaderChunkBase::getBinSize(). 00181 { 00182 UInt32 returnValue = Inherited::getBinSize(whichField); 00183 00184 if(FieldBits::NoField != (ParametersFieldMask & whichField)) 00185 { 00186 returnValue += _mfParameters.getBinSize(); 00187 } 00188 00189 00190 return returnValue; 00191 }
|
|
||||||||||||
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::ShaderChunkBase, osg::SHLChunkBase, and osg::SHLParameterChunkBase. Definition at line 193 of file OSGShaderParameterChunkBase.cpp. References osg::ShaderParameterChunkBase::_mfParameters, osg::MField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::StateChunkBase::copyToBin(), osg::FieldBits::NoField, and osg::ShaderParameterChunkBase::ParametersFieldMask. Referenced by osg::SHLParameterChunkBase::copyToBin(), and osg::ShaderChunkBase::copyToBin(). 00195 { 00196 Inherited::copyToBin(pMem, whichField); 00197 00198 if(FieldBits::NoField != (ParametersFieldMask & whichField)) 00199 { 00200 _mfParameters.copyToBin(pMem); 00201 } 00202 00203 00204 }
|
|
||||||||||||
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::ShaderChunkBase, osg::SHLChunkBase, and osg::SHLParameterChunkBase. Definition at line 206 of file OSGShaderParameterChunkBase.cpp. References osg::ShaderParameterChunkBase::_mfParameters, osg::MField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::StateChunkBase::copyFromBin(), osg::FieldBits::NoField, and osg::ShaderParameterChunkBase::ParametersFieldMask. Referenced by osg::SHLParameterChunkBase::copyFromBin(), and osg::ShaderChunkBase::copyFromBin(). 00208 { 00209 Inherited::copyFromBin(pMem, whichField); 00210 00211 if(FieldBits::NoField != (ParametersFieldMask & whichField)) 00212 { 00213 _mfParameters.copyFromBin(pMem); 00214 } 00215 00216 00217 }
|
|
||||||||||||
|
Definition at line 220 of file OSGShaderParameterChunkBase.cpp. References osg::ShaderParameterChunkBase::_mfParameters, osg::StateChunkBase::executeSyncImpl(), osg::FieldBits::NoField, osg::ShaderParameterChunkBase::ParametersFieldMask, and osg::MField< FieldTypeT, fieldNameSpace >::syncWith(). Referenced by osg::ShaderParameterChunkBase::executeSync(), osg::SHLParameterChunkBase::executeSyncImpl(), and osg::ShaderChunkBase::executeSyncImpl(). 00222 { 00223 00224 Inherited::executeSyncImpl(pOther, whichField); 00225 00226 if(FieldBits::NoField != (ParametersFieldMask & whichField)) 00227 _mfParameters.syncWith(pOther->_mfParameters); 00228 00229 00230 }
|
|
||||||||||||
|
||||||||||||
|
||||||||||||
|
Definition at line 333 of file OSGFieldContainerImpl.inl. Referenced by osg::StateBase::executeSyncImpl(), osg::DVRShaderBase::executeSyncImpl(), osg::DVRClipGeometryBase::executeSyncImpl(), osg::AttachmentContainer::executeSyncImpl(), and osg::Attachment::executeSyncImpl().
|
|
||||||||||||
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::ShaderChunkBase, osg::SHLChunkBase, and osg::SHLParameterChunkBase. Definition at line 124 of file OSGShaderParameterChunkBase.cpp. References osg::ShaderParameterChunkBase::executeSyncImpl(). 00126 { 00127 this->executeSyncImpl((ShaderParameterChunkBase *) &other, whichField); 00128 }
|
|
|
Definition at line 48 of file OSGStateChunk.inl. References osg::StateChunk::getClass(), and osg::StateChunkClass::getId(). 00049 { 00050 return getClass()->getId(); 00051 }
|
|
|
|
Reimplemented in osg::BlendChunk, |