VTK
vtkDistanceToCamera.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDistanceToCamera.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
31 #ifndef __vtkDistanceToCamera_h
32 #define __vtkDistanceToCamera_h
33 
34 #include "vtkPolyDataAlgorithm.h"
35 
36 class vtkRenderer;
37 
39 {
40 public:
41  static vtkDistanceToCamera *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
47  void SetRenderer(vtkRenderer* ren);
48  vtkGetObjectMacro(Renderer, vtkRenderer);
50 
52 
54  vtkSetMacro(ScreenSize, double);
55  vtkGetMacro(ScreenSize, double);
57 
59 
60  vtkSetMacro(Scaling, bool);
61  vtkGetMacro(Scaling, bool);
62  vtkBooleanMacro(Scaling, bool);
64 
66  virtual unsigned long GetMTime();
67 
68 protected:
71 
72  int RequestData(
76 
78  double ScreenSize;
79  bool Scaling;
80  int LastRendererSize[2];
81  double LastCameraPosition[3];
82  double LastCameraFocalPoint[3];
83  double LastCameraViewUp[3];
85 
86 private:
87  vtkDistanceToCamera(const vtkDistanceToCamera&); // Not implemented.
88  void operator=(const vtkDistanceToCamera&); // Not implemented.
89 };
90 
91 #endif