VTK  9.1.0
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-------------------------------------------------------------------------*/
41#ifndef vtkDistanceToCamera_h
42#define vtkDistanceToCamera_h
43
45#include "vtkRenderingCoreModule.h" // For export macro
46
47class vtkRenderer;
48
49class VTKRENDERINGCORE_EXPORT vtkDistanceToCamera : public vtkPointSetAlgorithm
50{
51public:
54 void PrintSelf(ostream& os, vtkIndent indent) override;
55
57
61 vtkGetObjectMacro(Renderer, vtkRenderer);
63
65
69 vtkSetMacro(ScreenSize, double);
70 vtkGetMacro(ScreenSize, double);
72
74
77 vtkSetMacro(Scaling, bool);
78 vtkGetMacro(Scaling, bool);
79 vtkBooleanMacro(Scaling, bool);
81
83
87 vtkSetStringMacro(DistanceArrayName);
88 vtkGetStringMacro(DistanceArrayName);
90
95
96protected:
99
101
105 int LastRendererSize[2];
106 double LastCameraPosition[3];
107 double LastCameraFocalPoint[3];
108 double LastCameraViewUp[3];
111
112private:
114 void operator=(const vtkDistanceToCamera&) = delete;
115};
116
117#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:43
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:73
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287