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 -------------------------------------------------------------------------*/
32 #ifndef vtkDistanceToCamera_h
33 #define vtkDistanceToCamera_h
34 
35 #include "vtkRenderingCoreModule.h" // For export macro
36 #include "vtkPolyDataAlgorithm.h"
37 
38 class vtkRenderer;
39 
40 class VTKRENDERINGCORE_EXPORT vtkDistanceToCamera : public vtkPolyDataAlgorithm
41 {
42 public:
43  static vtkDistanceToCamera *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
51  void SetRenderer(vtkRenderer* ren);
52  vtkGetObjectMacro(Renderer, vtkRenderer);
54 
56 
60  vtkSetMacro(ScreenSize, double);
61  vtkGetMacro(ScreenSize, double);
63 
65 
68  vtkSetMacro(Scaling, bool);
69  vtkGetMacro(Scaling, bool);
70  vtkBooleanMacro(Scaling, bool);
72 
76  virtual vtkMTimeType GetMTime();
77 
78 protected:
81 
82  int RequestData(
86 
88  double ScreenSize;
89  bool Scaling;
90  int LastRendererSize[2];
91  double LastCameraPosition[3];
92  double LastCameraFocalPoint[3];
93  double LastCameraViewUp[3];
95 
96 private:
97  vtkDistanceToCamera(const vtkDistanceToCamera&) VTK_DELETE_FUNCTION;
98  void operator=(const vtkDistanceToCamera&) VTK_DELETE_FUNCTION;
99 };
100 
101 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
abstract specification for renderers
Definition: vtkRenderer.h:63
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
calculates distance from points to the camera.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.