Workspace 6.21.5
Public Member Functions | List of all members
RemoveSceneItem Class Reference

A SceneInteraction that removes a scene item from the scene. More...

#include <Rendering/SceneInteraction/removesceneitem.h>

Inheritance diagram for RemoveSceneItem:
[legend]

Public Member Functions

 RemoveSceneItem (const QString &idPath, const SceneItemType &type, const SceneInteractionWidgetItem &treeItem)
 
void execute (DataExecution::Workspace &rootWorkspace, SceneInteractionWidget &widget) override
 
bool isSame (const SceneInteraction &otherInteraction) const override
 
bool operator== (const RemoveSceneItem &otherInteraction) const
 
- Public Member Functions inherited from SceneInteraction
virtual ~SceneInteraction ()=default
 
virtual void execute (DataExecution::Workspace &rootWorkspace, SceneInteractionWidget &widget)=0
 Performs the changes to the workspace hierarchy associated with the interaction.
 
virtual bool isSame (const SceneInteraction &otherInteraction) const =0
 
bool operator== (const SceneInteraction &otherInteraction) const
 

Detailed Description

Note
This removes the item from the scene by removing the connection to the scene but it does not delete any of the operations.

Constructor & Destructor Documentation

◆ RemoveSceneItem()

RemoveSceneItem ( const QString &  idPath,
const SceneItemType type,
const SceneInteractionWidgetItem treeItem 
)
Parameters
idPathThe workspace id path of the operation we want to remove.
typeThe type of scene item to remove.
treeItemThe scene item widget to remove.

Member Function Documentation

◆ execute()

void execute ( DataExecution::Workspace rootWorkspace,
SceneInteractionWidget widget 
)
overridevirtual
Parameters
rootWorkspaceThe root of the workspace hierarchy.
widgetThe widget to which this scene item will be attached.

Implements SceneInteraction.

◆ isSame()

bool isSame ( const SceneInteraction otherInteraction) const
overridevirtual

Implements SceneInteraction.

◆ operator==()

bool operator== ( const RemoveSceneItem otherInteraction) const