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
clipboardCommands.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/clipboardCommands.h"
2#ifndef UFE_CLIPBOARDCOMMANDS_H
3#define UFE_CLIPBOARDCOMMANDS_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 "common/ufeExport.h"
14
15#include "undoableCommand.h"
16#include "sceneItemList.h"
17
18#include <vector>
19
21
22class Path;
23
25
30{
31public:
32 typedef std::shared_ptr<PasteClipboardCommand> Ptr;
33
35 struct PasteInfo
36 {
38 std::vector<Path> successfulPastes;
39 std::vector<Path> failedPastes;
40 };
41
44
47
48 std::string commandString() const override { return "Paste"; }
49
57
59 virtual SceneItemList targetItems() const = 0;
60
62 virtual std::vector<PasteInfo> getPasteInfos() const = 0;
63};
64
65}
66
67#endif // UFE_CLIPBOARDCOMMANDS_H
Command that handles paste from clipboard.
PasteClipboardCommand(const PasteClipboardCommand &)=delete
PasteClipboardCommand & operator=(const PasteClipboardCommand &)=delete
PasteClipboardCommand()
Constructor.
virtual SceneItemList targetItems() const =0
Retrieve all the pasted items.
std::string commandString() const override
Get a user friendly string representation of the command.
~PasteClipboardCommand() override
Destructor.
std::shared_ptr< PasteClipboardCommand > Ptr
virtual std::vector< PasteInfo > getPasteInfos() const =0
Get the paste infos.
PasteClipboardCommand(PasteClipboardCommand &&)=delete
PasteClipboardCommand & operator=(PasteClipboardCommand &&)=delete
Identify an object or 3D path in the scene.
Definition: path.h:40
Abstract base class for undoable commands.
std::string string(const Path &path)
std::list< std::shared_ptr< SceneItem > > SceneItemList
Definition: sceneItemList.h:22
Struct that holds information about the paste command.
#define UFE_NS_DEF
Definition: ufe.h:36
Definition of macros for symbol visibility.
#define UFE_SDK_DECL
Definition: ufeExport.h:35