VTK  9.1.0
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 -------------------------------------------------------------------------*/
51 #ifndef vtkDistanceToCamera_h
52 #define vtkDistanceToCamera_h
53 
54 #include "vtkPointSetAlgorithm.h"
55 #include "vtkRenderingCoreModule.h" // For export macro
56 
57 class vtkRenderer;
58 
59 class VTKRENDERINGCORE_EXPORT vtkDistanceToCamera : public vtkPointSetAlgorithm
60 {
61 public:
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
67 
71  vtkGetObjectMacro(Renderer, vtkRenderer);
73 
75 
79  vtkSetMacro(ScreenSize, double);
80  vtkGetMacro(ScreenSize, double);
82 
84 
87  vtkSetMacro(Scaling, bool);
88  vtkGetMacro(Scaling, bool);
89  vtkBooleanMacro(Scaling, bool);
91 
93 
97  vtkSetStringMacro(DistanceArrayName);
98  vtkGetStringMacro(DistanceArrayName);
100 
104  vtkMTimeType GetMTime() override;
105 
106 protected:
109 
111 
113  double ScreenSize;
114  bool Scaling;
115  int LastRendererSize[2];
116  double LastCameraPosition[3];
117  double LastCameraFocalPoint[3];
118  double LastCameraViewUp[3];
121 
122 private:
123  vtkDistanceToCamera(const vtkDistanceToCamera&) = delete;
124  void operator=(const vtkDistanceToCamera&) = delete;
125 };
126 
127 #endif
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.
static vtkDistanceToCamera * New()
vtkMTimeType GetMTime() override
The modified time of this filter.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetRenderer(vtkRenderer *ren)
The renderer which will ultimately render these points.
~vtkDistanceToCamera() override
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
abstract specification for renderers
Definition: vtkRenderer.h:173
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287