Scene Class Reference

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

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

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

Friends

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

Detailed Description

Definition at line 60 of file Scene.h.

Constructor & Destructor Documentation

◆ ~Scene()

~Scene ( )

Definition at line 195 of file Scene.cpp.

Member Function Documentation

◆ create()

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

Creates a new instance of the Scene.

Definition at line 35 of file Scene.cpp.

+ Here is the caller graph for this function:

◆ enterEditorMode()

void enterEditorMode ( )

Switch to EditorMode.

Definition at line 253 of file Scene.cpp.

◆ enterViewerMode()

void enterViewerMode ( )

Switch back to ViewerMode.

Definition at line 266 of file Scene.cpp.

◆ getController()

controller::ControllerWeakPtr getController ( )

Returns the Controller for this scene.

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

Definition at line 247 of file Scene.cpp.

+ Here is the caller graph for this function:

◆ getGroupManager()

scene3D::SceneGroupManagerPtr getGroupManager ( )

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

See also
scene3D::SceneGroupManager
Returns
SceneGroupManager The SceneGroupManager

Definition at line 223 of file Scene.cpp.

◆ getManipulatorManager()

scene3D::SceneManipulatorManagerPtr getManipulatorManager ( )

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

See also
scene3D::SceneManipulationManager
Returns
SceneManipulatorManager The SceneManipulationManager

Definition at line 235 of file Scene.cpp.

+ Here is the caller graph for this function:

◆ getObjectManager()

scene3D::SceneObjectManagerPtr getObjectManager ( )

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

See also
scene3D::SceneObjectManager
Returns
SceneObjectManager The current SceneObjectManager

Definition at line 217 of file Scene.cpp.

◆ getPreviewGenerator()

scene3D::PreviewGeneratorPtr getPreviewGenerator ( )

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

See also
scene3D::PreviewGenerator
Returns
PreviewGenerator The PreviewGenerator

Definition at line 241 of file Scene.cpp.

◆ getSelectionManager()

scene3D::SceneSelectionManagerPtr getSelectionManager ( )

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

See also
scene3D::SceneSelectionManager
Returns
SceneSelectionManager The SceneSelectionManager

Definition at line 229 of file Scene.cpp.

◆ makeCameraViewAll()

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

Make camera view all.

Makes sure grid floor is not taken into account.

Definition at line 201 of file Scene.cpp.

◆ 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.

Definition at line 207 of file Scene.cpp.

Friends And Related Function Documentation

◆ gui::MinimapWidget

friend class gui::MinimapWidget
friend

Definition at line 71 of file Scene.h.

◆ gui::ScenegraphWidget

friend class gui::ScenegraphWidget
friend

Definition at line 69 of file Scene.h.

◆ SceneManipulatorManager

friend class SceneManipulatorManager
friend

Definition at line 67 of file Scene.h.

◆ SceneObjectManager

friend class SceneObjectManager
friend

Definition at line 63 of file Scene.h.

◆ SceneSelectionManager

friend class SceneSelectionManager
friend

Definition at line 65 of file Scene.h.

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

Definition at line 155 of file Scene.h.


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