VTK
dox/Widgets/vtkCameraWidget.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkCameraWidget.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
00037 #ifndef __vtkCameraWidget_h
00038 #define __vtkCameraWidget_h
00039 
00040 #include "vtkBorderWidget.h"
00041 
00042 class vtkCameraRepresentation;
00043 
00044 
00045 class VTK_WIDGETS_EXPORT vtkCameraWidget : public vtkBorderWidget
00046 {
00047 public:
00049   static vtkCameraWidget *New();
00050 
00052 
00053   vtkTypeMacro(vtkCameraWidget,vtkBorderWidget);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00056 
00058 
00061   void SetRepresentation(vtkCameraRepresentation *r)
00062     {this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
00064   
00066   void CreateDefaultRepresentation();
00067 
00068 protected:
00069   vtkCameraWidget();
00070   ~vtkCameraWidget();
00071 
00075   virtual void SelectRegion(double eventPos[2]);
00076 
00077 private:
00078   vtkCameraWidget(const vtkCameraWidget&);  //Not implemented
00079   void operator=(const vtkCameraWidget&);  //Not implemented
00080 };
00081 
00082 #endif