00001 /*========================================================================= 00002 00003 Program: ParaView 00004 Module: $RCSfile: vtkPVCameraControl.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 =========================================================================*/ 00022 #ifndef __vtkPVCameraControl_h 00023 #define __vtkPVCameraControl_h 00024 00025 #include "vtkPVTracedWidget.h" 00026 00027 class vtkKWEntry; 00028 class vtkKWLabel; 00029 class vtkKWPushButton; 00030 class vtkPVInteractorStyleCenterOfRotation; 00031 class vtkPVRenderView; 00032 00033 class VTK_EXPORT vtkPVCameraControl : public vtkPVTracedWidget 00034 { 00035 public: 00036 static vtkPVCameraControl* New(); 00037 vtkTypeRevisionMacro(vtkPVCameraControl, vtkPVTracedWidget); 00038 void PrintSelf(ostream &os, vtkIndent indent); 00039 00042 void SetInteractorStyle(vtkPVInteractorStyleCenterOfRotation *style); 00043 00045 void SetRenderView(vtkPVRenderView *view); 00046 00048 void Create(vtkKWApplication *app); 00049 00051 00052 void ElevationButtonCallback(); 00053 void AzimuthButtonCallback(); 00054 void RollButtonCallback(); 00056 00058 00059 void Elevation(double angle); 00060 void Azimuth(double angle); 00061 void Roll(double angle); 00063 00064 protected: 00065 vtkPVCameraControl(); 00066 ~vtkPVCameraControl(); 00067 00068 vtkPVInteractorStyleCenterOfRotation *InteractorStyle; 00069 vtkPVRenderView *RenderView; 00070 00071 vtkKWPushButton *ElevationButton; 00072 vtkKWEntry *ElevationEntry; 00073 vtkKWLabel *ElevationLabel; 00074 00075 vtkKWPushButton *AzimuthButton; 00076 vtkKWEntry *AzimuthEntry; 00077 vtkKWLabel *AzimuthLabel; 00078 00079 vtkKWPushButton *RollButton; 00080 vtkKWEntry *RollEntry; 00081 vtkKWLabel *RollLabel; 00082 00083 private: 00084 vtkPVCameraControl(const vtkPVCameraControl&); // Not implemented 00085 void operator=(const vtkPVCameraControl&); // Not implemented 00086 }; 00087 00088 #endif