VTK  9.3.1
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 
22 #include "vtkPointSetAlgorithm.h"
23 #include "vtkRenderingCoreModule.h" // For export macro
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkRenderer;
27 
28 class VTKRENDERINGCORE_EXPORT vtkDistanceToCamera : public vtkPointSetAlgorithm
29 {
30 public:
31  static vtkDistanceToCamera* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
39  void SetRenderer(vtkRenderer* ren);
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 
73  vtkMTimeType GetMTime() override;
74 
75 protected:
77  ~vtkDistanceToCamera() override;
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 
91 private:
93  void operator=(const vtkDistanceToCamera&) = delete;
94 };
95 
96 VTK_ABI_NAMESPACE_END
97 #endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for renderers
Definition: vtkRenderer.h:61
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual vtkMTimeType GetMTime()
Return this object's modified time.
Superclass for algorithms that produce output of the same type as input.
static vtkPointSetAlgorithm * New()
Store zero or more vtkInformation instances.
calculates distance from points to the camera.