00001 //============================================================================= 00002 // This file is part of VTKEdge. See vtkedge.org for more information. 00003 // 00004 // Copyright (c) 2010 Kitware, Inc. 00005 // 00006 // VTKEdge may be used under the terms of the BSD License 00007 // Please see the file Copyright.txt in the root directory of 00008 // VTKEdge for further information. 00009 // 00010 // Alternatively, you may see: 00011 // 00012 // http://www.vtkedge.org/vtkedge/project/license.html 00013 // 00014 // 00015 // For custom extensions, consulting services, or training for 00016 // this or any other Kitware supported open source project, please 00017 // contact Kitware at sales@kitware.com. 00018 // 00019 // 00020 //============================================================================= 00026 #ifndef __vtkKWEPaintbrushSelectionRepresentation2D_h 00027 #define __vtkKWEPaintbrushSelectionRepresentation2D_h 00028 00029 #include "vtkKWEPaintbrushSelectionRepresentation.h" 00030 00031 class vtkImageActor; 00032 class vtkActor; 00033 class vtkPolyData; 00034 00035 class VTKEdge_WIDGETS_EXPORT vtkKWEPaintbrushSelectionRepresentation2D 00036 : public vtkKWEPaintbrushSelectionRepresentation 00037 { 00038 public: 00040 static vtkKWEPaintbrushSelectionRepresentation2D *New(); 00041 00043 00044 vtkTypeRevisionMacro(vtkKWEPaintbrushSelectionRepresentation2D, 00045 vtkKWEPaintbrushSelectionRepresentation); 00046 void PrintSelf(ostream& os, vtkIndent indent); 00048 00050 virtual void BuildRepresentation(); 00051 00053 virtual void SetImageActor( vtkImageActor * ); 00054 00055 // Descirption: 00056 // Deep copy.. synchronizes states etc.. 00057 virtual void DeepCopy(vtkWidgetRepresentation *r); 00058 00060 00061 virtual int RenderOverlay(vtkViewport *viewport); 00062 virtual int RenderOpaqueGeometry(vtkViewport *viewport); 00063 #if VTKEdge_VTK_VERSION_DATE > 20070305 00064 virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport); 00065 virtual int HasTranslucentPolygonalGeometry(); 00066 #else 00067 // Legacy method to support VTK source versions prior to 2007/03/05 00068 virtual int RenderTranslucentGeometry(vtkViewport *viewport); 00069 #endif 00070 00071 00074 virtual void GetActors(vtkPropCollection *); 00075 00076 protected: 00077 vtkKWEPaintbrushSelectionRepresentation2D(); 00078 ~vtkKWEPaintbrushSelectionRepresentation2D(); 00079 00080 vtkActor * DragActor; 00081 vtkPolyData * DragPolyData; 00082 00084 virtual int DragAndDropMerge(); 00085 00086 private: 00087 vtkKWEPaintbrushSelectionRepresentation2D(const vtkKWEPaintbrushSelectionRepresentation2D&); //Not implemented 00088 void operator=(const vtkKWEPaintbrushSelectionRepresentation2D&); //Not implemented 00089 }; 00090 00091 #endif 00092
1.7.1