#include <OSGDVRClipObjects.h>
Inheritance diagram for osg::DVRClipObjects:

Public Types | |
| typedef DVRClipObjectsPtr | Ptr |
| enum | { ClipObjectsFieldId = Inherited::NextFieldId, ClipModeFieldId = ClipObjectsFieldId + 1, DoContoursFieldId = ClipModeFieldId + 1, NextFieldId = DoContoursFieldId + 1 } |
Constants | |
| enum | ClipMode { Off = 0, Intersection = 1, Difference = 2 } |
Public Member Functions | |
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 | |
Info | |
| *UInt32 | count (void) const |
| Returns the number of clip objects set. | |
Objects | |
| *DVRClipGeometryPtr | get (UInt32 i) |
| Get the ith object. | |
| void | add (DVRClipGeometryPtr obj) |
| Add a clip object. | |
| void | remove (DVRClipGeometryPtr obj) |
| Remove a clip object. | |
| void | remove (UInt32 i) |
| Remove the i-th clip object. | |
Clipping | |
| *void | initialize (const Matrix &volumeToWorld, const Plane &referencePlane) |
| Prepare the clip objects for clipping a volume's slices. | |
| void | initialize (const Matrix &volumeToWorld) |
| Prepare the clip objects for clipping a volume's slices. | |
| void | setReferencePlane (const Plane &referencePlane) |
| Set the reference plane used in clipping. | |
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 |
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 | |
Constructors | |
| * | DVRClipObjects (void) |
| Constructor. | |
| DVRClipObjects (const DVRClipObjects &source) | |
| Copy Constructor. | |
Destructors | |
| *virtual | ~DVRClipObjects (void) |
| Destructor. | |
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) |
Protected Attributes | |
Fields | |
| *MFDVRClipGeometryPtr | _mfClipObjects |
| SFInt32 | _sfClipMode |
| SFBool | _sfDoContours |
Private Types | |
| typedef DVRClipObjectsBase | Inherited |
Private Member Functions | |
| void | operator= (const DVRClipObjects &source) |
Static Private Member Functions | |
| static void | initMethod (void) |
| initialize the static features of the class, e.g. action callbacks | |
Friends | |
| class | FieldContainer |
| class | DVRClipObjectsBase |
Definition at line 56 of file OSGDVRClipObjects.h.
|
|
Reimplemented from osg::DVRClipObjectsBase. Definition at line 60 of file OSGDVRClipObjects.h. |
|
|
Definition at line 92 of file OSGDVRClipObjectsBase.h. |
|
|
Definition at line 70 of file OSGDVRClipObjects.h. 00071 { 00072 Off = 0, 00073 Intersection = 1, 00074 Difference = 2 00075 };
|
|
|
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 60 of file OSGDVRClipObjects.cpp. 00060 : 00061 Inherited() 00062 { 00063 }
|
|
|
Definition at line 66 of file OSGDVRClipObjects.cpp. 00066 : 00067 Inherited(source) 00068 { 00069 }
|
|
|
Definition at line 72 of file OSGDVRClipObjects.cpp.
|
|
||||||||||||
|
Reimplemented from osg::FieldContainer. Definition at line 84 of file OSGDVRClipObjects.cpp. References osg::FieldContainer::changed(). 00085 { 00086 Inherited::changed(whichField, origin); 00087 }
|
|
||||||||||||
|
Reimplemented from osg::Attachment. Definition at line 90 of file OSGDVRClipObjects.cpp. References SLOG. 00092 { 00093 SLOG << "Dump DVRClipObjects NI" << std::endl; 00094 }
|
|
|
Definition at line 97 of file OSGDVRClipObjects.cpp. References osg::DVRClipObjectsBase::_mfClipObjects, and osg::MField< FieldTypeT, fieldNameSpace >::size(). 00098 { 00099 return _mfClipObjects.size(); 00100 }
|
|
|
Definition at line 129 of file OSGDVRClipObjects.cpp. References osg::DVRClipObjectsBase::_mfClipObjects. 00130 { 00131 return _mfClipObjects[i]; 00132 }
|
|
|
Definition at line 135 of file OSGDVRClipObjects.cpp. References osg::DVRClipObjectsBase::_mfClipObjects, osg::addRefCP(), osg::NullFC, and osg::MField< FieldTypeT, fieldNameSpace >::push_back(). 00136 { 00137 if(obj == NullFC) 00138 return; 00139 00140 addRefCP(obj); 00141 00142 _mfClipObjects.push_back(obj); 00143 }
|
|
|
Definition at line 146 of file OSGDVRClipObjects.cpp. References osg::DVRClipObjectsBase::_mfClipObjects, osg::MField< FieldTypeT, fieldNameSpace >::begin(), osg::MField< FieldTypeT, fieldNameSpace >::end(), osg::MField< FieldTypeT, fieldNameSpace >::erase(), osg::NullFC, and osg::subRefCP(). 00147 { 00148 if(obj == NullFC) 00149 return; 00150 00151 for(MFDVRClipGeometryPtr::iterator i = _mfClipObjects.begin(); 00152 i != _mfClipObjects.end(); 00153 i++) 00154 { 00155 if(*i == obj) 00156 { 00157 _mfClipObjects.erase(i); 00158 subRefCP(obj); 00159 break; 00160 } 00161 } 00162 }
|
|
|
Definition at line 165 of file OSGDVRClipObjects.cpp. References osg::DVRClipObjectsBase::_mfClipObjects, osg::MField< FieldTypeT, fieldNameSpace >::begin(), osg::MField< FieldTypeT, fieldNameSpace >::end(), osg::MField< FieldTypeT, fieldNameSpace >::erase(), and osg::subRefCP(). 00166 { 00167 MFDVRClipGeometryPtr::iterator it = _mfClipObjects.begin(); 00168 00169 for(UInt32 i = 0; i < n && it != _mfClipObjects.end(); i++) 00170 it++; 00171 00172 if(it != _mfClipObjects.end()) 00173 { 00174 subRefCP(*it); 00175 _mfClipObjects.erase(it); 00176 } 00177 }
|
|
||||||||||||
|
Definition at line 103 of file OSGDVRClipObjects.cpp. References osg::DVRClipObjectsBase::_mfClipObjects, and osg::MField< FieldTypeT, fieldNameSpace >::size(). 00105 { 00106 for(UInt32 i = 0; i < _mfClipObjects.size(); i++) 00107 { 00108 _mfClipObjects[i]->initialize (volumeToWorld ); 00109 _mfClipObjects[i]->setReferencePlane(referencePlane); 00110 } 00111 }
|
|
|
Definition at line 114 of file OSGDVRClipObjects.cpp. References osg::DVRClipObjectsBase::_mfClipObjects, and osg::MField< FieldTypeT, fieldNameSpace >::size(). 00115 { 00116 for(UInt32 i = 0; i < _mfClipObjects.size(); i++) 00117 _mfClipObjects[i]->initialize(volumeToWorld); 00118 }
|
|
|
Definition at line 122 of file OSGDVRClipObjects.cpp. References osg::DVRClipObjectsBase::_mfClipObjects, and osg::MField< FieldTypeT, fieldNameSpace >::size(). 00123 { 00124 for(UInt32 i = 0; i < _mfClipObjects.size(); i++) 00125 _mfClipObjects[i]->setReferencePlane(referencePlane); 00126 }
|
|
|
Definition at line 79 of file OSGDVRClipObjects.cpp.
|
|
|
|
|
|
Reimplemented from osg::Attachment. Definition at line 58 of file OSGDVRClipObjectsBase.inl. References osg::DVRClipObjectsBase::_type. Referenced by osg::DVRClipObjectsBase::create(). 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 65 of file OSGDVRClipObjectsBase.inl. References osg::DVRClipObjectsBase::_type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 128 of file OSGDVRClipObjectsBase.cpp. References osg::DVRClipObjectsBase::_type. 00129 { 00130 return _type; 00131 }
|
|
|
Reimplemented from osg::Attachment. Definition at line 133 of file OSGDVRClipObjectsBase.cpp. References osg::DVRClipObjectsBase::_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 osg::DVRClipObjectsBase::_sfClipMode. 00109 { 00110 return &_sfClipMode; 00111 }
|
|
|
Definition at line 115 of file OSGDVRClipObjectsBase.inl. References osg::DVRClipObjectsBase::_sfDoContours. 00116 { 00117 return &_sfDoContours; 00118 }
|
|
|
Definition at line 123 of file OSGDVRClipObjectsBase.inl. References osg::DVRClipObjectsBase::_sfClipMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00124 { 00125 return _sfClipMode.getValue(); 00126 }
|
|
|
Definition at line 130 of file OSGDVRClipObjectsBase.inl. References osg::DVRClipObjectsBase::_sfClipMode, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00131 { 00132 return _sfClipMode.getValue(); 00133 }
|
|
|
Definition at line 144 of file OSGDVRClipObjectsBase.inl. References osg::DVRClipObjectsBase::_sfDoContours, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00145 { 00146 return _sfDoContours.getValue(); 00147 }
|
|
|
Definition at line 151 of file OSGDVRClipObjectsBase.inl. References osg::DVRClipObjectsBase::_sfDoContours, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00152 { 00153 return _sfDoContours.getValue(); 00154 }
|
|
|
Definition at line 137 of file OSGDVRClipObjectsBase.inl. References osg::DVRClipObjectsBase::_sfClipMode, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00138 { 00139 _sfClipMode.setValue(value); 00140 }
|
|
|
Definition at line 158 of file OSGDVRClipObjectsBase.inl. References osg::DVRClipObjectsBase::_sfDoContours, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00159 { 00160 _sfDoContours.setValue(value); 00161 }
|
|
|
||||||||||||
|
Reimplemented from osg::Attachment. Definition at line 238 of file OSGDVRClipObjectsBase.cpp. References osg::DVRClipObjectsBase::_mfClipObjects, osg::DVRClipObjectsBase::_sfClipMode, osg::DVRClipObjectsBase::_sfDoContours, osg::DVRClipObjectsBase::ClipModeFieldMask, osg::DVRClipObjectsBase::ClipObjectsFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::MField< FieldTypeT, fieldNameSpace >::copyToBin(), osg::Attachment::copyToBin(), osg::DVRClipObjectsBase::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 osg::DVRClipObjectsBase::_mfClipObjects, osg::DVRClipObjectsBase::_sfClipMode, osg::DVRClipObjectsBase::_sfDoContours, osg::DVRClipObjectsBase::ClipModeFieldMask, osg::DVRClipObjectsBase::ClipObjectsFieldMask, osg::SField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::MField< FieldTypeT, fieldNameSpace >::copyFromBin(), osg::Attachment::copyFromBin(), osg::DVRClipObjectsBase::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(), osg::DVRClipObjectsBase::getClassType(), osg::FieldContainerType::getPrototype(), osg::NullFC, and osg::DVRClipObjectsBase::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 osg::DVRClipObjectsBase::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 osg::DVRClipObjectsBase::_mfClipObjects. 00102 { 00103 return &_mfClipObjects; 00104 }
|
|
|
Definition at line 166 of file OSGDVRClipObjectsBase.inl. References osg::DVRClipObjectsBase::_mfClipObjects. 00167 { 00168 return _mfClipObjects[index]; 00169 }
|
|
|
Definition at line 173 of file OSGDVRClipObjectsBase.inl. References osg::DVRClipObjectsBase::_mfClipObjects. 00174 { 00175 return _mfClipObjects; 00176 }
|
|
|
Definition at line 180 of file OSGDVRClipObjectsBase.inl. References osg::DVRClipObjectsBase::_mfClipObjects. 00181 { 00182 return _mfClipObjects; 00183 }
|
|
||||||||||||
|
||||||||||||
|
||||||||||||
|
Definition at line 333 of file OSGFieldContainerImpl.inl. Referenced by osg::StateBase::executeSyncImpl(), |