00001 /*========================================================================= 00002 00003 Module: vtkKWClipboardHelper.h,v 00004 00005 Copyright (c) Kitware, Inc. 00006 All rights reserved. 00007 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00008 00009 This software is distributed WITHOUT ANY WARRANTY; without even 00010 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00011 PURPOSE. See the above copyright notice for more information. 00012 00013 =========================================================================*/ 00022 #ifndef __vtkKWClipboardHelper_h 00023 #define __vtkKWClipboardHelper_h 00024 00025 #include "vtkObject.h" 00026 #include "vtkKWWidgets.h" // Needed for export symbols directives 00027 00028 class vtkImageData; 00029 00030 class KWWidgets_EXPORT vtkKWClipboardHelper : public vtkObject 00031 { 00032 // @cond section_public 00033 public: 00035 00036 static vtkKWClipboardHelper* New(); 00037 vtkTypeRevisionMacro(vtkKWClipboardHelper, vtkObject); 00038 void PrintSelf(ostream& os, vtkIndent indent); 00040 00043 int CopyTextToClipboard(const char* text); 00044 00045 // Copy a vtkImageData onto the system clipboard. The data 00046 // will be converted into a bitmap first. 00047 // Return 1 on success; 0 on failure. 00048 int CopyImageToClipboard(vtkImageData* imgdata); 00049 00050 // @endcond 00051 // @cond section_protected 00052 protected: 00053 vtkKWClipboardHelper(); 00054 ~vtkKWClipboardHelper(); 00055 00056 // @endcond 00057 // @cond section_private 00058 private: 00059 vtkKWClipboardHelper(const vtkKWClipboardHelper&); // Not implemented 00060 void operator=(const vtkKWClipboardHelper&); // Not implemented 00061 }; 00062 00063 #endif 00064 // @endcond
1.6.1