VTK: Rendering/Core/vtkDistanceToCamera.h Source File

| 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
28 #ifndef vtkDistanceToCamera_h
29 #define vtkDistanceToCamera_h
30
31 #include "vtkPointSetAlgorithm.h"
32 #include "vtkRenderingCoreModule.h" // For export macro
33
34 VTK_ABI_NAMESPACE_BEGIN
35 class vtkRenderer;
36
37 class VTKRENDERINGCORE_EXPORT vtkDistanceToCamera : public vtkPointSetAlgorithm
38 {
39 public:
40 static vtkDistanceToCamera* New();
41 vtkTypeMacro(vtkDistanceToCamera, vtkPointSetAlgorithm);
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
45
48 void SetRenderer(vtkRenderer* ren);
49 vtkGetObjectMacro(Renderer, vtkRenderer);
51
53
57 vtkSetMacro(ScreenSize, double);
58 vtkGetMacro(ScreenSize, double);
60
62
65 vtkSetMacro(Scaling, bool);
66 vtkGetMacro(Scaling, bool);
67 vtkBooleanMacro(Scaling, bool);
69
71
75 vtkSetStringMacro(DistanceArrayName);
76 vtkGetStringMacro(DistanceArrayName);
78
82 vtkMTimeType GetMTime() override;
83
84 protected:
85 vtkDistanceToCamera();
86 ~vtkDistanceToCamera() override;
87
88 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
89
90 vtkRenderer* Renderer;
91 double ScreenSize;
92 bool Scaling;
93 int LastRendererSize[2];
94 double LastCameraPosition[3];
95 double LastCameraFocalPoint[3];
96 double LastCameraViewUp[3];
97 double LastCameraParallelScale;
98 char* DistanceArrayName;
99
100 private:
101 vtkDistanceToCamera(const vtkDistanceToCamera&) = delete;
102 void operator=(const vtkDistanceToCamera&) = delete;
103 };
104
105 VTK_ABI_NAMESPACE_END
106 #endif
vtkDistanceToCamera
calculates distance from points to the camera.
Definition: vtkDistanceToCamera.h:38
vtkDistanceToCamera::ScreenSize
double ScreenSize
Definition: vtkDistanceToCamera.h:91
vtkDistanceToCamera::Renderer
vtkRenderer * Renderer
Definition: vtkDistanceToCamera.h:90
vtkDistanceToCamera::vtkDistanceToCamera
vtkDistanceToCamera()
vtkDistanceToCamera::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDistanceToCamera::DistanceArrayName
char * DistanceArrayName
Definition: vtkDistanceToCamera.h:98
vtkDistanceToCamera::LastCameraParallelScale
double LastCameraParallelScale
Definition: vtkDistanceToCamera.h:97
vtkDistanceToCamera::New
static vtkDistanceToCamera * New()
vtkDistanceToCamera::Scaling
bool Scaling
Definition: vtkDistanceToCamera.h:92
vtkDistanceToCamera::GetMTime
vtkMTimeType GetMTime() override
The modified time of this filter.
vtkDistanceToCamera::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkDistanceToCamera::SetRenderer
void SetRenderer(vtkRenderer *ren)
The renderer which will ultimately render these points.
vtkDistanceToCamera::~vtkDistanceToCamera
~vtkDistanceToCamera() override
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:33
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:71
vtkPointSetAlgorithm.h
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270