#include <OSGClipPlaneChunkBase.h>
Inheritance diagram for osg::ClipPlaneChunkBase:

Public Types | |
| typedef ClipPlaneChunkPtr | Ptr |
| enum | { EquationFieldId = Inherited::NextFieldId, EnableFieldId = EquationFieldId + 1, BeaconFieldId = EnableFieldId + 1, NextFieldId = BeaconFieldId + 1 } |
Public Member Functions | |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFVec4f * | getSFEquation (void) |
| Get the ClipPlaneChunk::_sfEquation field. | |
| SFBool * | getSFEnable (void) |
| Get the ClipPlaneChunk::_sfEnable field. | |
| SFNodePtr * | getSFBeacon (void) |
| Get the ClipPlaneChunk::_sfBeacon field. | |
| Vec4f & | getEquation (void) |
| Get the value of the ClipPlaneChunk::_sfEquation field. | |
| const Vec4f & | getEquation (void) const |
| Get the value of the ClipPlaneChunk::_sfEquation field. | |
| bool & | getEnable (void) |
| Get the value of the ClipPlaneChunk::_sfEnable field. | |
| const bool & | getEnable (void) const |
| Get the value of the ClipPlaneChunk::_sfEnable field. | |
| NodePtr & | getBeacon (void) |
| Get the value of the ClipPlaneChunk::_sfBeacon field. | |
| const NodePtr & | getBeacon (void) const |
| Get the value of the ClipPlaneChunk::_sfBeacon field. | |
Field Set | |
| *void | setEquation (const Vec4f &value) |
| Set the value of the ClipPlaneChunk::_sfEquation field. | |
| void | setEnable (const bool &value) |
| Set the value of the ClipPlaneChunk::_sfEnable field. | |
| void | setBeacon (const NodePtr &value) |
| Set the value of the ClipPlaneChunk::_sfBeacon 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) |
Copy | |
| *virtual FieldContainerPtr | shallowCopy (void) const |
Chunk Class Access | |
| *UInt32 | getClassId (void) const |
| virtual const StateChunkClass * | getClass (void) const |
Sync | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
Output | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) 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 |
Comparison | |
| *virtual Real32 | switchCost (StateChunk *chunk) |
| virtual bool | operator< (const StateChunk &other) const |
| virtual bool | operator== (const StateChunk &other) const |
| virtual bool | operator!= (const StateChunk &other) const |
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 ClipPlaneChunkPtr | create (void) |
| create a new instance of the class | |
| static ClipPlaneChunkPtr | createEmpty (void) |
| create an empty new instance of the class, do not copy the prototype | |
Static Chunk Class Access | |
| *static UInt32 | getStaticClassId (void) |
| static const StateChunkClass * | getStaticClass (void) |
Static Public Attributes | |
| static const osg::BitVector | EquationFieldMask |
| static const osg::BitVector | EnableFieldMask |
| static const osg::BitVector | BeaconFieldMask |
| 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 | |
| * | ClipPlaneChunkBase (void) |
| ClipPlaneChunkBase (const ClipPlaneChunkBase &source) | |
Destructors | |
| *virtual | ~ClipPlaneChunkBase (void) |
Sync | |
| *void | executeSyncImpl (ClipPlaneChunkBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Sync | |
| *void | executeSyncImpl (StateChunkBase *pOther, const BitVector &whichField) |
Static Protected Member Functions | |
| static void | initMethod (void) |
Protected Attributes | |
Fields | |
| *SFVec4f | _sfEquation |
| SFBool | _sfEnable |
| SFNodePtr | _sfBeacon |
Private Types | |
| typedef StateChunk | Inherited |
Private Member Functions | |
| void | operator= (const ClipPlaneChunkBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| ClipPlaneChunk description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 83 of file OSGClipPlaneChunkBase.h.
|
|
Reimplemented from osg::StateChunk. Reimplemented in osg::ClipPlaneChunk. Definition at line 87 of file OSGClipPlaneChunkBase.h. |
|
|
Reimplemented from osg::StateChunkBase. Definition at line 92 of file OSGClipPlaneChunkBase.h. |
|
|
Reimplemented from osg::Attachment. Definition at line 94 of file OSGClipPlaneChunkBase.h. 00095 { 00096 EquationFieldId = Inherited::NextFieldId, 00097 EnableFieldId = EquationFieldId + 1, 00098 BeaconFieldId = EnableFieldId + 1, 00099 NextFieldId = BeaconFieldId + 1 00100 };
|
|
|
Definition at line 187 of file OSGClipPlaneChunkBase.cpp. 00187 : 00188 _sfEquation (Vec4f(0, 0, 1, 0)), 00189 _sfEnable (bool(GL_TRUE)), 00190 _sfBeacon (NodePtr(NullFC)), 00191 Inherited() 00192 { 00193 }
|
|
|
Definition at line 199 of file OSGClipPlaneChunkBase.cpp. 00199 : 00200 _sfEquation (source._sfEquation ), 00201 _sfEnable (source._sfEnable ), 00202 _sfBeacon (source._sfBeacon ), 00203 Inherited (source) 00204 { 00205 }
|
|
|
Definition at line 209 of file OSGClipPlaneChunkBase.cpp.
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 58 of file OSGClipPlaneChunkBase.inl. References _type. Referenced by create(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 65 of file OSGClipPlaneChunkBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 129 of file OSGClipPlaneChunkBase.cpp. References _type. 00130 { 00131 return _type; 00132 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 134 of file OSGClipPlaneChunkBase.cpp. References _type. 00135 { 00136 return _type; 00137 }
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 149 of file OSGClipPlaneChunkBase.cpp. 00150 { 00151 return sizeof(ClipPlaneChunk); 00152 }
|
|
|
Definition at line 101 of file OSGClipPlaneChunkBase.inl. References _sfEquation. 00102 { 00103 return &_sfEquation; 00104 }
|
|
|
Definition at line 108 of file OSGClipPlaneChunkBase.inl. References _sfEnable. 00109 { 00110 return &_sfEnable; 00111 }
|
|
|
Definition at line 115 of file OSGClipPlaneChunkBase.inl. References _sfBeacon. 00116 { 00117 return &_sfBeacon; 00118 }
|
|
|
Definition at line 123 of file OSGClipPlaneChunkBase.inl. References _sfEquation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ClipPlaneChunk::activate(), osg::ClipPlaneChunk::changeFrom(), and osg::ClipPlaneChunk::operator==(). 00124 { 00125 return _sfEquation.getValue(); 00126 }
|
|
|
Definition at line 130 of file OSGClipPlaneChunkBase.inl. References _sfEquation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00131 { 00132 return _sfEquation.getValue(); 00133 }
|
|
|
Definition at line 144 of file OSGClipPlaneChunkBase.inl. References _sfEnable, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ClipPlaneChunk::activate(), osg::ClipPlaneChunk::changeFrom(), osg::ClipPlaneChunk::deactivate(), and osg::ClipPlaneChunk::operator==(). 00145 { 00146 return _sfEnable.getValue(); 00147 }
|
|
|
Definition at line 151 of file OSGClipPlaneChunkBase.inl. References _sfEnable, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00152 { 00153 return _sfEnable.getValue(); 00154 }
|
|
|
Definition at line 165 of file OSGClipPlaneChunkBase.inl. References _sfBeacon, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::ClipPlaneChunk::activate(), osg::ClipPlaneChunk::changeFrom(), and osg::ClipPlaneChunk::operator==(). 00166 { 00167 return _sfBeacon.getValue(); 00168 }
|
|
|
Definition at line 172 of file OSGClipPlaneChunkBase.inl. References _sfBeacon, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00173 { 00174 return _sfBeacon.getValue(); 00175 }
|
|
|
Definition at line 137 of file OSGClipPlaneChunkBase.inl. References _sfEquation, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00138 { 00139 _sfEquation.setValue(value); 00140 }
|
|
|
Definition at line 158 of file OSGClipPlaneChunkBase.inl. References _sfEnable, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 179 of file OSGClipPlaneChunkBase.inl. References _sfBeacon, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Reimplemented from osg::StateChunkBase. Definition at line 215 of file OSGClipPlaneChunkBase.cpp. References _sfBeacon, _sfEnable, _sfEquation, BeaconFieldMask, EnableFieldMask, EquationFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::StateChunkBase::getBinSize(), and osg::FieldBits::NoField. 00216 { 00217 UInt32 returnValue = Inherited::getBinSize(whichField); 00218 00219 if(FieldBits::NoField != (EquationFieldMask & whichField)) 00220 { 00221 returnValue += _sfEquation.getBinSize(); 00222 } 00223 00224 if(FieldBits::NoField != (EnableFieldMask & whichField)) 00225 { 00226 returnValue += _sfEnable.getBinSize(); 00227 } 00228 00229 if(FieldBits::NoField != (BeaconFieldMask & whichField)) 00230 { 00231 returnValue += _sfBeacon.getBinSize(); 00232 } 00233 00234 00235 return returnValue; 00236 }
|
|
||||||||||||
|
Reimplemented from osg::StateChunkBase. Definition at line 238 of file OSGClipPlaneChunkBase.cpp. References _sfBeacon, _sfEnable, _sfEquation, BeaconFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::StateChunkBase::copyToBin(), EnableFieldMask, EquationFieldMask, and osg::FieldBits::NoField. 00240 { 00241 Inherited::copyToBin(pMem, whichField); 00242 00243 if(FieldBits::NoField != (EquationFieldMask & whichField)) 00244 { 00245 _sfEquation.copyToBin(pMem); 00246 } 00247 00248 if(FieldBits::NoField != (EnableFieldMask & whichField)) 00249 { 00250 _sfEnable.copyToBin(pMem); 00251 } 00252 00253 if(FieldBits::NoField != (BeaconFieldMask & whichField)) 00254 { 00255 _sfBeacon.copyToBin(pMem); 00256 } 00257 00258 00259 }
|
|
||||||||||||
|
Reimplemented from osg::StateChunkBase. Definition at line 261 of file OSGClipPlaneChunkBase.cpp. References _sfBeacon, _sfEnable, _sfEquation, BeaconFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::StateChunkBase::copyFromBin(), EnableFieldMask, EquationFieldMask, and osg::FieldBits::NoField. 00263 { 00264 Inherited::copyFromBin(pMem, whichField); 00265 00266 if(FieldBits::NoField != (EquationFieldMask & whichField)) 00267 { 00268 _sfEquation.copyFromBin(pMem); 00269 } 00270 00271 if(FieldBits::NoField != (EnableFieldMask & whichField)) 00272 { 00273 _sfEnable.copyFromBin(pMem); 00274 } 00275 00276 if(FieldBits::NoField != (BeaconFieldMask & whichField)) 00277 { 00278 _sfBeacon.copyFromBin(pMem); 00279 } 00280 00281 00282 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 72 of file OSGClipPlaneChunkBase.inl. References osg::AttachmentPtr::dcast(), getClassType(), osg::FieldContainerType::getPrototype(), osg::NullFC, and shallowCopy(). 00073 { 00074 ClipPlaneChunkPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = ClipPlaneChunkPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 87 of file OSGClipPlaneChunkBase.inl. References osg::FieldContainer::newPtr(). 00088 { 00089 ClipPlaneChunkPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 140 of file OSGClipPlaneChunkBase.cpp. References osg::FieldContainer::newPtr(). Referenced by create(). 00141 { 00142 ClipPlaneChunkPtr returnValue; 00143 00144 newPtr(returnValue, dynamic_cast<const ClipPlaneChunk *>(this)); 00145 00146 return returnValue; 00147 }
|
|
||||||||||||
|
Definition at line 285 of file OSGClipPlaneChunkBase.cpp. References _sfBeacon, _sfEnable, _sfEquation, BeaconFieldMask, EnableFieldMask, EquationFieldMask, osg::StateChunkBase::executeSyncImpl(), osg::FieldBits::NoField, and osg::SField< FieldTypeT, fieldNameSpace >::syncWith(). Referenced by executeSync(). 00287 { 00288 00289 Inherited::executeSyncImpl(pOther, whichField); 00290 00291 if(FieldBits::NoField != (EquationFieldMask & whichField)) 00292 _sfEquation.syncWith(pOther->_sfEquation); 00293 00294 if(FieldBits::NoField != (EnableFieldMask & whichField)) 00295 _sfEnable.syncWith(pOther->_sfEnable); 00296 00297 if(FieldBits::NoField != (BeaconFieldMask & whichField)) 00298 _sfBeacon.syncWith(pOther->_sfBeacon); 00299 00300 00301 }
|
|
||||||||||||
|
Reimplemented from osg::StateChunkBase. Definition at line 156 of file OSGClipPlaneChunkBase.cpp. References executeSyncImpl(). 00158 { 00159 this->executeSyncImpl((ClipPlaneChunkBase *) &other, whichField); 00160 }
|
|
|
|
|
|
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, 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, osg::VertexProgramChunk, osg::ShaderChunk, osg::ShaderParameterChunk, osg::SHLChunk, and osg::SHLParameterChunk. Definition at line 229 of file OSGStateChunk.cpp. References SLOG. Referenced by osg::PolygonChunk::dump(). 00231 { 00232 SLOG << "Dump StateChunk NI" << std::endl; 00233 }
|
|
||||||||||||
|
Activate the chunk, i.e. set the OpenGl state covered by the chunk which is different from the default state to the given state. Reimplemented in osg::BlendChunk, osg::ClipPlaneChunk, osg::ColorMaskChunk, osg::CubeTextureChunk, osg::DepthChunk, 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, osg::SHLChunk, and osg::SHLParameterChunk. Definition at line 242 of file OSGStateChunk.cpp. References FWARNING. Referenced by osg::StateChunk::changeFrom(). 00244 { 00245 FWARNING(("StateChunk::activate called!\n")); 00246 }
|
|
||||||||||||||||
|
Change from an old chunk of the same type to this chunk. Note that in general no type checking is done, make sure to u |