Scene Class Reference

#include <MemoryX/gui-plugins/SceneEditor/scene3D/Scene.h>

Public Member Functions

void enterEditorMode ()
 Switch to EditorMode.
 
void enterViewerMode ()
 Switch back to ViewerMode.
 
controller::ControllerWeakPtr getController ()
 Returns the Controller for this scene.
 
SceneGroupManagerPtr getGroupManager ()
 Returns the SceneGroupManager, which handles all groups saved in scene.
 
SceneManipulatorManagerPtr getManipulatorManager ()
 Returns the ManipulatorManager, which handles all manipulators and their callbacks.
 
SceneObjectManagerPtr getObjectManager ()
 Returns the SceneObjectManager, which handles all objects displayed in scene.
 
PreviewGeneratorPtr getPreviewGenerator ()
 Returns the PreviewGenerator, which can generate preview images of objects.
 
SceneSelectionManagerPtr getSelectionManager ()
 Returns the SelectionManager, which handles all selection actions in scene.
 
void makeCameraViewAll (SoCamera *camera, const SbViewportRegion &region)
 Make camera view all.
 
SoSeparator * registerCamera (SoCamera *camera)
 Registers a new camera to the scene.
 
 ~Scene ()
 

Static Public Member Functions

static ScenePtr create (controller::ControllerPtr controller)
 Creates a new instance of the Scene.
 

Public Attributes

std::mutex execute_mutex
 Any changes to the scene have to be synchronized.
 

Friends

class gui::MinimapWidget
 
class gui::ScenegraphWidget
 
class SceneManipulatorManager
 
class SceneObjectManager
 
class SceneSelectionManager
 

Constructor & Destructor Documentation

◆ ~Scene()

~Scene ( )

Member Function Documentation

◆ create()

scene3D::ScenePtr create ( controller::ControllerPtr controller)
static

Creates a new instance of the Scene.

◆ enterEditorMode()

void enterEditorMode ( )

Switch to EditorMode.

◆ enterViewerMode()

void enterViewerMode ( )

Switch back to ViewerMode.

◆ getController()

controller::ControllerWeakPtr getController ( )

Returns the Controller for this scene.

See also
controller::controller
Returns
controller::Controller The Controller

◆ getGroupManager()

scene3D::SceneGroupManagerPtr getGroupManager ( )

Returns the SceneGroupManager, which handles all groups saved in scene.

See also
scene3D::SceneGroupManager
Returns
SceneGroupManager The SceneGroupManager

◆ getManipulatorManager()

scene3D::SceneManipulatorManagerPtr getManipulatorManager ( )

Returns the ManipulatorManager, which handles all manipulators and their callbacks.

See also
scene3D::SceneManipulationManager
Returns
SceneManipulatorManager The SceneManipulationManager

◆ getObjectManager()

scene3D::SceneObjectManagerPtr getObjectManager ( )

Returns the SceneObjectManager, which handles all objects displayed in scene.

See also
scene3D::SceneObjectManager
Returns
SceneObjectManager The current SceneObjectManager

◆ getPreviewGenerator()

scene3D::PreviewGeneratorPtr getPreviewGenerator ( )

Returns the PreviewGenerator, which can generate preview images of objects.

See also
scene3D::PreviewGenerator
Returns
PreviewGenerator The PreviewGenerator

◆ getSelectionManager()

scene3D::SceneSelectionManagerPtr getSelectionManager ( )

Returns the SelectionManager, which handles all selection actions in scene.

See also
scene3D::SceneSelectionManager
Returns
SceneSelectionManager The SceneSelectionManager

◆ makeCameraViewAll()

void makeCameraViewAll ( SoCamera * camera,
const SbViewportRegion & region )

Make camera view all.

Makes sure grid floor is not taken into account.

◆ registerCamera()

SoSeparator * registerCamera ( SoCamera * camera)

Registers a new camera to the scene.

Basically adds it on top of selection root node, which is head of our scene.

Parameters
cameraThe Camera to add to the scene.
Returns
SoSeparator A Seperator which can now be used as root in scene in, for example, a viewer.

Friends And Related Symbol Documentation

◆ gui::MinimapWidget

friend class gui::MinimapWidget
friend

◆ gui::ScenegraphWidget

friend class gui::ScenegraphWidget
friend

◆ SceneManipulatorManager

friend class SceneManipulatorManager
friend

◆ SceneObjectManager

friend class SceneObjectManager
friend

◆ SceneSelectionManager

friend class SceneSelectionManager
friend

Member Data Documentation

◆ execute_mutex

std::mutex execute_mutex

Any changes to the scene have to be synchronized.

It is not allowed to change scenegraph while rendering


The documentation for this class was generated from the following files: