ufe 5.5
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
batchCompositeCommand.h
Go to the documentation of this file.
1#line 1 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.11-windows/ufe/include/batchCompositeCommand.h"
2#ifndef _ufeBatchCompositeCommand
3#define _ufeBatchCompositeCommand
4// ===========================================================================
5// Copyright 2023 Autodesk, Inc. All rights reserved.
6//
7// Use of this software is subject to the terms of the Autodesk license
8// agreement provided at the time of installation or download, or which
9// otherwise accompanies this software in either electronic or hard copy form.
10// ===========================================================================
11
12#include "undoableCommand.h"
13
14#include "codeWrapper.h"
15#include "selection.h"
16
17#include <string>
18
20
21class Selection;
22
73{
74public:
78 static std::shared_ptr<BatchCompositeCommand> create(
79 const Selection& selection,
80 const std::string& operationName);
81
84
89 const Selection& selection,
90 const std::string& operationName);
91
94 return fWrappers;
95 }
96
98 static const std::string execSubOp;
99 static const std::string undoSubOp;
100 static const std::string redoSubOp;
101
103 void execute() override;
104
106 void undo() override;
107
109 void redo() override;
110
111private:
113};
114
115}
116
117#endif /* _ufeBatchCompositeCommand */
Composite command affecting a batch (selection) of items. For each item run-time, allow the run-time ...
void undo() override
Wraps undoing of sub-command with the command wrappers.
void execute() override
Wraps execution of sub-command with the command wrappers.
BatchCompositeCommand(const BatchCompositeCommand &)=delete
void redo() override
Wraps redoing of sub-command with the command wrappers.
static const std::string redoSubOp
static const std::string undoSubOp
const BatchCompositeCommand & operator=(const BatchCompositeCommand &)=delete
BatchCompositeCommand(const Selection &selection, const std::string &operationName)
Constructor.
static const std::string execSubOp
The sub-operations for the code wrappers associated with the execute, undo and redo.
const CodeWrapperContainer & codeWrappers() const
Retrieves the container of code-wrappers, one per run-time found in the selection.
static std::shared_ptr< BatchCompositeCommand > create(const Selection &selection, const std::string &operationName)
Creates a BatchCompositeCommand.
A container of multiple CodeWrapper, one per UFE run-time that is involved in an operation.
Definition: codeWrapper.h:48
Composite undoable command.
Selection list for objects in the scene.
Definition: selection.h:28
std::string string(const Path &path)
#define UFE_NS_DEF
Definition: ufe.h:35
#define UFE_SDK_DECL
Definition: ufeExport.h:36