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

A SceneInteraction that adds a new scene item to an existing transform.

#include <Rendering/SceneInteraction/addsceneitem.h>

Inheritance diagram for AddSceneItem:
[legend]

Public Member Functions

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

◆ AddSceneItem()

AddSceneItem ( const QString &  parentIdPath,
const SceneItemType typeBeingAdded 
)
Parameters
parentIdPathThe parent operation this new scene item should be added under.
typeBeingAddedThe SceneItemType we want to add.

Member Function Documentation

◆ execute()

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

Implements SceneInteraction.

◆ isSame()

bool isSame ( const SceneInteraction otherInteraction) const
overridevirtual

Implements SceneInteraction.

◆ operator==()

bool operator== ( const AddSceneItem otherInteraction) const