VTK  9.2.6
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 -------------------------------------------------------------------------*/
54 #ifndef vtkDistanceToCamera_h
55 #define vtkDistanceToCamera_h
56 
57 #include "vtkPointSetAlgorithm.h"
58 #include "vtkRenderingCoreModule.h" // For export macro
59 
60 class vtkRenderer;
61 
62 class VTKRENDERINGCORE_EXPORT vtkDistanceToCamera : public vtkPointSetAlgorithm
63 {
64 public:
67  void PrintSelf(ostream& os, vtkIndent indent) override;
68 
70 
74  vtkGetObjectMacro(Renderer, vtkRenderer);
76 
78 
82  vtkSetMacro(ScreenSize, double);
83  vtkGetMacro(ScreenSize, double);
85 
87 
90  vtkSetMacro(Scaling, bool);
91  vtkGetMacro(Scaling, bool);
92  vtkBooleanMacro(Scaling, bool);
94 
96 
100  vtkSetStringMacro(DistanceArrayName);
101  vtkGetStringMacro(DistanceArrayName);
103 
107  vtkMTimeType GetMTime() override;
108 
109 protected:
112 
114 
116  double ScreenSize;
117  bool Scaling;
118  int LastRendererSize[2];
119  double LastCameraPosition[3];
120  double LastCameraFocalPoint[3];
121  double LastCameraViewUp[3];
124 
125 private:
126  vtkDistanceToCamera(const vtkDistanceToCamera&) = delete;
127  void operator=(const vtkDistanceToCamera&) = delete;
128 };
129 
130 #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:119
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:182
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287