#include <OSGDVRIsoShaderBase.h>
Inheritance diagram for osg::DVRIsoShaderBase:

Volume Rendering | |
| *virtual bool | initialize (DVRVolume *volume, DrawActionBase *action) |
| virtual void | activate (DVRVolume *volume, DrawActionBase *action) |
| virtual void | brickActivate (DVRVolume *volume, DrawActionBase *action, Brick *brick) |
| virtual void | deactivate (DVRVolume *volume, DrawActionBase *action) |
| virtual void | renderSlice (DVRVolume *volume, DrawActionBase *action, Real32 *data, UInt32 vertices, UInt32 values) |
| virtual void | renderSlice (DVRVolume *volume, DrawActionBase *action, DVRRenderSlice *clippedSlice) |
| virtual bool | hasRenderCallback (void) |
| virtual bool | useMTSlabs (void) |
Public Types | |
| typedef DVRIsoShaderPtr | Ptr |
| enum | { ShadeModeFieldId = Inherited::NextFieldId, ActiveShadeModeFieldId = ShadeModeFieldId + 1, NextFieldId = ActiveShadeModeFieldId + 1 } |
Public Member Functions | |
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) |
Copy | |
| *virtual FieldContainerPtr | shallowCopy (void) const |
Sync | |
| *virtual void | changed (BitVector whichField, UInt32 from) |
| react to field changes | |
Output | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
| output the instance for debug purposes | |
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 | |
Construction | |
| *static DVRIsoShaderPtr | create (void) |
| create a new instance of the class | |
| static DVRIsoShaderPtr | createEmpty (void) |
| create an empty new instance of the class, do not copy the prototype | |
Static Public Attributes | |
| static const osg::BitVector | ShadeModeFieldMask |
| static const osg::BitVector | ActiveShadeModeFieldMask |
| static const osg::BitVector | MTInfluenceMask |
| static const BitVector | NextFieldMask |
Protected Member Functions | |
Constructors | |
| * | DVRIsoShaderBase (void) |
| DVRIsoShaderBase (const DVRIsoShaderBase &source) | |
Destructors | |
| *virtual | ~DVRIsoShaderBase (void) |
Field Get | |
| *SFInt8 * | getSFShadeMode (void) |
| Get the DVRIsoShader::_sfShadeMode field. | |
| SFInt8 * | getSFActiveShadeMode (void) |
| Get the DVRIsoShader::_sfActiveShadeMode field. | |
| Int8 & | getShadeMode (void) |
| Get the value of the DVRIsoShader::_sfShadeMode field. | |
| const Int8 & | getShadeMode (void) const |
| Get the value of the DVRIsoShader::_sfShadeMode field. | |
| Int8 & | getActiveShadeMode (void) |
| Get the value of the DVRIsoShader::_sfActiveShadeMode field. | |
| const Int8 & | getActiveShadeMode (void) const |
| Get the value of the DVRIsoShader::_sfActiveShadeMode field. | |
Field Set | |
| *void | setShadeMode (const Int8 &value) |
| Set the value of the DVRIsoShader::_sfShadeMode field. | |
| void | setActiveShadeMode (const Int8 &value) |
| Set the value of the DVRIsoShader::_sfActiveShadeMode field. | |
Sync | |
| *void | executeSyncImpl (DVRIsoShaderBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Protected Attributes | |
Fields | |
| *SFInt8 | _sfShadeMode |
| SFInt8 | _sfActiveShadeMode |
Private Types | |
| typedef DVRShader | Inherited |
Private Member Functions | |
| void | operator= (const DVRIsoShaderBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| DVRIsoShader description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 82 of file OSGDVRIsoShaderBase.h.
|
|
Reimplemented from osg::DVRShader. Reimplemented in osg::DVRIsoShader. Definition at line 86 of file OSGDVRIsoShaderBase.h. |
|
|
Reimplemented from osg::DVRShaderBase. Definition at line 91 of file OSGDVRIsoShaderBase.h. |
|
|
Reimplemented from osg::FieldContainer. Definition at line 93 of file OSGDVRIsoShaderBase.h. 00094 { 00095 ShadeModeFieldId = Inherited::NextFieldId, 00096 ActiveShadeModeFieldId = ShadeModeFieldId + 1, 00097 NextFieldId = ActiveShadeModeFieldId + 1 00098 };
|
|
|
Definition at line 175 of file OSGDVRIsoShaderBase.cpp. 00175 : 00176 _sfShadeMode (Int8(0)), 00177 _sfActiveShadeMode (), 00178 Inherited() 00179 { 00180 }
|
|
|
Definition at line 186 of file OSGDVRIsoShaderBase.cpp. 00186 : 00187 _sfShadeMode (source._sfShadeMode ), 00188 _sfActiveShadeMode (source._sfActiveShadeMode ), 00189 Inherited (source) 00190 { 00191 }
|
|
|
Definition at line 195 of file OSGDVRIsoShaderBase.cpp.
|
|
|
Reimplemented from osg::DVRShaderBase. Definition at line 58 of file OSGDVRIsoShaderBase.inl. References _type. Referenced by create(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::DVRShaderBase. Definition at line 65 of file OSGDVRIsoShaderBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::DVRShaderBase. Definition at line 117 of file OSGDVRIsoShaderBase.cpp. References _type. 00118 { 00119 return _type; 00120 }
|
|
|
Reimplemented from osg::DVRShaderBase. Definition at line 122 of file OSGDVRIsoShaderBase.cpp. References _type. 00123 { 00124 return _type; 00125 }
|
|
|
Reimplemented from osg::DVRShaderBase. Definition at line 137 of file OSGDVRIsoShaderBase.cpp. 00138 { 00139 return sizeof(DVRIsoShader); 00140 }
|
|
|
Reimplemented from osg::DVRShaderBase. Definition at line 201 of file OSGDVRIsoShaderBase.cpp. References _sfActiveShadeMode, _sfShadeMode, ActiveShadeModeFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::DVRShaderBase::getBinSize(), osg::FieldBits::NoField, and ShadeModeFieldMask. 00202 { 00203 UInt32 returnValue = Inherited::getBinSize(whichField); 00204 00205 if(FieldBits::NoField != (ShadeModeFieldMask & whichField)) 00206 { 00207 returnValue += _sfShadeMode.getBinSize(); 00208 } 00209 00210 if(FieldBits::NoField != (ActiveShadeModeFieldMask & whichField)) 00211 { 00212 returnValue += _sfActiveShadeMode.getBinSize(); 00213 } 00214 00215 00216 return returnValue; 00217 }
|
|
||||||||||||
|
Reimplemented from osg::DVRShaderBase. Definition at line 219 of file OSGDVRIsoShaderBase.cpp. References _sfActiveShadeMode, _sfShadeMode, ActiveShadeModeFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::DVRShaderBase::copyToBin(), osg::FieldBits::NoField, and ShadeModeFieldMask. 00221 { 00222 Inherited::copyToBin(pMem, whichField); 00223 00224 if(FieldBits::NoField != (ShadeModeFieldMask & whichField)) 00225 { 00226 _sfShadeMode.copyToBin(pMem); 00227 } 00228 00229 if(FieldBits::NoField != (ActiveShadeModeFieldMask & whichField)) 00230 { 00231 _sfActiveShadeMode.copyToBin(pMem); 00232 } 00233 00234 00235 }
|
|
||||||||||||
|
Reimplemented from osg::DVRShaderBase. Definition at line 237 of file OSGDVRIsoShaderBase.cpp. References _sfActiveShadeMode, _sfShadeMode, ActiveShadeModeFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::DVRShaderBase::copyFromBin(), osg::FieldBits::NoField, and ShadeModeFieldMask. 00239 { 00240 Inherited::copyFromBin(pMem, whichField); 00241 00242 if(FieldBits::NoField != (ShadeModeFieldMask & whichField)) 00243 { 00244 _sfShadeMode.copyFromBin(pMem); 00245 } 00246 00247 if(FieldBits::NoField != (ActiveShadeModeFieldMask & whichField)) 00248 { 00249 _sfActiveShadeMode.copyFromBin(pMem); 00250 } 00251 00252 00253 }
|
|
|
Definition at line 72 of file OSGDVRIsoShaderBase.inl. References getClassType(), osg::FieldContainerType::getPrototype(), osg::NullFC, and shallowCopy(). 00073 { 00074 DVRIsoShaderPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = DVRIsoShaderPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 }
|
|
|
Definition at line 87 of file OSGDVRIsoShaderBase.inl. References osg::FieldContainer::newPtr(). 00088 { 00089 DVRIsoShaderPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 }
|
|
|
Implements osg::FieldContainer. Definition at line 128 of file OSGDVRIsoShaderBase.cpp. References osg::FieldContainer::newPtr(). Referenced by create(). 00129 { 00130 DVRIsoShaderPtr returnValue; 00131 00132 newPtr(returnValue, dynamic_cast<const DVRIsoShader *>(this)); 00133 00134 return returnValue; 00135 }
|
|
|
Definition at line 101 of file OSGDVRIsoShaderBase.inl. References _sfShadeMode. 00102 { 00103 return &_sfShadeMode; 00104 }
|
|
|
Definition at line 108 of file OSGDVRIsoShaderBase.inl. References _sfActiveShadeMode. 00109 { 00110 return &_sfActiveShadeMode; 00111 }
|
|
|
Definition at line 116 of file OSGDVRIsoShaderBase.inl. References _sfShadeMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::DVRIsoShader::initialize(). 00117 { 00118 return _sfShadeMode.getValue(); 00119 }
|
|
|
Definition at line 123 of file OSGDVRIsoShaderBase.inl. References _sfShadeMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00124 { 00125 return _sfShadeMode.getValue(); 00126 }
|
|
|
Definition at line 137 of file OSGDVRIsoShaderBase.inl. References _sfActiveShadeMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::DVRIsoShader::activate(). 00138 { 00139 return _sfActiveShadeMode.getValue(); 00140 }
|
|
|
Definition at line 144 of file OSGDVRIsoShaderBase.inl. References _sfActiveShadeMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00145 { 00146 return _sfActiveShadeMode.getValue(); 00147 }
|
|
|
Definition at line 130 of file OSGDVRIsoShaderBase.inl. References _sfShadeMode, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00131 { 00132 _sfShadeMode.setValue(value); 00133 }
|
|
|
Definition at line 151 of file OSGDVRIsoShaderBase.inl. References _sfActiveShadeMode, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). Referenced by osg::DVRIsoShader::changed(), and osg::DVRIsoShader::tryMode(). 00152 { 00153 _sfActiveShadeMode.setValue(value); 00154 }
|
|
||||||||||||
|
Definition at line 256 of file OSGDVRIsoShaderBase.cpp. References _sfActiveShadeMode, _sfShadeMode, ActiveShadeModeFieldMask, osg::DVRShaderBase::executeSyncImpl(), osg::FieldBits::NoField, ShadeModeFieldMask, and osg::SField< FieldTypeT, fieldNameSpace >::syncWith(). Referenced by executeSync(). 00258 { 00259 00260 Inherited::executeSyncImpl(pOther, whichField); 00261 00262 if(FieldBits::NoField != (ShadeModeFieldMask & whichField)) 00263 _sfShadeMode.syncWith(pOther->_sfShadeMode); 00264 00265 if(FieldBits::NoField != (ActiveShadeModeFieldMask & whichField)) 00266 _sfActiveShadeMode.syncWith(pOther->_sfActiveShadeMode); 00267 00268 00269 }
|
|
||||||||||||
|
Reimplemented from osg::DVRShaderBase. Definition at line 144 of file OSGDVRIsoShaderBase.cpp. References executeSyncImpl(). 00146 { 00147 this->executeSyncImpl((DVRIsoShaderBase *) &other, whichField); 00148 }
|
|
|
|
|
||||||||||||
|
Reimplemented from osg::FieldContainer. Reimplemented in osg::DVRIsoShader, osg::DVRMtexLUTShader, osg::DVRSimpleLUTShader, and osg::DVRSimpleShader. Definition at line 138 of file OSGDVRShader.cpp. References osg::FieldContainer::changed(). Referenced by osg::DVRSimpleShader::changed(), and osg::DVRIsoShader::changed(). 00139 { 00140 Inherited::changed(whichField, origin); 00141 }
|
|
||||||||||||
|
Implements osg::FieldContainer. Reimplemented in osg::DVRIsoShader, osg::DVRMtexLUTShader, osg::DVRSimpleLUTShader, and osg::DVRSimpleShader. Definition at line 144 of file OSGDVRShader.cpp. References SLOG. 00146 { 00147 SLOG << "Dump DVRShader NI" << std::endl; 00148 }
|
|
||||||||||||
|
Reimplemented in osg::DVRIsoShader, osg::DVRMtexLUTShader, osg::DVRSimpleLUTShader, and osg::DVRSimpleShader. Definition at line 57 of file OSGDVRShader.cpp. References SLOG. 00059 { 00060 SLOG << "DVRShader::initialize - NI" << std::endl; 00061 00062 return false; 00063 }
|
|
||||||||||||
|
Reimplemented in osg::DVRIsoShader, osg::DVRMtexLUTShader, osg::DVRSimpleLUTShader, and osg::DVRSimpleShader. Definition at line 66 of file OSGDVRShader.cpp. References SLOG. 00068 { 00069 SLOG << "DVRShader::activate - NI" << std::endl; 00070 }
|
|
||||||||||||||||
|
Reimplemented in osg::DVRIsoShader, osg::DVRSimpleLUTShader, and osg::DVRSimpleShader. Definition at line 72 of file OSGDVRShader.cpp. References SLOG. 00075 { 00076 SLOG << "DVRShader::brickActivate - NI" << std::endl; 00077 }
|
|
||||||||||||
|
Reimplemented in osg::DVRIsoShader, osg::DVRMtexLUTShader, osg::DVRSimpleLUTShader, and osg::DVRSimpleShader. Definition at line 79 of file OSGDVRShader.cpp. References SLOG. 00081 { 00082 SLOG << "DVRShader::brickActivate - NI" << std::endl; 00083 }
|
|
||||||||||||||||||||||||
|
Reimplemented in osg::DVRIsoShader, and osg::DVRMtexLUTShader. Definition at line 85 of file OSGDVRShader.cpp. References SLOG. 00090 { 00091 SLOG << "DVRShader::renderSlice - NI" << std::endl; 00092 }
|
|
||||||||||||||||
|
Reimplemented in osg::DVRIsoShader, and osg::DVRMtexLUTShader. Definition at line 94 of file OSGDVRShader.cpp. References SLOG. 00097 { 00098 SLOG << "DVRShader::renderSlice - NI" << std::endl; 00099 }
|
|
|
Reimplemented in osg::DVRIsoShader, and osg::DVRMtexLUTShader. Definition at line 101 of file OSGDVRShader.cpp.
|
|
|
Reimplemented in osg::DVRIsoShader, and osg::DVRMtexLUTShader. Definition at line 106 of file OSGDVRShader.cpp.
|
|
||||||||||||
|
Definition at line 182 of file OSGDVRShaderBase.cpp. References osg::FieldContainer::executeSyncImpl(). Referenced by osg::DVRShaderBase::executeSync(), osg::DVRSimpleShaderBase::executeSyncImpl(), and executeSyncImpl(). 00184 { 00185 00186 Inherited::executeSyncImpl(pOther, whichField); 00187 00188 00189 }
|
|
||||||||||||
|
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().
|
|
|
Definition at line 71 of file OSGFieldContainerImpl.inl. References osg::FieldContainer::_type, and osg::FieldContainerType::getGroupId(). 00072 { 00073 return _type.getGroupId(); 00074 }
|
|
|
Definition at line 77 of file OSGFieldContainerImpl.inl. References osg::TypeBase::getId(), and osg::FieldContainer::getType(). Referenced by osg::TextureChunk::changeFrom(), and osg::CubeTextureChunk::changeFrom(). 00078 { 00079 return getType().getId(); 00080 }
|
|
|
Definition at line 83 of file OSGFieldContainerImpl.inl. References osg::FieldContainerType::getGroupId(), and osg::FieldContainer::getType(). Referenced by osg::Image::setAttachmentField(). 00084 { 00085 return getType().getGroupId(); 00086 }
|
|
|
Definition at line 89 of file OSGFieldContainerImpl.inl. References osg::TypeBase::getCName(), and osg::FieldContainer::getType(). 00090 { 00091 return getType().getCName(); 00092 }
|
|
|
Definition at line 95 of file OSGFieldContainerImpl.inl. References osg::FieldDescription::getField(), osg::FieldContainerType::getFieldDescription(), and osg::FieldContainer::getType(). Referenced by osg::QFCItem::expand(), osg::VRMLShapeDesc::getFieldAndDesc(), osg::QFieldViewBase::getFieldPtr(), osg::QFieldEditorBase::getFieldPtr(), osg::getParentsField(), and osg::QFCItem::setup(). 00096 { 00097 const FieldDescription *desc = getType().getFieldDescription(fieldId); 00098 00099 return desc ? desc->getField(*this) : NULL; 00100 }
|
|
|
Definition at line 103 of file OSGFieldContainerImpl.inl. References osg::FieldContainerType::findFieldDescription(), osg::FieldDescription::getField(), and osg::FieldContainer::getType(). 00104 { 00105 const FieldDescription *desc =getType().findFieldDescription(fieldName); 00106 00107 return desc ? desc->getField(*this) : NULL; 00108 }
|
|
||||||||||||||||