SceneSelectionManager Class Reference

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

Public Member Functions

void addToSelection (scene3D::SceneGroupPtr group)
 Adds a SceneGroup to the Selection. More...
 
void addToSelection (scene3D::SceneObjectPtr object)
 Adds a SceneObject to the Selection. More...
 
void deselectAll ()
 Deselects all SceneObjects. More...
 
std::vector< scene3D::SceneObjectPtrgetAllSelected ()
 Returns all selected SceneObjects. More...
 
bool getCreateOperations ()
 
bool isSelected (scene3D::SceneObjectPtr object)
 Determines whether a SceneObject is selected. More...
 
void removeFromSelection (scene3D::SceneGroupPtr group)
 Removes a SceneGroup from the Selection. More...
 
void removeFromSelection (scene3D::SceneObjectPtr object)
 Removes a SceneObject from the Selection. More...
 
 SceneSelectionManager (ScenePtr scene)
 Constructor Creates an Instance of the Class. More...
 
void setCreateOperations (bool enable)
 

Static Public Member Functions

static void deselectionCallback (void *userData, SoPath *selectionPath)
 Executes all commands when an Item is deselected and the Callback is voked. More...
 
static SoPath * pickFilterCB (void *userData, const SoPickedPoint *pick)
 Adjusts a path so that it always show to a valid Object. More...
 
static void selectionCallback (void *userData, SoPath *selectionPath)
 Executes all commands when an Item is selected and the Callback is voked. More...
 

Friends

class Scene
 

Detailed Description

Definition at line 36 of file SceneSelectionManager.h.

Constructor & Destructor Documentation

◆ SceneSelectionManager()

Constructor Creates an Instance of the Class.

Parameters
sceneExisting Scene

Definition at line 133 of file SceneSelectionManager.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ addToSelection() [1/2]

void addToSelection ( scene3D::SceneGroupPtr  group)

Adds a SceneGroup to the Selection.

Parameters
groupSceneGroup to be added

Definition at line 228 of file SceneSelectionManager.cpp.

◆ addToSelection() [2/2]

void addToSelection ( scene3D::SceneObjectPtr  object)

Adds a SceneObject to the Selection.

Parameters
objectSceneObject to be added

Definition at line 186 of file SceneSelectionManager.cpp.

◆ deselectAll()

void deselectAll ( )

Deselects all SceneObjects.

Definition at line 261 of file SceneSelectionManager.cpp.

◆ deselectionCallback()

void deselectionCallback ( void *  userData,
SoPath *  selectionPath 
)
static

Executes all commands when an Item is deselected and the Callback is voked.

Parameters
userDataUserData
selectionPathPath of deselected Object

Definition at line 64 of file SceneSelectionManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAllSelected()

std::vector< scene3D::SceneObjectPtr > getAllSelected ( )

Returns all selected SceneObjects.

Returns
vector<scene3D::SceneObjectPtr > Vector of all selected SceneObjects

Definition at line 141 of file SceneSelectionManager.cpp.

◆ getCreateOperations()

bool getCreateOperations ( )

Definition at line 297 of file SceneSelectionManager.cpp.

◆ isSelected()

bool isSelected ( scene3D::SceneObjectPtr  object)

Determines whether a SceneObject is selected.

Parameters
objectSceneObject to check
Returns
bool SceneObject is selected?

Definition at line 166 of file SceneSelectionManager.cpp.

◆ pickFilterCB()

SoPath * pickFilterCB ( void *  userData,
const SoPickedPoint *  pick 
)
static

Adjusts a path so that it always show to a valid Object.

Parameters
userDataUserData
pickThe Point picked in the Scene
Returns
SoPath New adjusted Path

Definition at line 97 of file SceneSelectionManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeFromSelection() [1/2]

void removeFromSelection ( scene3D::SceneGroupPtr  group)

Removes a SceneGroup from the Selection.

Parameters
groupSceneGroup to be removed

Definition at line 237 of file SceneSelectionManager.cpp.

◆ removeFromSelection() [2/2]

void removeFromSelection ( scene3D::SceneObjectPtr  object)

Removes a SceneObject from the Selection.

Parameters
objectSceneObject to be removed

Definition at line 207 of file SceneSelectionManager.cpp.

◆ selectionCallback()

void selectionCallback ( void *  userData,
SoPath *  selectionPath 
)
static

Executes all commands when an Item is selected and the Callback is voked.

Parameters
userDataUserData
selectionPathPath of selected Object

Definition at line 32 of file SceneSelectionManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCreateOperations()

void setCreateOperations ( bool  enable)

Definition at line 291 of file SceneSelectionManager.cpp.

Friends And Related Function Documentation

◆ Scene

friend class Scene
friend

Definition at line 39 of file SceneSelectionManager.h.


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