#include <OSGProgramChunkBase.h>
Inheritance diagram for osg::ProgramChunkBase:

General Fieldcontainer Declaration | |
| virtual osg::FieldContainerPtr | shallowCopy (void) const |
| static AttachmentPtr | create (void) |
| static AttachmentPtr | createEmpty (void) |
Public Types | |
| typedef ProgramChunkPtr | Ptr |
| enum | { ProgramFieldId = Inherited::NextFieldId, ParamValuesFieldId = ProgramFieldId + 1, ParamNamesFieldId = ParamValuesFieldId + 1, GLIdFieldId = ParamNamesFieldId + 1, NextFieldId = GLIdFieldId + 1 } |
Public Member Functions | |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFString * | getSFProgram (void) |
| Get the ProgramChunk::_sfProgram field. | |
| MFVec4f * | getMFParamValues (void) |
| Get the ProgramChunk::_mfParamValues field. | |
| MFString * | getMFParamNames (void) |
| Get the ProgramChunk::_mfParamNames field. | |
| std::string & | getProgram (void) |
| Get the value of the ProgramChunk::_sfProgram field. | |
| const std::string & | getProgram (void) const |
| Get the value of the ProgramChunk::_sfProgram field. | |
| Vec4f & | getParamValues (const UInt32 index) |
| Get the value of the index element the ProgramChunk::_mfParamValues field. | |
| MFVec4f & | getParamValues (void) |
| Get the ProgramChunk::_mfParamValues field. | |
| const MFVec4f & | getParamValues (void) const |
| Get the ProgramChunk::_mfParamValues field. | |
| std::string & | getParamNames (const UInt32 index) |
| Get the value of the index element the ProgramChunk::_mfParamNames field. | |
| MFString & | getParamNames (void) |
| Get the ProgramChunk::_mfParamNames field. | |
| const MFString & | getParamNames (void) const |
| Get the ProgramChunk::_mfParamNames field. | |
Field Set | |
| *void | setProgram (const std::string &value) |
| Set the value of the ProgramChunk::_sfProgram field. | |
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 | ProgramFieldMask |
| static const osg::BitVector | ParamValuesFieldMask |
| static const osg::BitVector | ParamNamesFieldMask |
| static const osg::BitVector | GLIdFieldMask |
| 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 | |
Constructors | |
| * | ProgramChunkBase (void) |
| ProgramChunkBase (const ProgramChunkBase &source) | |
Destructors | |
| *virtual | ~ProgramChunkBase (void) |
Field Get | |
| *SFUInt32 * | getSFGLId (void) |
| Get the ProgramChunk::_sfGLId field. | |
| UInt32 & | getGLId (void) |
| Get the value of the ProgramChunk::_sfGLId field. | |
| const UInt32 & | getGLId (void) const |
| Get the value of the ProgramChunk::_sfGLId field. | |
Field Set | |
| *void | setGLId (const UInt32 &value) |
| Set the value of the ProgramChunk::_sfGLId field. | |
Sync | |
| *void | executeSyncImpl (ProgramChunkBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Static Protected Member Functions | |
| static void | initMethod (void) |
Protected Attributes | |
Fields | |
| *SFString | _sfProgram |
| MFVec4f | _mfParamValues |
| MFString | _mfParamNames |
| SFUInt32 | _sfGLId |
Private Types | |
| typedef StateChunk | Inherited |
Private Member Functions | |
| void | operator= (const ProgramChunkBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| ProgramChunk description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 84 of file OSGProgramChunkBase.h.
|
|
Reimplemented from osg::StateChunk. Reimplemented in osg::FatBorderChunk, osg::FatBorderChunkBase, osg::FragmentProgramChunk, osg::FragmentProgramChunkBase, osg::ProgramChunk, osg::VertexProgramChunk, and osg::VertexProgramChunkBase. Definition at line 88 of file OSGProgramChunkBase.h. |
|
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::FatBorderChunkBase, osg::FragmentProgramChunkBase, and osg::VertexProgramChunkBase. Definition at line 93 of file OSGProgramChunkBase.h. |
|
|
Reimplemented from osg::Attachment. Definition at line 95 of file OSGProgramChunkBase.h. 00096 { 00097 ProgramFieldId = Inherited::NextFieldId, 00098 ParamValuesFieldId = ProgramFieldId + 1, 00099 ParamNamesFieldId = ParamValuesFieldId + 1, 00100 GLIdFieldId = ParamNamesFieldId + 1, 00101 NextFieldId = GLIdFieldId + 1 00102 };
|
|
|
Definition at line 190 of file OSGProgramChunkBase.cpp. 00190 : 00191 _sfProgram (), 00192 _mfParamValues (), 00193 _mfParamNames (), 00194 _sfGLId (UInt32(0)), 00195 Inherited() 00196 { 00197 }
|
|
|
Definition at line 203 of file OSGProgramChunkBase.cpp. 00203 : 00204 _sfProgram (source._sfProgram ), 00205 _mfParamValues (source._mfParamValues ), 00206 _mfParamNames (source._mfParamNames ), 00207 _sfGLId (source._sfGLId ), 00208 Inherited (source) 00209 { 00210 }
|
|
|
Definition at line 214 of file OSGProgramChunkBase.cpp.
|
|
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::FatBorderChunkBase, osg::FragmentProgramChunkBase, and osg::VertexProgramChunkBase. Definition at line 58 of file OSGProgramChunkBase.inl. References _type. 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::FatBorderChunkBase, osg::FragmentProgramChunkBase, and osg::VertexProgramChunkBase. Definition at line 65 of file OSGProgramChunkBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::FatBorderChunkBase, osg::FragmentProgramChunkBase, and osg::VertexProgramChunkBase. Definition at line 139 of file OSGProgramChunkBase.cpp. References _type. 00140 { 00141 return _type; 00142 }
|
|
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::FatBorderChunkBase, osg::FragmentProgramChunkBase, and osg::VertexProgramChunkBase. Definition at line 144 of file OSGProgramChunkBase.cpp. References _type. 00145 { 00146 return _type; 00147 }
|
|
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::FatBorderChunkBase, osg::FragmentProgramChunkBase, and osg::VertexProgramChunkBase. Definition at line 150 of file OSGProgramChunkBase.cpp. 00151 { 00152 return sizeof(ProgramChunk); 00153 }
|
|
|
Definition at line 75 of file OSGProgramChunkBase.inl. References _sfProgram. 00076 { 00077 return &_sfProgram; 00078 }
|
|
|
Definition at line 82 of file OSGProgramChunkBase.inl. References _mfParamValues. 00083 { 00084 return &_mfParamValues; 00085 }
|
|
|
Definition at line 89 of file OSGProgramChunkBase.inl. References _mfParamNames. 00090 { 00091 return &_mfParamNames; 00092 }
|
|
|
Definition at line 104 of file OSGProgramChunkBase.inl. References _sfProgram, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ProgramChunk::activate(), osg::ProgramChunk::changeFrom(), osg::ProgramChunk::deactivate(), osg::ProgramChunk::handleGL(), osg::ProgramChunk::operator==(), osg::ProgramChunk::printCompileError(), and osg::ProgramChunk::read(). 00105 { 00106 return _sfProgram.getValue(); 00107 }
|
|
|
Definition at line 111 of file OSGProgramChunkBase.inl. References _sfProgram, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00112 { 00113 return _sfProgram.getValue(); 00114 }
|
|
|
Definition at line 147 of file OSGProgramChunkBase.inl. References _mfParamValues. Referenced by osg::ProgramChunk::operator==(). 00148 { 00149 return _mfParamValues[index]; 00150 }
|
|
|
Definition at line 154 of file OSGProgramChunkBase.inl. References _mfParamValues. Referenced by osg::ProgramChunk::getParameter(), osg::ProgramChunk::handleGL(), osg::ProgramChunk::operator==(), and osg::ProgramChunk::setParameter(). 00155 { 00156 return _mfParamValues; 00157 }
|
|
|
Definition at line 161 of file OSGProgramChunkBase.inl. References _mfParamValues. 00162 { 00163 return _mfParamValues; 00164 }
|
|
|
Definition at line 168 of file OSGProgramChunkBase.inl. References _mfParamNames. Referenced by osg::ProgramChunk::operator==(). 00169 { 00170 return _mfParamNames[index]; 00171 }
|
|
|
Definition at line 175 of file OSGProgramChunkBase.inl. References _mfParamNames. Referenced by osg::ProgramChunk::addParameter(), osg::ProgramChunk::findParameter(), and osg::ProgramChunk::operator==(). 00176 { 00177 return _mfParamNames; 00178 }
|
|
|
Definition at line 182 of file OSGProgramChunkBase.inl. References _mfParamNames. 00183 { 00184 return _mfParamNames; 00185 }
|
|
|
Definition at line 118 of file OSGProgramChunkBase.inl. References _sfProgram, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). Referenced by osg::FatBorderChunk::activateWithFragmentBasedLighting(), and osg::FatBorderChunk::activateWithStandardLighting(). 00119 { 00120 _sfProgram.setValue(value); 00121 }
|
|
|
||||||||||||
|
||||||||||||
|
|
Definition at line 96 of file OSGProgramChunkBase.inl. References _sfGLId. 00097 { 00098 return &_sfGLId; 00099 }
|
|
|
Definition at line 125 of file OSGProgramChunkBase.inl. References _sfGLId, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ProgramChunk::activate(), osg::ProgramChunk::changed(), osg::ProgramChunk::changeFrom(), osg::ProgramChunk::deactivate(), and osg::ProgramChunk::~ProgramChunk(). 00126 { 00127 return _sfGLId.getValue(); 00128 }
|
|
|
Definition at line 132 of file OSGProgramChunkBase.inl. References _sfGLId, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00133 { 00134 return _sfGLId.getValue(); 00135 }
|
|
|
Definition at line 139 of file OSGProgramChunkBase.inl. References _sfGLId, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). Referenced by osg::VertexProgramChunk::onCreate(), and osg::FragmentProgramChunk::onCreate().
|
|
||||||||||||
|
||||||||||||
|
Reimplemented from osg::StateChunkBase. Reimplemented in osg::FatBorderChunkBase, osg::FragmentProgramChunkBase, and osg::VertexProgramChunkBase. Definition at line 157 of file OSGProgramChunkBase.cpp. References executeSyncImpl(). 00159 { 00160 this->executeSyncImpl((ProgramChunkBase *) &other, whichField); 00161 }
|
|
|
|
|
|
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, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::FragmentProgramChunk, osg::LightChunk, osg::LineChunk, osg::MaterialChunk, osg::PointChunk, osg::PolygonChunk, osg::ProgramChunk, osg::RegisterCombinersChunk, osg::StencilChunk, osg::TexGenChunk, osg::TextureChunk, osg::TextureTransformChunk, osg::TransformChunk, osg::TwoSidedLightingChunk, and osg::VertexProgramChunk. Definition at line 56 of file OSGStateChunk.inl. References osg::StateChunkClass::getId(), and osg::StateChunk::getStaticClass(). 00057 { 00058 return StateChunk::getStaticClass()->getId(); 00059 }
|
|
|
||||||||||||
|
||||||||||||
|
Reimplemented from osg::Attachment. Reimplemented in osg::FatBorderChunk, osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, osg::FragmentProgramChunk, |