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-------------------------------------------------------------------------*/
44#ifndef vtkDistanceToCamera_h
45#define vtkDistanceToCamera_h
46
48#include "vtkRenderingCoreModule.h" // For export macro
49
50class vtkRenderer;
51
52class VTKRENDERINGCORE_EXPORT vtkDistanceToCamera : public vtkPointSetAlgorithm
53{
54public:
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
60
64 vtkGetObjectMacro(Renderer, vtkRenderer);
66
68
72 vtkSetMacro(ScreenSize, double);
73 vtkGetMacro(ScreenSize, double);
75
77
80 vtkSetMacro(Scaling, bool);
81 vtkGetMacro(Scaling, bool);
82 vtkBooleanMacro(Scaling, bool);
84
86
90 vtkSetStringMacro(DistanceArrayName);
91 vtkGetStringMacro(DistanceArrayName);
93
98
99protected:
102
104
108 int LastRendererSize[2];
109 double LastCameraPosition[3];
110 double LastCameraFocalPoint[3];
111 double LastCameraViewUp[3];
114
115private:
117 void operator=(const vtkDistanceToCamera&) = delete;
118};
119
120#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:49
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:82
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287