#include <OSGDVRClipObjectsBase.h>
Inheritance diagram for osg::DVRClipObjectsBase:

Public Types | |
| typedef DVRClipObjectsPtr | Ptr |
| enum | { ClipObjectsFieldId = Inherited::NextFieldId, ClipModeFieldId = ClipObjectsFieldId + 1, DoContoursFieldId = ClipModeFieldId + 1, NextFieldId = DoContoursFieldId + 1 } |
Public Member Functions | |
Parents | |
| *MFFieldContainerPtr & | getParents (void) |
| const MFFieldContainerPtr & | getParents (void) const |
| MFFieldContainerPtr * | getMFParents (void) |
| void | addParent (FieldContainerPtr parent) |
| void | subParent (FieldContainerPtr parent) |
| Int32 | findParent (FieldContainerPtr parent) |
Parents | |
| *SFBool & | getInternal (void) |
| const SFBool & | getInternal (void) const |
| SFBool * | getSFInternal (void) |
| void | setInternal (bool bVal) |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFInt32 * | getSFClipMode (void) |
| Get the DVRClipObjects::_sfClipMode field. | |
| SFBool * | getSFDoContours (void) |
| Get the DVRClipObjects::_sfDoContours field. | |
| Int32 & | getClipMode (void) |
| Get the value of the DVRClipObjects::_sfClipMode field. | |
| const Int32 & | getClipMode (void) const |
| Get the value of the DVRClipObjects::_sfClipMode field. | |
| bool & | getDoContours (void) |
| Get the value of the DVRClipObjects::_sfDoContours field. | |
| const bool & | getDoContours (void) const |
| Get the value of the DVRClipObjects::_sfDoContours field. | |
Field Set | |
| *void | setClipMode (const Int32 &value) |
| Set the value of the DVRClipObjects::_sfClipMode field. | |
| void | setDoContours (const bool &value) |
| Set the value of the DVRClipObjects::_sfDoContours 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 |
Parents | |
| *MFFieldContainerPtr & | getParents (void) |
| const MFFieldContainerPtr & | getParents (void) const |
| MFFieldContainerPtr * | getMFParents (void) |
| void | addParent (FieldContainerPtr parent) |
| void | subParent (FieldContainerPtr parent) |
| Int32 | findParent (FieldContainerPtr parent) |
Parents | |
| *SFBool & | getInternal (void) |
| const SFBool & | getInternal (void) const |
| SFBool * | getSFInternal (void) |
| void | setInternal (bool bVal) |
Dump | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
Changed | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
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 DVRClipObjectsPtr | create (void) |
| create a new instance of the class | |
| static DVRClipObjectsPtr | createEmpty (void) |
| create an empty new instance of the class, do not copy the prototype | |
Static Public Attributes | |
| static const osg::BitVector | ClipObjectsFieldMask |
| static const osg::BitVector | ClipModeFieldMask |
| static const osg::BitVector | DoContoursFieldMask |
| 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 | |
Sync | |
| void | executeSyncImpl (Attachment *pOther, const BitVector &whichField) |
MT Destruction | |
| *virtual void | onDestroy (void) |
Constructors | |
| * | DVRClipObjectsBase (void) |
| DVRClipObjectsBase (const DVRClipObjectsBase &source) | |
Destructors | |
| *virtual | ~DVRClipObjectsBase (void) |
Field Get | |
| *MFDVRClipGeometryPtr * | getMFClipObjects (void) |
| Get the DVRClipObjects::_mfClipObjects field. | |
| DVRClipGeometryPtr & | getClipObjects (UInt32 index) |
| Get the value of the index element the DVRClipObjects::_mfClipObjects field. | |
| MFDVRClipGeometryPtr & | getClipObjects (void) |
| Get the DVRClipObjects::_mfClipObjects field. | |
| const MFDVRClipGeometryPtr & | getClipObjects (void) const |
| Get the DVRClipObjects::_mfClipObjects field. | |
Sync | |
| *void | executeSyncImpl (DVRClipObjectsBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
MT Destruction | |
| *virtual void | onDestroy (void) |
Sync | |
| void | executeSyncImpl (Attachment *pOther, const BitVector &whichField) |
Protected Attributes | |
Fields | |
| *SFBool | _sfInternal |
| MFFieldContainerPtr | _parents |
Fields | |
| *MFDVRClipGeometryPtr | _mfClipObjects |
| SFInt32 | _sfClipMode |
| SFBool | _sfDoContours |
Fields | |
| *SFBool | _sfInternal |
| MFFieldContainerPtr | _parents |
Private Types | |
| typedef Attachment | Inherited |
Private Member Functions | |
| void | operator= (const DVRClipObjectsBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| DVRClipObjects description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 83 of file OSGDVRClipObjectsBase.h.
|
|
Reimplemented from osg::Attachment. Reimplemented in osg::DVRClipObjects. Definition at line 87 of file OSGDVRClipObjectsBase.h. |
|
|
Definition at line 92 of file OSGDVRClipObjectsBase.h. |
|
|
Reimplemented from osg::Attachment. Definition at line 94 of file OSGDVRClipObjectsBase.h. 00095 { 00096 ClipObjectsFieldId = Inherited::NextFieldId, 00097 ClipModeFieldId = ClipObjectsFieldId + 1, 00098 DoContoursFieldId = ClipModeFieldId + 1, 00099 NextFieldId = DoContoursFieldId + 1 00100 };
|
|
|
Definition at line 187 of file OSGDVRClipObjectsBase.cpp. 00187 : 00188 _mfClipObjects (), 00189 _sfClipMode (Int32(2)), 00190 _sfDoContours (bool(false)), 00191 Inherited() 00192 { 00193 }
|
|
|
Definition at line 199 of file OSGDVRClipObjectsBase.cpp. 00199 : 00200 _mfClipObjects (source._mfClipObjects ), 00201 _sfClipMode (source._sfClipMode ), 00202 _sfDoContours (source._sfDoContours ), 00203 Inherited (source) 00204 { 00205 }
|
|
|
Definition at line 209 of file OSGDVRClipObjectsBase.cpp.
|
|
|
Reimplemented from osg::Attachment. Definition at line 58 of file OSGDVRClipObjectsBase.inl. References _type. Referenced by create(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 65 of file OSGDVRClipObjectsBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 128 of file OSGDVRClipObjectsBase.cpp. References _type. 00129 { 00130 return _type; 00131 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 133 of file OSGDVRClipObjectsBase.cpp. References _type. 00134 { 00135 return _type; 00136 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 148 of file OSGDVRClipObjectsBase.cpp. 00149 { 00150 return sizeof(DVRClipObjects); 00151 }
|
|
|
Definition at line 108 of file OSGDVRClipObjectsBase.inl. References _sfClipMode. 00109 { 00110 return &_sfClipMode; 00111 }
|
|
|
Definition at line 115 of file OSGDVRClipObjectsBase.inl. References _sfDoContours. 00116 { 00117 return &_sfDoContours; 00118 }
|
|
|
Definition at line 123 of file OSGDVRClipObjectsBase.inl. References _sfClipMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00124 { 00125 return _sfClipMode.getValue(); 00126 }
|
|
|
Definition at line 130 of file OSGDVRClipObjectsBase.inl. References _sfClipMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00131 { 00132 return _sfClipMode.getValue(); 00133 }
|
|
|
Definition at line 144 of file OSGDVRClipObjectsBase.inl. References _sfDoContours, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00145 { 00146 return _sfDoContours.getValue(); 00147 }
|
|
|
Definition at line 151 of file OSGDVRClipObjectsBase.inl. References _sfDoContours, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00152 { 00153 return _sfDoContours.getValue(); 00154 }
|
|
|
Definition at line 137 of file OSGDVRClipObjectsBase.inl. References _sfClipMode, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00138 { 00139 _sfClipMode.setValue(value); 00140 }
|
|
|
Definition at line 158 of file OSGDVRClipObjectsBase.inl. References _sfDoContours, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00159 { 00160 _sfDoContours.setValue(value); 00161 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 215 of file OSGDVRClipObjectsBase.cpp. References _mfClipObjects, _sfClipMode, _sfDoContours, ClipModeFieldMask, ClipObjectsFieldMask, DoContoursFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::MField< FieldTypeT, fieldNameSpace >::getBinSize(), osg::Attachment::getBinSize(), and osg::FieldBits::NoField. 00216 { 00217 UInt32 returnValue = Inherited::getBinSize(whichField); 00218 00219 if(FieldBits::NoField != (ClipObjectsFieldMask & whichField)) 00220 { 00221 returnValue += _mfClipObjects.getBinSize(); 00222 } 00223 00224 if(FieldBits::NoField != (ClipModeFieldMask & whichField)) 00225 { 00226 returnValue += _sfClipMode.getBinSize(); 00227 } 00228 00229 if(FieldBits::NoField != (DoContoursFieldMask & whichField)) 00230 { 00231 returnValue += _sfDoContours.getBinSize(); 00232 } 00233 00234 00235 return returnValue; 00236 }
|
|
||||||||||||
|
Reimplemented from osg::Attachment. Definition at line 238 of file OSGDVRClipObjectsBase.cpp. References _mfClipObjects, _sfClipMode, _sfDoContours, ClipModeFieldMask, ClipObjectsFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::MField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::Attachment::copyToBin(), DoContoursFieldMask, and osg::FieldBits::NoField. 00240 { 00241 Inherited::copyToBin(pMem, whichField); 00242 00243 if(FieldBits::NoField != (ClipObjectsFieldMask & whichField)) 00244 { 00245 _mfClipObjects.copyToBin(pMem); 00246 } 00247 00248 if(FieldBits::NoField != (ClipModeFieldMask & whichField)) 00249 { 00250 _sfClipMode.copyToBin(pMem); 00251 } 00252 00253 if(FieldBits::NoField != (DoContoursFieldMask & whichField)) 00254 { 00255 _sfDoContours.copyToBin(pMem); 00256 } 00257 00258 00259 }
|
|
||||||||||||
|
Reimplemented from osg::Attachment. Definition at line 261 of file OSGDVRClipObjectsBase.cpp. References _mfClipObjects, _sfClipMode, _sfDoContours, ClipModeFieldMask, ClipObjectsFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::MField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::Attachment::copyFromBin(), DoContoursFieldMask, and osg::FieldBits::NoField. 00263 { 00264 Inherited::copyFromBin(pMem, whichField); 00265 00266 if(FieldBits::NoField != (ClipObjectsFieldMask & whichField)) 00267 { 00268 _mfClipObjects.copyFromBin(pMem); 00269 } 00270 00271 if(FieldBits::NoField != (ClipModeFieldMask & whichField)) 00272 { 00273 _sfClipMode.copyFromBin(pMem); 00274 } 00275 00276 if(FieldBits::NoField != (DoContoursFieldMask & whichField)) 00277 { 00278 _sfDoContours.copyFromBin(pMem); 00279 } 00280 00281 00282 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 72 of file OSGDVRClipObjectsBase.inl. References osg::AttachmentPtr::dcast(), getClassType(), osg::FieldContainerType::getPrototype(), osg::NullFC, and shallowCopy(). 00073 { 00074 DVRClipObjectsPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = DVRClipObjectsPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 87 of file OSGDVRClipObjectsBase.inl. References osg::FieldContainer::newPtr(). 00088 { 00089 DVRClipObjectsPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 139 of file OSGDVRClipObjectsBase.cpp. References osg::FieldContainer::newPtr(). Referenced by create(). 00140 { 00141 DVRClipObjectsPtr returnValue; 00142 00143 newPtr(returnValue, dynamic_cast<const DVRClipObjects *>(this)); 00144 00145 return returnValue; 00146 }
|
|
|
Definition at line 101 of file OSGDVRClipObjectsBase.inl. References _mfClipObjects. 00102 { 00103 return &_mfClipObjects; 00104 }
|
|
|
Definition at line 166 of file OSGDVRClipObjectsBase.inl. References _mfClipObjects. 00167 { 00168 return _mfClipObjects[index]; 00169 }
|
|
|
Definition at line 173 of file OSGDVRClipObjectsBase.inl. References _mfClipObjects. 00174 { 00175 return _mfClipObjects; 00176 }
|
|
|
Definition at line 180 of file OSGDVRClipObjectsBase.inl. References _mfClipObjects. 00181 { 00182 return _mfClipObjects; 00183 }
|
|
||||||||||||
|
Definition at line 285 of file OSGDVRClipObjectsBase.cpp. References _mfClipObjects, _sfClipMode, _sfDoContours, ClipModeFieldMask, ClipObjectsFieldMask, DoContoursFieldMask, osg::Attachment::executeSyncImpl(), osg::FieldBits::NoField, osg::SField< FieldTypeT, fieldNameSpace >::syncWith(), and osg::MField< FieldTypeT, fieldNameSpace >::syncWith(). Referenced by executeSync(). 00287 { 00288 00289 Inherited::executeSyncImpl(pOther, whichField); 00290 00291 if(FieldBits::NoField != (ClipObjectsFieldMask & whichField)) 00292 _mfClipObjects.syncWith(pOther->_mfClipObjects); 00293 00294 if(FieldBits::NoField != (ClipModeFieldMask & whichField)) 00295 _sfClipMode.syncWith(pOther->_sfClipMode); 00296 00297 if(FieldBits::NoField != (DoContoursFieldMask & whichField)) 00298 _sfDoContours.syncWith(pOther->_sfDoContours); 00299 00300 00301 }
|
|
||||||||||||
|
Reimplemented from osg::Attachment. Definition at line 155 of file OSGDVRClipObjectsBase.cpp. References executeSyncImpl(). 00157 { 00158 this->executeSyncImpl((DVRClipObjectsBase *) &other, whichField); 00159 }
|
|
|
|
|
|
Definition at line 95 of file OSGAttachment.cpp. 00096 { 00097 return _parents; 00098 }
|
|
|
Definition at line 100 of file OSGAttachment.cpp. References osg::Attachment::_parents. 00101 { 00102 return _parents; 00103 }
|
|
|
Definition at line 105 of file OSGAttachment.cpp. References osg::Attachment::_parents. Referenced by osg::DVRLookupTable::changed(). 00106 { 00107 return &_parents; 00108 }
|
|
|
Definition at line 110 of file OSGAttachment.cpp. References osg::Attachment::_parents, and osg::MField< FieldTypeT, fieldNameSpace >::push_back().
|
|
|
Definition at line 115 of file OSGAttachment.cpp. References osg::Attachment::_parents, osg::MField< FieldTypeT, fieldNameSpace >::end(), osg::MField< FieldTypeT, fieldNameSpace >::erase(), and osg::MField< FieldTypeT, fieldNameSpace >::find(). 00116 { 00117 MFFieldContainerPtr::iterator parentIt = _parents.find(parent); 00118 00119 if(parentIt != _parents.end()) 00120 { 00121 _parents.erase(parentIt); 00122 } 00123 }
|
|
|
Definition at line 125 of file OSGAttachment.cpp. References osg::Attachment::_parents, osg::MField< FieldTypeT, fieldNameSpace >::begin(), osg::MField< FieldTypeT, fieldNameSpace >::end(), and osg::MField< FieldTypeT, fieldNameSpace >::find(). 00126 { 00127 MFFieldContainerPtr::iterator parentIt = _parents.find(parent); 00128 00129 if(parentIt != _parents.end()) 00130 { 00131 return parentIt - _parents.begin(); 00132 } 00133 else 00134 { 00135 return -1; 00136 } 00137 }
|
|
|
Definition at line 142 of file OSGAttachment.cpp. References osg::Attachment::_sfInternal. 00143 { 00144 return _sfInternal; 00145 }
|
|
|
Definition at line 147 of file OSGAttachment.cpp. References osg::Attachment::_sfInternal. 00148 { 00149 return _sfInternal; 00150 }
|
|
|
Definition at line 152 of file OSGAttachment.cpp. References osg::Attachment::_sfInternal. 00153 { 00154 return &_sfInternal; 00155 }
|
|
|
Definition at line 157 of file OSGAttachment.cpp. References osg::Attachment::_sfInternal, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00158 { 00159 _sfInternal.setValue(bVal); 00160 }
|
|
||||||||||||