VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Widgets
vtkImageActorPointPlacer.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkImageActorPointPlacer.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
=========================================================================*/
28
#ifndef __vtkImageActorPointPlacer_h
29
#define __vtkImageActorPointPlacer_h
30
31
#include "
vtkPointPlacer.h
"
32
33
class
vtkBoundedPlanePointPlacer
;
34
class
vtkImageActor
;
35
class
vtkRenderer
;
36
37
class
VTK_WIDGETS_EXPORT
vtkImageActorPointPlacer
:
public
vtkPointPlacer
38
{
39
public
:
41
static
vtkImageActorPointPlacer
*
New
();
42
44
45
vtkTypeMacro(
vtkImageActorPointPlacer
,
vtkPointPlacer
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent);
48
50
56
int
ComputeWorldPosition
(
vtkRenderer
*ren,
57
double
displayPos[2],
58
double
worldPos[3],
59
double
worldOrient[9] );
61
63
65
int
ComputeWorldPosition
(
vtkRenderer
*ren,
66
double
displayPos[2],
67
double
refWorldPos[2],
68
double
worldPos[3],
69
double
worldOrient[9] );
71
75
int
ValidateWorldPosition
(
double
worldPos[3] );
76
78
80
int
ValidateWorldPosition
(
double
worldPos[3],
81
double
worldOrient[9]);
83
84
86
89
int
UpdateWorldPosition
(
vtkRenderer
*ren,
90
double
worldPos[3],
91
double
worldOrient[9]);
93
99
int
UpdateInternalState
();
100
102
106
void
SetImageActor(
vtkImageActor
* );
107
vtkGetObjectMacro( ImageActor,
vtkImageActor
);
109
111
116
vtkSetVector6Macro( Bounds,
double
);
117
vtkGetVector6Macro( Bounds,
double
);
119
122
virtual
void
SetWorldTolerance
(
double
s );
123
124
protected
:
125
vtkImageActorPointPlacer
();
126
~
vtkImageActorPointPlacer
();
127
128
129
// The reference image actor. Must be configured before this placer
130
// is used.
131
vtkImageActor
*
ImageActor
;
132
133
// The internal placer.
134
vtkBoundedPlanePointPlacer
*
Placer
;
135
136
// Used to keep track of whether the bounds of the
137
// input image have changed
138
double
SavedBounds[6];
139
140
// See the SetBounds method
141
double
Bounds[6];
142
143
private
:
144
vtkImageActorPointPlacer
(
const
vtkImageActorPointPlacer
&);
//Not implemented
145
void
operator=(
const
vtkImageActorPointPlacer
&);
//Not implemented
146
};
147
148
#endif
Generated on Wed Nov 21 2012 21:34:08 for VTK by
1.8.2