ParaView
vtkSMProxyClipboard.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMProxyClipboard.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
35 #ifndef vtkSMProxyClipboard_h
36 #define vtkSMProxyClipboard_h
37 
38 #include "vtkPVServerManagerDefaultModule.h" //needed for exports
39 #include "vtkSMObject.h"
40 #include "vtkSmartPointer.h" // for vtkSmartPointer.
41 
42 class vtkPVXMLElement;
43 class vtkSMProxy;
44 class vtkSMProxyClipboardInternals;
45 
46 class VTKPVSERVERMANAGERDEFAULT_EXPORT vtkSMProxyClipboard : public vtkSMObject
47 {
48 public:
49  static vtkSMProxyClipboard* New();
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
57  bool Copy(vtkSMProxy* source);
58 
64  bool CanPaste(vtkSMProxy* target);
65 
69  bool Paste(vtkSMProxy* target);
70 
74  void Clear() { this->Copy(NULL); }
75 
76 protected:
79 
80  vtkSmartPointer<vtkPVXMLElement> CopiedState;
81 
82 private:
83  vtkSMProxyClipboard(const vtkSMProxyClipboard&) VTK_DELETE_FUNCTION;
84  void operator=(const vtkSMProxyClipboard&) VTK_DELETE_FUNCTION;
85 
86  vtkSMProxyClipboardInternals* Internals;
87 };
88 
89 #endif
void PrintSelf(ostream &os, vtkIndent indent)
void Clear()
Clears the clipboard.
superclass for most server manager classes
Definition: vtkSMObject.h:31
static vtkSMObject * New()
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
helper class to help copy/paste properties on proxies.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
vtkSmartPointer< vtkPVXMLElement > CopiedState