debian/tmp/usr/include/KWWidgets/vtkKWClipboardHelper.h

Go to the documentation of this file.
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 =========================================================================*/
00014 // .NAME vtkKWClipboardHelper - A clipboard class
00015 // .SECTION Description
00016 // This class offers some convenient methods to copy text or vtkImageData onto
00017 // the system clipboard, so that they can be pasted into other applications.
00018 // The system clipboard will be cleared before the new contents are added to it.
00019 
00020 #ifndef __vtkKWClipboardHelper_h
00021 #define __vtkKWClipboardHelper_h
00022 
00023 #include "vtkObject.h"
00024 #include "vtkKWWidgets.h" // Needed for export symbols directives
00025 
00026 class vtkImageData;
00027 
00028 class KWWidgets_EXPORT vtkKWClipboardHelper : public vtkObject
00029 {
00030 public:
00031   // Description:
00032   // Standard New and type methods
00033   static vtkKWClipboardHelper* New();
00034   vtkTypeRevisionMacro(vtkKWClipboardHelper, vtkObject);
00035   void PrintSelf(ostream& os, vtkIndent indent);
00036 
00037   // Description:
00038   // Copy some texts onto the system clipboard.
00039   // Return 1 on success; 0 on failure.
00040   int CopyTextToClipboard(const char* text);
00041 
00042   // Copy a vtkImageData onto the system clipboard. The data
00043   // will be converted into a bitmap first.
00044   // Return 1 on success; 0 on failure.
00045   int CopyImageToClipboard(vtkImageData* imgdata);
00046 
00047 protected:
00048   vtkKWClipboardHelper();
00049   ~vtkKWClipboardHelper();
00050 
00051 private:
00052   vtkKWClipboardHelper(const vtkKWClipboardHelper&); // Not implemented
00053   void operator=(const vtkKWClipboardHelper&); // Not implemented
00054 };
00055 
00056 #endif

Generated by  doxygen 1.6.2