#include <OSGSlicesBase.h>
Inheritance diagram for osg::SlicesBase:

Public Types | |
| typedef SlicesPtr | Ptr |
| enum | { SizeFieldId = Inherited::NextFieldId, SliceDistanceFieldId = SizeFieldId + 1, NextFieldId = SliceDistanceFieldId + 1 } |
Public Member Functions | |
Parents | |
| *MFNodePtr & | getParents (void) |
| const MFNodePtr & | getParents (void) const |
| MFNodePtr * | getMFParents (void) |
Volume | |
| *virtual void | invalidateVolume (void) |
Parents | |
| *MFNodePtr & | getParents (void) |
| const MFNodePtr & | getParents (void) const |
| MFNodePtr * | getMFParents (void) |
Volume | |
| *virtual void | invalidateVolume (void) |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFVec3f * | getSFSize (void) |
| Get the Slices::_sfSize field. | |
| SFReal32 * | getSFSliceDistance (void) |
| Get the Slices::_sfSliceDistance field. | |
| Vec3f & | getSize (void) |
| Get the value of the Slices::_sfSize field. | |
| const Vec3f & | getSize (void) const |
| Get the value of the Slices::_sfSize field. | |
| Real32 & | getSliceDistance (void) |
| Get the value of the Slices::_sfSliceDistance field. | |
| const Real32 & | getSliceDistance (void) const |
| Get the value of the Slices::_sfSliceDistance field. | |
Field Set | |
| *void | setSize (const Vec3f &value) |
| Set the value of the Slices::_sfSize field. | |
| void | setSliceDistance (const Real32 &value) |
| Set the value of the Slices::_sfSliceDistance 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 |
action handler | |
| *virtual Action::ResultE | drawPrimitives (DrawActionBase *action) |
| initialize the static features of the class, e.g. action callbacks | |
| Action::ResultE | drawActionHandler (Action *action) |
| initialize the static features of the class, e.g. action callbacks | |
| Action::ResultE | renderActionHandler (Action *action) |
| initialize the static features of the class, e.g. action callbacks | |
Sync | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
| react to field changes | |
Output | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
| output the instance for debug purposes | |
Field Set | |
| *void | setMaterial (const MaterialPtr &value) |
| Set the value of the MaterialDrawable::_sfMaterial field. | |
Field Get | |
| *SFMaterialPtr * | getSFMaterial (void) |
| Get the MaterialDrawable::_sfMaterial field. | |
| MaterialPtr & | getMaterial (void) |
| Get the value of the MaterialDrawable::_sfMaterial field. | |
| const MaterialPtr & | getMaterial (void) const |
| Get the value of the MaterialDrawable::_sfMaterial field. | |
Parents | |
| *MFNodePtr & | getParents (void) |
| const MFNodePtr & | getParents (void) const |
| MFNodePtr * | getMFParents (void) |
Volume | |
| *virtual void | invalidateVolume (void) |
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 SlicesPtr | create (void) |
| create a new instance of the class | |
| static SlicesPtr | createEmpty (void) |
| create an empty new instance of the class, do not copy the prototype | |
Static Public Attributes | |
| static const osg::BitVector | SizeFieldMask |
| static const osg::BitVector | SliceDistanceFieldMask |
| static const osg::BitVector | MTInfluenceMask |
| static const osg::BitVector | MaterialFieldMask |
| static const BitVector | ParentsFieldMask = (1 << NodeCore::ParentsFieldId ) |
| static const BitVector | AttachmentsFieldMask |
| static const BitVector | NextFieldMask |
CoredNodePtr helper | |
| *static const bool | isNodeCore = true |
CoredNodePtr helper | |
| *static const bool | isNodeCore = true |
static stat elem | |
| *static StatElemDesc< StatIntElem > | statNTriangles |
| static StatElemDesc< StatIntElem > | statNLines |
| static StatElemDesc< StatIntElem > | statNPoints |
| static StatElemDesc< StatIntElem > | statNVertices |
| static StatElemDesc< StatIntElem > | statNPrimitives |
CoredNodePtr helper | |
| *static const bool | isNodeCore = true |
Protected Member Functions | |
Sync | |
| void | executeSyncImpl (NodeCore *pOther, const BitVector &whichField) |
MT Destruction | |
| *virtual void | onDestroy (void) |
Set / Get Parents | |
| *void | addParent (const NodePtr &parent) |
| void | subParent (const NodePtr &parent) |
Pointer | |
| *NodeCorePtr | getPtr (void) const |
Transformation | |
| *virtual void | accumulateMatrix (Matrix &result) |
Volume | |
| *virtual void | adjustVolume (Volume &volume) |
MT Destruction | |
| *virtual void | onDestroy (void) |
Set / Get Parents | |
| *void | addParent (const NodePtr &parent) |
| void | subParent (const NodePtr &parent) |
Pointer | |
| *NodeCorePtr | getPtr (void) const |
Sync | |
| void | executeSyncImpl (NodeCore *pOther, const BitVector &whichField) |
Transformation | |
| *virtual void | accumulateMatrix (Matrix &result) |
Volume | |
| *virtual void | adjustVolume (Volume &volume) |
Constructors | |
| * | SlicesBase (void) |
| SlicesBase (const SlicesBase &source) | |
Destructors | |
| *virtual | ~SlicesBase (void) |
Sync | |
| *void | executeSyncImpl (SlicesBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
Sync | |
| *void | executeSyncImpl (MaterialDrawableBase *pOther, const BitVector &whichField) |
Sync | |
| *void | executeSyncImpl (DrawableBase *pOther, const BitVector &whichField) |
Sync | |
| void | executeSyncImpl (NodeCore *pOther, const BitVector &whichField) |
MT Destruction | |
| *virtual void | onDestroy (void) |
Set / Get Parents | |
| *void | addParent (const NodePtr &parent) |
| void | subParent (const NodePtr &parent) |
Pointer | |
| *NodeCorePtr | getPtr (void) const |
Transformation | |
| *virtual void | accumulateMatrix (Matrix &result) |
Volume | |
| *virtual void | adjustVolume (Volume &volume) |
Protected Attributes | |
Fields | |
| *MFNodePtr | _parents |
Fields | |
| *MFNodePtr | _parents |
Fields | |
| *SFVec3f | _sfSize |
| SFReal32 | _sfSliceDistance |
Fields | |
| *SFMaterialPtr | _sfMaterial |
Fields | |
| *MFNodePtr | _parents |
Private Types | |
| typedef MaterialDrawable | Inherited |
Private Member Functions | |
| void | operator= (const SlicesBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| Slices description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 82 of file OSGSlicesBase.h.
|
|
Reimplemented from osg::MaterialDrawable. Reimplemented in osg::Slices. Definition at line 86 of file OSGSlicesBase.h. |
|
|
Reimplemented from osg::MaterialDrawableBase. Definition at line 91 of file OSGSlicesBase.h. |
|
|
Reimplemented from osg::MaterialDrawableBase. Definition at line 93 of file OSGSlicesBase.h. 00094 { 00095 SizeFieldId = Inherited::NextFieldId, 00096 SliceDistanceFieldId = SizeFieldId + 1, 00097 NextFieldId = SliceDistanceFieldId + 1 00098 };
|
|
|
Definition at line 175 of file OSGSlicesBase.cpp. 00175 : 00176 _sfSize (Vec3f(1, 1, 1)), 00177 _sfSliceDistance (Real32(100)), 00178 Inherited() 00179 { 00180 }
|
|
|
Definition at line 186 of file OSGSlicesBase.cpp. 00186 : 00187 _sfSize (source._sfSize ), 00188 _sfSliceDistance (source._sfSliceDistance ), 00189 Inherited (source) 00190 { 00191 }
|
|
|
Definition at line 195 of file OSGSlicesBase.cpp.
|
|
|
Reimplemented from osg::MaterialDrawableBase. Definition at line 58 of file OSGSlicesBase.inl. References _type. Referenced by create(), and osg::Slices::initMethod(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::MaterialDrawableBase. Definition at line 65 of file OSGSlicesBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::MaterialDrawableBase. Definition at line 117 of file OSGSlicesBase.cpp. References _type. 00118 { 00119 return _type; 00120 }
|
|
|
Reimplemented from osg::MaterialDrawableBase. Definition at line 122 of file OSGSlicesBase.cpp. References _type. 00123 { 00124 return _type; 00125 }
|
|
|
Reimplemented from osg::MaterialDrawableBase. Definition at line 137 of file OSGSlicesBase.cpp. 00138 { 00139 return sizeof(Slices); 00140 }
|
|
|
Definition at line 101 of file OSGSlicesBase.inl. References _sfSize. 00102 { 00103 return &_sfSize; 00104 }
|
|
|
Definition at line 108 of file OSGSlicesBase.inl. References _sfSliceDistance. 00109 { 00110 return &_sfSliceDistance; 00111 }
|
|
|
Definition at line 116 of file OSGSlicesBase.inl. References _sfSize, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Slices::drawSlices(), and osg::Slices::initEdgeVec(). 00117 { 00118 return _sfSize.getValue(); 00119 }
|
|
|
Definition at line 123 of file OSGSlicesBase.inl. References _sfSize, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00124 { 00125 return _sfSize.getValue(); 00126 }
|
|
|
Definition at line 137 of file OSGSlicesBase.inl. References _sfSliceDistance, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Slices::drawSlices(). 00138 { 00139 return _sfSliceDistance.getValue(); 00140 }
|
|
|
Definition at line 144 of file OSGSlicesBase.inl. References _sfSliceDistance, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00145 { 00146 return _sfSliceDistance.getValue(); 00147 }
|
|
|
Definition at line 130 of file OSGSlicesBase.inl. References _sfSize, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 151 of file OSGSlicesBase.inl. References _sfSliceDistance, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00152 { 00153 _sfSliceDistance.setValue(value); 00154 }
|
|
|
Reimplemented from osg::MaterialDrawableBase. Definition at line 201 of file OSGSlicesBase.cpp. References _sfSize, _sfSliceDistance, osg::SField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::MaterialDrawableBase::getBinSize(), osg::FieldBits::NoField, SizeFieldMask, and SliceDistanceFieldMask. 00202 { 00203 UInt32 returnValue = Inherited::getBinSize(whichField); 00204 00205 if(FieldBits::NoField != (SizeFieldMask & whichField)) 00206 { 00207 returnValue += _sfSize.getBinSize(); 00208 } 00209 00210 if(FieldBits::NoField != (SliceDistanceFieldMask & whichField)) 00211 { 00212 returnValue += _sfSliceDistance.getBinSize(); 00213 } 00214 00215 00216 return returnValue; 00217 }
|
|
||||||||||||
|
Reimplemented from osg::MaterialDrawableBase. Definition at line 219 of file OSGSlicesBase.cpp. References _sfSize, _sfSliceDistance, osg::SField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::MaterialDrawableBase::copyToBin(), osg::FieldBits::NoField, SizeFieldMask, and SliceDistanceFieldMask. 00221 { 00222 Inherited::copyToBin(pMem, whichField); 00223 00224 if(FieldBits::NoField != (SizeFieldMask & whichField)) 00225 { 00226 _sfSize.copyToBin(pMem); 00227 } 00228 00229 if(FieldBits::NoField != (SliceDistanceFieldMask & whichField)) 00230 { 00231 _sfSliceDistance.copyToBin(pMem); 00232 } 00233 00234 00235 }
|
|
||||||||||||
|
Reimplemented from osg::MaterialDrawableBase. Definition at line 237 of file OSGSlicesBase.cpp. References _sfSize, _sfSliceDistance, osg::SField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::MaterialDrawableBase::copyFromBin(), osg::FieldBits::NoField, SizeFieldMask, and SliceDistanceFieldMask. 00239 { 00240 Inherited::copyFromBin(pMem, whichField); 00241 00242 if(FieldBits::NoField != (SizeFieldMask & whichField)) 00243 { 00244 _sfSize.copyFromBin(pMem); 00245 } 00246 00247 if(FieldBits::NoField != (SliceDistanceFieldMask & whichField)) 00248 { 00249 _sfSliceDistance.copyFromBin(pMem); 00250 } 00251 00252 00253 }
|
|
|
Definition at line 72 of file OSGSlicesBase.inl. References osg::AttachmentContainerPtr::dcast(), getClassType(), osg::FieldContainerType::getPrototype(), osg::NullFC, and shallowCopy(). 00073 { 00074 SlicesPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = SlicesPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 }
|
|
|
Definition at line 87 of file OSGSlicesBase.inl. References osg::FieldContainer::newPtr(). 00088 { 00089 SlicesPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 }
|
|
|
Implements osg::FieldContainer. Definition at line 128 of file OSGSlicesBase.cpp. References osg::FieldContainer::newPtr(). Referenced by create(). 00129 { 00130 SlicesPtr returnValue; 00131 00132 newPtr(returnValue, dynamic_cast<const Slices *>(this)); 00133 00134 return returnValue; 00135 }
|
|
||||||||||||
|
Definition at line 256 of file OSGSlicesBase.cpp. References _sfSize, _sfSliceDistance, osg::MaterialDrawableBase::executeSyncImpl(), osg::FieldBits::NoField, SizeFieldMask, SliceDistanceFieldMask, and osg::SField< FieldTypeT, fieldNameSpace >::syncWith(). Referenced by executeSync(). 00258 { 00259 00260 Inherited::executeSyncImpl(pOther, whichField); 00261 00262 if(FieldBits::NoField != (SizeFieldMask & whichField)) 00263 _sfSize.syncWith(pOther->_sfSize); 00264 00265 if(FieldBits::NoField != (SliceDistanceFieldMask & whichField)) 00266 _sfSliceDistance.syncWith(pOther->_sfSliceDistance); 00267 00268 00269 }
|
|
||||||||||||
|
Reimplemented from osg::MaterialDrawableBase. Definition at line 144 of file OSGSlicesBase.cpp. References executeSyncImpl(). 00146 { 00147 this->executeSyncImpl((SlicesBase *) &other, whichField); 00148 }
|
|
|
|
|
|
Reimplemented in osg::Geometry, osg::Slices, osg::Particles, and osg::Surface. Definition at line 87 of file OSGMaterialDrawable.cpp. References osg::Action::Continue, and FWARNING. Referenced by osg::MaterialDrawable::drawActionHandler(), and osg::MaterialDrawable::renderActionHandler(). 00088 { 00089 FWARNING (("You should overload drawPrimitives in your code\n")); 00090 00091 return Action::Continue; 00092 }
|
|
|
|
||||||||||||
|
Reimplemented from osg::Drawable. Reimplemented in osg::Geometry, osg::Slices, osg::Particles, osg::DVRGeometry, and osg::Surface. Definition at line 153 of file OSGMaterialDrawable.cpp. References osg::Drawable::changed(). Referenced by osg::Particles::changed(), and osg::Geometry::changed(). 00154 { 00155 Inherited::changed(whichField, origin); 00156 }
|
|
||||||||||||
|
Reimplemented from osg::Drawable. Reimplemented in osg::Geometry, osg::Slices, osg::Particles, osg::DVRGeometry, and osg::Surface. Definition at line 160 of file OSGMaterialDrawable.cpp. References SLOG. 00162 { 00163 SLOG << "Dump MaterialDrawable NI" << std::endl; 00164 }
|
|
|
Reimplemented from osg::MaterialDrawableBase. Reimplemented in osg::Geometry, osg::Slices, and osg::Particles. Definition at line 46 of file OSGMaterialDrawable.inl. References osg::MaterialDrawableBase::_sfMaterial, osg::SField< FieldTypeT, fieldNameSpace >::getValue(), and osg::setRefdCP(). 00047 { 00048 setRefdCP(_sfMaterial.getValue(), value); 00049 }
|
|
|
Definition at line 75 of file OSGMaterialDrawableBase.inl. References osg::MaterialDrawableBase::_sfMaterial. 00076 { 00077 return &_sfMaterial; 00078 }
|
|
|
Definition at line 83 of file OSGMaterialDrawableBase.inl. References osg::MaterialDrawableBase::_sfMaterial, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Surface::buildSurface(), osg::Surface::clone(), osg::Geometry::clone(), osg::MaterialDrawable::drawActionHandler(), osg::RenderAction::dropGeometry(), osg::Geometry::dump(), osg::Geometry::MergeIndex(), and osg::MaterialDrawable::renderActionHandler(). 00084 { 00085 return _sfMaterial.getValue(); 00086 }
|
|
|
Definition at line 90 of file OSGMaterialDrawableBase.inl. References osg::MaterialDrawableBase::_sfMaterial, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00091 { 00092 return _sfMaterial.getValue(); 00093 }
|
|
||||||||||||
|
Definition at line 219 of file OSGMaterialDrawableBase.cpp. References osg::MaterialDrawableBase::_sfMaterial, osg::DrawableBase::executeSyncImpl(), osg::MaterialDrawableBase::MaterialFieldMask, osg::FieldBits::NoField, and osg::SField< FieldTypeT, fieldNameSpace >::syncWith(). Referenced by osg::MaterialDrawableBase::executeSync(), executeSyncImpl(), osg::ParticlesBase::executeSyncImpl(), and osg::GeometryBase::executeSyncImpl(). 00221 { 00222 00223 Inherited::executeSyncImpl(pOther, whichField); 00224 00225 if(FieldBits::NoField != (MaterialFieldMask & whichField)) 00226 _sfMaterial.syncWith(pOther->_sfMaterial); 00227 00228 00229 }
|
|
||||||||||||
|
Definition at line 182 of file OSGDrawableBase.cpp. References osg::NodeCore::executeSyncImpl(). Referenced by osg::DrawableBase::executeSync(), and osg::MaterialDrawableBase::executeSyncImpl(). |