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 37 of file SceneSelectionManager.h.

Constructor & Destructor Documentation

◆ SceneSelectionManager()

Constructor Creates an Instance of the Class.

Parameters
sceneExisting Scene

Definition at line 124 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 214 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 174 of file SceneSelectionManager.cpp.

◆ deselectAll()

void deselectAll ( )

Deselects all SceneObjects.

Definition at line 243 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 59 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 131 of file SceneSelectionManager.cpp.

◆ getCreateOperations()

bool getCreateOperations ( )

Definition at line 276 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 155 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 88 of file SceneSelectionManager.cpp.

+ 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 222 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 194 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 30 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 271 of file SceneSelectionManager.cpp.

Friends And Related Function Documentation

◆ Scene

friend class Scene
friend

Definition at line 40 of file SceneSelectionManager.h.


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