VTK
9.0.1
Interaction
Widgets
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
26
class
vtkRenderer
;
27
28
class
VTKINTERACTIONWIDGETS_EXPORT
vtkFocalPlanePointPlacer
:
public
vtkPointPlacer
29
{
30
public
:
34
static
vtkFocalPlanePointPlacer
*
New
();
35
37
40
vtkTypeMacro(
vtkFocalPlanePointPlacer
,
vtkPointPlacer
);
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.
52
int
ComputeWorldPosition
(
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
96
protected
:
97
vtkFocalPlanePointPlacer
();
98
~
vtkFocalPlanePointPlacer
()
override
;
99
100
void
GetCurrentOrientation(
double
worldOrient[9]);
101
102
double
PointBounds[6];
103
double
Offset
;
104
105
private
:
106
vtkFocalPlanePointPlacer
(
const
vtkFocalPlanePointPlacer
&) =
delete
;
107
void
operator=(
const
vtkFocalPlanePointPlacer
&) =
delete
;
108
};
109
110
#endif
vtkFocalPlanePointPlacer
Definition:
vtkFocalPlanePointPlacer.h:28
vtkPointPlacer
Abstract interface to translate 2D display positions to world coordinates.
Definition:
vtkPointPlacer.h:49
vtkFocalPlanePointPlacer::Offset
double Offset
Definition:
vtkFocalPlanePointPlacer.h:103
vtkPointPlacer::New
static vtkPointPlacer * New()
Instantiate this class.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkRenderer
abstract specification for renderers
Definition:
vtkRenderer.h:67
vtkPointPlacer::ComputeWorldPosition
virtual int ComputeWorldPosition(vtkRenderer *ren, double displayPos[2], double worldPos[3], double worldOrient[9])
Given a renderer and a display position in pixel coordinates, compute the world position and orientat...
vtkPointPlacer.h
vtkPointPlacer::ValidateWorldPosition
virtual int ValidateWorldPosition(double worldPos[3])
Given a world position check the validity of this position according to the constraints of the placer...
vtkPointPlacer::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Generated on Thu Jun 25 2020 08:30:48 for VTK by
1.8.17