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
clipboardCommands.h
Go to the documentation of this file.
1#line 1 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.11-windows/ufe/include/clipboardCommands.h"
2#ifndef _clipboardCommands
3#define _clipboardCommands
4
5// ===========================================================================
6// Copyright 2024 Autodesk, Inc. All rights reserved.
7//
8// Use of this software is subject to the terms of the Autodesk license
9// agreement provided at the time of installation or download, or which
10// otherwise accompanies this software in either electronic or hard copy form.
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
55
57 virtual SceneItemList targetItems() const = 0;
58
60 virtual std::vector<PasteInfo> getPasteInfos() const = 0;
61};
62
63}
64
65#endif // _clipboardCommands
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.
~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:38
Abstract base class for undoable commands.
std::list< std::shared_ptr< SceneItem > > SceneItemList
Definition: sceneItemList.h:21
Struct that holds information about the paste command.
#define UFE_NS_DEF
Definition: ufe.h:35
Definition of macros for symbol visibility.
#define UFE_SDK_DECL
Definition: ufeExport.h:36