Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Servers/ServerManager/vtkPickLineWidget.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkPickLineWidget.h,v $
00005 
00006   Copyright (c) Kitware, Inc.
00007   All rights reserved.
00008   See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00025 #ifndef __vtkPickLineWidget_h
00026 #define __vtkPickLineWidget_h
00027 
00028 #include "vtkLineWidget.h"
00029 
00030 
00031 class vtkSMRenderModuleProxy;
00032 
00033 
00034 class VTK_EXPORT vtkPickLineWidget : public vtkLineWidget
00035 {
00036 public:
00037   static vtkPickLineWidget* New();
00038   vtkTypeRevisionMacro(vtkPickLineWidget, vtkLineWidget);
00039 
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041     
00043 
00044   void SetRenderModuleProxy(vtkSMRenderModuleProxy* rm){ this->RenderModuleProxy = rm; }
00045   vtkGetObjectMacro(RenderModuleProxy, vtkSMRenderModuleProxy);
00047 
00049   virtual void SetEnabled(int);
00050 
00051 protected:
00052   vtkPickLineWidget();
00053   ~vtkPickLineWidget();
00054 
00055   // For picking.  Use a proxy in the future.
00056   vtkSMRenderModuleProxy* RenderModuleProxy;
00057 
00058   virtual void OnChar();
00059 
00060   // Handles the events
00061   static void ProcessEvents(vtkObject* object, 
00062                             unsigned long event,
00063                             void* clientdata, 
00064                             void* calldata);
00065 
00066   // For toggling the pick between the two end points.
00067   int LastPicked;
00068 
00069 private:
00070   vtkPickLineWidget(const vtkPickLineWidget&); // Not implemented
00071   void operator=(const vtkPickLineWidget&); // Not implemented
00072 
00073   int LastY;
00074 };
00075 
00076 #endif

Generated on Tue May 30 12:31:47 2006 for ParaView by doxygen 1.3.5