VTK  9.1.0
vtkFocalPlanePointPlacer.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkFocalPlanePointPlacer.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// .SECTION Description
16//
17//
18// .SECTION See Also
19
20#ifndef vtkFocalPlanePointPlacer_h
21#define vtkFocalPlanePointPlacer_h
22
23#include "vtkInteractionWidgetsModule.h" // For export macro
24#include "vtkPointPlacer.h"
25
26class vtkRenderer;
27
28class VTKINTERACTIONWIDGETS_EXPORT vtkFocalPlanePointPlacer : public vtkPointPlacer
29{
30public:
35
37
41 void PrintSelf(ostream& os, vtkIndent indent) override;
43
44 // Description:
45 // Given a renderer and a display position, compute
46 // the world position and orientation. The orientation
47 // computed by the placer will always line up with the
48 // standard coordinate axes. The world position will be
49 // computed by projecting the display position onto the
50 // focal plane. This method is typically used to place a
51 // point for the first time.
53 vtkRenderer* ren, double displayPos[2], double worldPos[3], double worldOrient[9]) override;
54
65 int ComputeWorldPosition(vtkRenderer* ren, double displayPos[2], double refWorldPos[3],
66 double worldPos[3], double worldOrient[9]) override;
67
69
73 int ValidateWorldPosition(double worldPos[3]) override;
74 int ValidateWorldPosition(double worldPos[3], double worldOrient[9]) override;
76
78
83 vtkSetMacro(Offset, double);
84 vtkGetMacro(Offset, double);
86
88
92 vtkSetVector6Macro(PointBounds, double);
93 vtkGetVector6Macro(PointBounds, double);
95
96protected:
99
100 void GetCurrentOrientation(double worldOrient[9]);
101
102 double PointBounds[6];
103 double Offset;
104
105private:
107 void operator=(const vtkFocalPlanePointPlacer&) = delete;
108};
109
110#endif
int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double worldPos[3], double worldOrient[9]) override
Given a renderer and a display position in pixel coordinates, compute the world position and orientat...
int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double refWorldPos[3], double worldPos[3], double worldOrient[9]) override
Given a renderer, a display position, and a reference world position, compute a new world position.
~vtkFocalPlanePointPlacer() override
void GetCurrentOrientation(double worldOrient[9])
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
int ValidateWorldPosition(double worldPos[3], double worldOrient[9]) override
Validate a world position.
int ValidateWorldPosition(double worldPos[3]) override
Validate a world position.
static vtkFocalPlanePointPlacer * New()
Instantiate this class.
a simple class to control print indentation
Definition: vtkIndent.h:113
Abstract interface to translate 2D display positions to world coordinates.
abstract specification for renderers
Definition: vtkRenderer.h:182