VTK  9.3.20240422
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
38#ifndef vtkDistanceToCamera_h
39#define vtkDistanceToCamera_h
40
42#include "vtkRenderingCoreModule.h" // For export macro
43
44VTK_ABI_NAMESPACE_BEGIN
45class vtkRenderer;
46
47class VTKRENDERINGCORE_EXPORT vtkDistanceToCamera : public vtkPointSetAlgorithm
48{
49public:
52 void PrintSelf(ostream& os, vtkIndent indent) override;
53
55
59 vtkGetObjectMacro(Renderer, vtkRenderer);
61
63
67 vtkSetMacro(ScreenSize, double);
68 vtkGetMacro(ScreenSize, double);
70
72
75 vtkSetMacro(Scaling, bool);
76 vtkGetMacro(Scaling, bool);
77 vtkBooleanMacro(Scaling, bool);
79
81
85 vtkSetStringMacro(DistanceArrayName);
86 vtkGetStringMacro(DistanceArrayName);
88
93
94protected:
97
99
103 int LastRendererSize[2];
104 double LastCameraPosition[3];
105 double LastCameraFocalPoint[3];
106 double LastCameraViewUp[3];
109
110private:
112 void operator=(const vtkDistanceToCamera&) = delete;
113};
114
115VTK_ABI_NAMESPACE_END
116#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:108
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
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270