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 "vtkRenderingCoreModule.h" // For export macro
35 #include "vtkPolyDataAlgorithm.h"
36 
37 class vtkRenderer;
38 
40 {
41 public:
42  static vtkDistanceToCamera *New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
48  void SetRenderer(vtkRenderer* ren);
49  vtkGetObjectMacro(Renderer, vtkRenderer);
51 
53 
55  vtkSetMacro(ScreenSize, double);
56  vtkGetMacro(ScreenSize, double);
58 
60 
61  vtkSetMacro(Scaling, bool);
62  vtkGetMacro(Scaling, bool);
63  vtkBooleanMacro(Scaling, bool);
65 
67  virtual unsigned long GetMTime();
68 
69 protected:
72 
73  int RequestData(
77 
79  double ScreenSize;
80  bool Scaling;
81  int LastRendererSize[2];
82  double LastCameraPosition[3];
83  double LastCameraFocalPoint[3];
84  double LastCameraViewUp[3];
86 
87 private:
88  vtkDistanceToCamera(const vtkDistanceToCamera&); // Not implemented.
89  void operator=(const vtkDistanceToCamera&); // Not implemented.
90 };
91 
92 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
abstract specification for renderers
Definition: vtkRenderer.h:63
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGCORE_EXPORT
Store zero or more vtkInformation instances.
calculates distance from points to the camera.