#include <OSGDrawActionBase.h>
Inheritance diagram for osg::DrawActionBase:

Definition at line 77 of file OSGDrawActionBase.h.
|
|
Reimplemented in osg::DrawAction, osg::RenderAction, and osg::RenderActionBase. Definition at line 231 of file OSGDrawActionBase.h. |
|
|
Definition at line 95 of file OSGAction.h. |
|
|
Definition at line 99 of file OSGAction.h. |
|
|
Definition at line 87 of file OSGAction.h. 00088 { 00089 Continue, // continue with my children 00090 Skip, // skip my children 00091 // really needed? Cancel, // skip my brothers, go one step up 00092 Quit // forget it, you're done 00093 };
|
|
|
Definition at line 162 of file OSGDrawActionBase.cpp. References _ownStat, and _statistics. 00163 { 00164 #if 0 // Altered for last frame time 00165 00166 #else 00167 if (_ownStat) { 00168 delete _statistics; 00169 } 00170 #endif 00171 }
|
|
|
Definition at line 122 of file OSGDrawActionBase.cpp. 00122 : 00123 Inherited ( ), 00124 _camera (NULL ), 00125 _background (NULL ), 00126 _window (NULL ), 00127 _viewport (NULL ), 00128 _statistics (NULL ), 00129 _ownStat (false), 00130 _frustumCulling(true ), 00131 _volumeDrawing (false), 00132 _autoFrustum (true ), 00133 _frustum ( ), 00134 _pMaterial ( ), 00135 _pMaterialNode ( ), 00136 _mCameraToWorld( ) 00137 { 00138 }
|
|
|
Definition at line 141 of file OSGDrawActionBase.cpp. 00141 : 00142 Inherited (source ), 00143 _camera (source._camera ), 00144 _background (source._background ), 00145 _window (source._window ), 00146 _viewport (source._viewport ), 00147 _statistics (source._statistics ), 00148 _ownStat (source._ownStat ), 00149 _frustumCulling(source._frustumCulling ), 00150 _volumeDrawing (source._volumeDrawing ), 00151 _autoFrustum (source._autoFrustum ), 00152 _frustum (source._frustum ), 00153 _pMaterial (source._pMaterial ), 00154 _pMaterialNode (source._pMaterialNode ), 00155 _mCameraToWorld(source._mCameraToWorld ) 00156 { 00157 }
|
|
|
|
Definition at line 267 of file OSGDrawActionBase.cpp. References _viewport. Referenced by osg::Viewport::draw(), osg::PassiveViewport::draw(), osg::Viewport::render(), and osg::PassiveViewport::render(). 00268 { 00269 _viewport = viewport; 00270 }
|
|
|
|
Definition at line 272 of file OSGDrawActionBase.cpp. References _camera. Referenced by osg::Viewport::draw(), osg::PassiveViewport::draw(), osg::Viewport::render(), and osg::PassiveViewport::render(). 00273 { 00274 _camera = cam; 00275 }
|
|
|
|
Definition at line 107 of file OSGDrawActionBase.inl. References _background. 00108 { 00109 return _background; 00110 }
|
|
|
Definition at line 277 of file OSGDrawActionBase.cpp. References _background. Referenced by osg::Viewport::draw(), osg::PassiveViewport::draw(), osg::Viewport::render(), and osg::PassiveViewport::render(). 00278 { 00279 _background = background; 00280 }
|
|
|
|
Definition at line 282 of file OSGDrawActionBase.cpp. References _window. Referenced by osg::Window::drawAllViewports(), osg::Window::renderAllViewports(), and osg::SortFirstWindow::serverRender(). 00283 { 00284 _window = window; 00285 }
|
|
|
Definition at line 149 of file OSGDrawActionBase.inl. References _ownStat, _statistics, and osg::StatCollector::create(). Referenced by osg::TextureChunk::activate(), osg::TextureChunk::changeFrom(), osg::SpotLight::drawEnter(), osg::PointLight::drawEnter(), osg::DirectionalLight::drawEnter(), osg::Slices::drawPrimitives(), osg::Geometry::drawPrimitives(), osg::RenderAction::isVisible(), osg::DrawAction::isVisible(), osg::RenderAction::pushVisibility(), osg::SpotLight::renderEnter(), osg::PointLight::renderEnter(), osg::DirectionalLight::renderEnter(), osg::RenderAction::start(), start(), osg::RenderAction::stop(), and stop(). 00150 { 00151 if(_statistics == NULL) 00152 { 00153 _statistics = StatCollector::create(); 00154 _ownStat = true; 00155 } 00156 00157 return _statistics; 00158 }
|
|
|
Definition at line 287 of file OSGDrawActionBase.cpp. References _ownStat, and _statistics. Referenced by osg::SimpleSceneManager::setStatistics(). 00288 { 00289 #if 0 // Altered for last frame time 00290 _statistics = statistics; 00291 _ownStat = false; 00292 #else 00293 if (_ownStat) { 00294 delete _statistics; 00295 } 00296 _statistics = statistics; 00297 _ownStat = false; 00298 #endif 00299 }
|
|
|
Definition at line 125 of file OSGDrawActionBase.inl. References _frustumCulling. Referenced by osg::RenderAction::isVisible(), osg::DrawAction::isVisible(), osg::RenderAction::popVisibility(), osg::RenderAction::pushVisibility(), selectVisibles(), and start(). 00126 { 00127 return _frustumCulling; 00128 }
|
|
|
Definition at line 305 of file OSGDrawActionBase.cpp. References _frustumCulling. 00306 { 00307 _frustumCulling = frustumCulling; 00308 }
|
|
|
Definition at line 131 of file OSGDrawActionBase.inl. References _volumeDrawing. Referenced by osg::RenderAction::pushVisibility(), selectVisibles(), and stop(). 00132 { 00133 return _volumeDrawing; 00134 }
|
|
|
Definition at line 321 of file OSGDrawActionBase.cpp. References _volumeDrawing. 00322 { 00323 _volumeDrawing = volumeDrawing; 00324 }
|
|
|
Definition at line 137 of file OSGDrawActionBase.inl. References _autoFrustum. Referenced by start(). 00138 { 00139 return _autoFrustum; 00140 }
|
|
|
Definition at line 313 of file OSGDrawActionBase.cpp. References _autoFrustum. 00314 { 00315 _autoFrustum = autoFrustum; 00316 }
|
|
|
Definition at line 143 of file OSGDrawActionBase.inl. References _frustum. 00144 { 00145 return _frustum; 00146 }
|
|
|
Definition at line 328 of file OSGDrawActionBase.cpp. References _frustum. 00329 { 00330 _frustum = frustum; 00331 }
|
|
|
Implemented in osg::DrawAction, and osg::RenderAction. Referenced by osg::Switch::draw(), osg::ProxyGroup::draw(), osg::DistanceLOD::draw(), and selectVisibles(). |
|
|
Definition at line 334 of file OSGDrawActionBase.cpp. References osg::Action::addNode(), osg::dropVolume(), getFrustumCulling(), osg::Action::getNNodes(), osg::Action::getNode(), getVolumeDrawing(), isVisible(), osg::Color3< ValueTypeT >::setValuesRGB(), and osg::Action::useNodeList(). Referenced by osg::Switch::draw(), osg::Transform::drawEnter(), osg::MaterialGroup::drawEnter(), osg::Light::drawEnter(), osg::Inline::drawEnter(), and osg::Group::drawEnter(). 00335 { 00336 if(getFrustumCulling() == false) 00337 return getNNodes(); 00338 00339 useNodeList(); 00340 00341 Color3f col; 00342 00343 UInt32 count = 0; 00344 for ( UInt32 i = 0; i < getNNodes(); i++ ) 00345 { 00346 if ( isVisible( getNode(i).getCPtr() ) ) 00347 { 00348 col.setValuesRGB(0,1,0); 00349 addNode( getNode(i) ); 00350 ++count; 00351 } 00352 else 00353 col.setValuesRGB(1,0,0); 00354 00355 if(getVolumeDrawing()) 00356 { 00357 dropVolume(this, getNode(i), col); 00358 } 00359 } 00360 00361 return count; 00362 }
|
|
|
Definition at line 161 of file OSGDrawActionBase.inl. References _pMaterial. Referenced by osg::DVRVolume::doDraw(), osg::MaterialDrawable::drawActionHandler(), osg::MaterialGroup::drawEnter(), osg::RenderAction::dropFunctor(), osg::RenderAction::dropGeometry(), osg::MaterialDrawable::renderActionHandler(), and osg::MaterialGroup::renderEnter(). 00162 { 00163 return _pMaterial; 00164 }
|
|
|
Definition at line 167 of file OSGDrawActionBase.inl. References _pMaterialNode. Referenced by osg::MaterialGroup::drawLeave(), and osg::MaterialGroup::renderLeave(). 00168 { 00169 return _pMaterialNode; 00170 }
|
|
||||||||||||
|
Definition at line 175 of file OSGDrawActionBase.cpp. References _pMaterial, and _pMaterialNode. Referenced by osg::MaterialGroup::drawEnter(), osg::MaterialGroup::drawLeave(), osg::MaterialGroup::renderEnter(), and osg::MaterialGroup::renderLeave(). 00176 { 00177 _pMaterial = pMaterial; 00178 _pMaterialNode = node; 00179 }
|
|
|
|
Definition at line 243 of file OSGDrawActionBase.cpp. References _frustum, _ownStat, _statistics, osg::drawVolume(), osg::StatCollector::getElem(), getStatistics(), getVolumeDrawing(), and statTravTime. Referenced by osg::RenderAction::stop(). 00244 { 00245 if ( getVolumeDrawing() ) 00246 drawVolume( _frustum ); 00247 00248 getStatistics()->getElem(statTravTime)->stop(); 00249 00250 #if 0 // Altered for last frame time 00251 if(_ownStat) 00252 { 00253 delete _statistics; 00254 _statistics = NULL; 00255 } 00256 else 00257 { 00258 _ownStat = false; 00259 } 00260 #endif 00261 00262 return res; 00263 }
|
|
|
|
|
|
Reimplemented from osg::Action. Implemented in osg::DrawAction, and osg::RenderAction. |
|
|
Reimplemented from osg::Action. Implemented in osg::DrawAction, and osg::RenderAction. |
|
|
Reimplemented in osg::DrawAction, osg::IntersectAction, and osg::VRMLWriteAction. Definition at line 109 of file OSGAction.h.
|
|
|
Reimplemented in osg::DrawAction, osg::IntersectAction, osg::RenderAction, and osg::VRMLWriteAction. Definition at line 176 of file OSGAction.cpp. References osg::Action::_prototype, and osg::Action::Action(). |