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

# Rendering/vtkInteractorStyleTerrain.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkInteractorStyleTerrain.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00069 #ifndef __vtkInteractorStyleTerrain_h
    00070 #define __vtkInteractorStyleTerrain_h
    00071
    00072 #include "vtkInteractorStyle.h"
    00073
    00074 class vtkPolyDataMapper;
    00075 class vtkSphereSource;
    00076 class vtkExtractEdges;
    00077
    00078 class VTK_RENDERING_EXPORT vtkInteractorStyleTerrain : public vtkInteractorStyle
    00079 {
    00080 public:
    00082   static vtkInteractorStyleTerrain *New();
    00083
    00084   vtkTypeRevisionMacro(vtkInteractorStyleTerrain,vtkInteractorStyle);
    00085   void PrintSelf(ostream& os, vtkIndent indent);
    00086
    00088
    00090   virtual void OnMouseMove();
    00091   virtual void OnLeftButtonDown();
    00092   virtual void OnLeftButtonUp();
    00093   virtual void OnMiddleButtonDown();
    00094   virtual void OnMiddleButtonUp();
    00095   virtual void OnRightButtonDown();
    00096   virtual void OnRightButtonUp();
    00098
    00100   virtual void OnChar();
    00101
    00102   // These methods for the different interactions in different modes
    00103   // are overridden in subclasses to perform the correct motion.
    00104   virtual void Rotate();
    00105   virtual void Pan();
    00106   virtual void Dolly();
    00107
    00109
    00110   vtkSetMacro(LatLongLines,int);
    00111   vtkGetMacro(LatLongLines,int);
    00112   vtkBooleanMacro(LatLongLines,int);
    00114
    00115 protected:
    00116   vtkInteractorStyleTerrain();
    00117   ~vtkInteractorStyleTerrain();
    00118
    00119   // Internal helper attributes
    00120   int LatLongLines;
    00121
    00122   vtkSphereSource *LatLongSphere;
    00123   vtkPolyDataMapper *LatLongMapper;
    00124   vtkActor *LatLongActor;
    00125   vtkExtractEdges *LatLongExtractEdges;
    00126
    00127   void SelectRepresentation();
    00128   void CreateLatLong();
    00129
    00130   float MotionFactor;
    00131
    00132 private:
    00133   vtkInteractorStyleTerrain(const vtkInteractorStyleTerrain&);  // Not implemented.
    00134   void operator=(const vtkInteractorStyleTerrain&);  // Not implemented.
    00135
    00136 };
    00137
    00138 #endif
    00139