VTK  9.3.0
vtkDistanceToCamera.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
19#ifndef vtkDistanceToCamera_h
20#define vtkDistanceToCamera_h
21
23#include "vtkRenderingCoreModule.h" // For export macro
24
25VTK_ABI_NAMESPACE_BEGIN
26class vtkRenderer;
27
28class VTKRENDERINGCORE_EXPORT vtkDistanceToCamera : public vtkPointSetAlgorithm
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
36
40 vtkGetObjectMacro(Renderer, vtkRenderer);
42
44
48 vtkSetMacro(ScreenSize, double);
49 vtkGetMacro(ScreenSize, double);
51
53
56 vtkSetMacro(Scaling, bool);
57 vtkGetMacro(Scaling, bool);
58 vtkBooleanMacro(Scaling, bool);
60
62
66 vtkSetStringMacro(DistanceArrayName);
67 vtkGetStringMacro(DistanceArrayName);
69
74
75protected:
78
80
82 double ScreenSize;
83 bool Scaling;
84 int LastRendererSize[2];
85 double LastCameraPosition[3];
86 double LastCameraFocalPoint[3];
87 double LastCameraViewUp[3];
90
91private:
93 void operator=(const vtkDistanceToCamera&) = delete;
94};
95
96VTK_ABI_NAMESPACE_END
97#endif
calculates distance from points to the camera.
static vtkDistanceToCamera * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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:29
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:59
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270