DART 6.13.2
Loading...
Searching...
No Matches
dart::gui::osg::detail::CameraModeCallback Class Reference

#include <CameraModeCallback.hpp>

Inheritance diagram for dart::gui::osg::detail::CameraModeCallback:

Public Member Functions

 CameraModeCallback ()
 Default constructor.
 
void operator() (::osg::Node *node, ::osg::NodeVisitor *nv) override
 
void setCameraMode (CameraMode mode)
 Sets the camera mode of the primary camera.
 
CameraMode getCameraMode () const
 Returns the camera mode of the primary camera.
 
void setSceneData (::osg::Node *scene)
 Sets the scene to render the depth.
 

Private Attributes

::osg::ref_ptr<::osg::Camera > mDepthRrtCam
 
::osg::ref_ptr<::osg::Camera > mDepthHudCam
 
CameraMode mCameraMode
 
bool mCameraModeChanged
 
::osg::ref_ptr<::osg::Node > mScene
 
::osg::ref_ptr<::osg::Node > mSceneToChange
 
std::mutex mMutex
 Mutex for all the member variables.
 

Constructor & Destructor Documentation

◆ CameraModeCallback()

dart::gui::osg::detail::CameraModeCallback::CameraModeCallback ( )

Default constructor.

Member Function Documentation

◆ getCameraMode()

CameraMode dart::gui::osg::detail::CameraModeCallback::getCameraMode ( ) const

Returns the camera mode of the primary camera.

Note
Thread safe

◆ operator()()

void dart::gui::osg::detail::CameraModeCallback::operator() ( ::osg::Node *  node,
::osg::NodeVisitor *  nv 
)
override

◆ setCameraMode()

void dart::gui::osg::detail::CameraModeCallback::setCameraMode ( CameraMode  mode)

Sets the camera mode of the primary camera.

Note
Thread safe

◆ setSceneData()

void dart::gui::osg::detail::CameraModeCallback::setSceneData ( ::osg::Node *  scene)

Sets the scene to render the depth.

Note
Thread safe

Member Data Documentation

◆ mCameraMode

CameraMode dart::gui::osg::detail::CameraModeCallback::mCameraMode
private

◆ mCameraModeChanged

bool dart::gui::osg::detail::CameraModeCallback::mCameraModeChanged
private

◆ mDepthHudCam

::osg::ref_ptr<::osg::Camera> dart::gui::osg::detail::CameraModeCallback::mDepthHudCam
private

◆ mDepthRrtCam

::osg::ref_ptr<::osg::Camera> dart::gui::osg::detail::CameraModeCallback::mDepthRrtCam
private

◆ mMutex

std::mutex dart::gui::osg::detail::CameraModeCallback::mMutex
mutableprivate

Mutex for all the member variables.

◆ mScene

::osg::ref_ptr<::osg::Node> dart::gui::osg::detail::CameraModeCallback::mScene
private

◆ mSceneToChange

::osg::ref_ptr<::osg::Node> dart::gui::osg::detail::CameraModeCallback::mSceneToChange
private