vtkSMProxyClipboard.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
23 #ifndef vtkSMProxyClipboard_h
24 #define vtkSMProxyClipboard_h
25 
26 #include "vtkRemotingMiscModule.h" //needed for exports
27 #include "vtkSMObject.h"
28 #include "vtkSmartPointer.h" // for vtkSmartPointer.
29 
30 class vtkPVXMLElement;
31 class vtkSMProxy;
32 class vtkSMProxyClipboardInternals;
33 
35 {
36 public:
37  static vtkSMProxyClipboard* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
45  bool Copy(vtkSMProxy* source);
46 
52  bool CanPaste(vtkSMProxy* target);
53 
57  bool Paste(vtkSMProxy* target);
58 
62  void Clear() { this->Copy(nullptr); }
63 
64 protected:
66  ~vtkSMProxyClipboard() override;
67 
68 private:
70  void operator=(const vtkSMProxyClipboard&) = delete;
71 
72  vtkSMProxyClipboardInternals* Internals;
73 };
74 
75 #endif
void Clear()
Clears the clipboard.
superclass for most server manager classes
Definition: vtkSMObject.h:17
#define VTKREMOTINGMISC_EXPORT
static vtkSMObject * New()
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
helper class to help copy/paste properties on proxies.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
void PrintSelf(ostream &os, vtkIndent indent) override