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

A SceneInteraction the lets an operation update itself when it's label changes.

#include <Rendering/SceneInteraction/sceneitemlabelchanged.h>

Inheritance diagram for SceneItemLabelChanged:
[legend]

Public Member Functions

 SceneItemLabelChanged (const QString &idPath, const SceneItemType &type)
 
void execute (DataExecution::Workspace &rootWorkspace, SceneInteractionWidget &widget) override
 
bool isSame (const SceneInteraction &otherInteraction) const override
 
bool operator== (const SceneItemLabelChanged &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
 

Constructor & Destructor Documentation

◆ SceneItemLabelChanged()

SceneItemLabelChanged ( const QString &  idPath,
const SceneItemType type 
)
Parameters
idPathThe workspace id path of the operation we want to update.
typeThe SceneItemType we want to update.

Member Function Documentation

◆ execute()

void execute ( DataExecution::Workspace rootWorkspace,
SceneInteractionWidget widget 
)
overridevirtual
Parameters
rootWorkspaceThe root of the workspace hierarchy.
widgetThe scene interaction which this label change event originated from.

Implements SceneInteraction.

◆ isSame()

bool isSame ( const SceneInteraction otherInteraction) const
overridevirtual

Implements SceneInteraction.

◆ operator==()

bool operator== ( const SceneItemLabelChanged otherInteraction) const