ufe 7.0
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 "D:/Jenkins/workspace/EMS/ECG/ufe/full/ufe-full-python3.13-windows/ufe/include/batchCompositeCommand.h"
2#ifndef UFE_BATCHCOMPOSITECOMMAND_H
3#define UFE_BATCHCOMPOSITECOMMAND_H
4
5// ===========================================================================
6// Copyright 2025 Autodesk, Inc. All rights reserved.
7//
8// The use of this software is subject to the Autodesk Terms of Use or other
9// license agreement provided at the time of installation or download, or
10// which otherwise accompanies this software.
11// ===========================================================================
12
13#include "undoableCommand.h"
14
15#include "codeWrapper.h"
16#include "selection.h"
17
18#include <string>
19
21
22class Selection;
23
74{
75public:
79 static std::shared_ptr<BatchCompositeCommand> create(
80 const Selection& selection,
81 const std::string& operationName);
82
85
90 const Selection& selection,
91 const std::string& operationName);
92
95 return fWrappers;
96 }
97
99 static const std::string execSubOp;
100 static const std::string undoSubOp;
101 static const std::string redoSubOp;
102
104 void execute() override;
105
107 void undo() override;
108
110 void redo() override;
111
112private:
114};
115
116}
117
118#endif /* UFE_BATCHCOMPOSITECOMMAND_H */
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:49
Composite undoable command.
Selection list for objects in the scene.
Definition: selection.h:29
std::string string(const Path &path)
#define UFE_NS_DEF
Definition: ufe.h:36
#define UFE_SDK_DECL
Definition: ufeExport.h:35