VTK
dox
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
(
vtkRenderer
*ren,
53
double
displayPos[2],
54
double
worldPos[3],
55
double
worldOrient[9] )
override
;
56
67
int
ComputeWorldPosition
(
vtkRenderer
*ren,
68
double
displayPos[2],
69
double
refWorldPos[3],
70
double
worldPos[3],
71
double
worldOrient[9] )
override
;
72
74
78
int
ValidateWorldPosition
(
double
worldPos[3] )
override
;
79
int
ValidateWorldPosition
(
double
worldPos[3],
80
double
worldOrient[9])
override
;
82
84
89
vtkSetMacro( Offset,
double
);
90
vtkGetMacro( Offset,
double
);
92
94
98
vtkSetVector6Macro( PointBounds,
double
);
99
vtkGetVector6Macro( PointBounds,
double
);
101
102
protected
:
103
vtkFocalPlanePointPlacer
();
104
~
vtkFocalPlanePointPlacer
()
override
;
105
106
void
GetCurrentOrientation(
double
worldOrient[9] );
107
108
double
PointBounds[6];
109
double
Offset
;
110
111
private
:
112
vtkFocalPlanePointPlacer
(
const
vtkFocalPlanePointPlacer
&) =
delete
;
113
void
operator=(
const
vtkFocalPlanePointPlacer
&) =
delete
;
114
};
115
116
#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:109
vtkPointPlacer::New
static vtkPointPlacer * New()
Instantiate this class.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkRenderer
abstract specification for renderers
Definition:
vtkRenderer.h:63
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 by
1.8.16