VTK
|
Display a 2d image. More...
#include <vtkImageViewer.h>
Public Types | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
char * | GetWindowName () |
virtual void | Render (void) |
void | SetupInteractor (vtkRenderWindowInteractor *) |
void | SetInput (vtkImageData *in) |
vtkImageData * | GetInput () |
virtual void | SetInputConnection (vtkAlgorithmOutput *input) |
int | GetWholeZMin () |
int | GetWholeZMax () |
int | GetZSlice () |
void | SetZSlice (int s) |
double | GetColorWindow () |
double | GetColorLevel () |
void | SetColorWindow (double s) |
void | SetColorLevel (double s) |
void | SetDisplayId (void *a) |
void | SetWindowId (void *a) |
void | SetParentId (void *a) |
int | GetGrayScaleHint () |
void | SetGrayScaleHint (int vtkNotUsed(a)) |
void | GrayScaleHintOn () |
void | GrayScaleHintOff () |
int * | GetPosition () |
void | SetPosition (int a, int b) |
virtual void | SetPosition (int a[2]) |
int * | GetSize () |
void | SetSize (int a, int b) |
virtual void | SetSize (int a[2]) |
virtual vtkRenderWindow * | GetRenderWindow () |
virtual vtkRenderer * | GetRenderer () |
virtual vtkImageMapper * | GetImageMapper () |
virtual vtkActor2D * | GetActor2D () |
void | SetOffScreenRendering (int) |
int | GetOffScreenRendering () |
void | OffScreenRenderingOn () |
void | OffScreenRenderingOff () |
![]() | |
virtual void | DebugOn () |
virtual void | DebugOff () |
unsigned char | GetDebug () |
void | SetDebug (unsigned char debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &os) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkImageViewer * | New () |
static int | IsTypeOf (const char *type) |
static vtkImageViewer * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObject *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkImageViewer () | |
~vtkImageViewer () | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &os) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
vtkRenderWindow * | RenderWindow |
vtkRenderer * | Renderer |
vtkImageMapper * | ImageMapper |
vtkActor2D * | Actor2D |
int | FirstRender |
vtkRenderWindowInteractor * | Interactor |
vtkInteractorStyleImage * | InteractorStyle |
![]() | |
unsigned char | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
int | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Display a 2d image.
vtkImageViewer is a convenience class for displaying a 2d image. It packages up the functionality found in vtkRenderWindow, vtkRenderer, vtkActor2D and vtkImageMapper into a single easy to use class. Behind the scenes these four classes are actually used to to provide the required functionality. vtkImageViewer is simply a wrapper around them.
Definition at line 44 of file vtkImageViewer.h.
typedef vtkObject vtkImageViewer::Superclass |
Definition at line 49 of file vtkImageViewer.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented from vtkObject.
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
|
static |
|
virtual |
|
inline |
Get name of rendering window
Definition at line 53 of file vtkImageViewer.h.
|
virtual |
Render the resulting image.
|
inline |
Set/Get the input to the viewer.
Definition at line 60 of file vtkImageViewer.h.
|
inline |
Set/Get the input to the viewer.
Definition at line 61 of file vtkImageViewer.h.
|
inlinevirtual |
Set/Get the input to the viewer.
Definition at line 62 of file vtkImageViewer.h.
|
inline |
What is the possible Min/ Max z slices available.
Definition at line 68 of file vtkImageViewer.h.
|
inline |
What is the possible Min/ Max z slices available.
Definition at line 69 of file vtkImageViewer.h.
|
inline |
Set/Get the current Z Slice to display
Definition at line 74 of file vtkImageViewer.h.
|
inline |
Set/Get the current Z Slice to display
Definition at line 75 of file vtkImageViewer.h.
|
inline |
Sets window/level for mapping pixels to colors.
Definition at line 80 of file vtkImageViewer.h.
|
inline |
Sets window/level for mapping pixels to colors.
Definition at line 81 of file vtkImageViewer.h.
|
inline |
Sets window/level for mapping pixels to colors.
Definition at line 82 of file vtkImageViewer.h.
|
inline |
Sets window/level for mapping pixels to colors.
Definition at line 83 of file vtkImageViewer.h.
|
inline |
These are here for using a tk window.
Definition at line 88 of file vtkImageViewer.h.
|
inline |
These are here for using a tk window.
Definition at line 89 of file vtkImageViewer.h.
|
inline |
These are here for using a tk window.
Definition at line 90 of file vtkImageViewer.h.
int vtkImageViewer::GetGrayScaleHint | ( | ) |
By default this is a color viewer. GrayScaleHintOn will improve the appearance of gray scale images on some systems.
void vtkImageViewer::SetGrayScaleHint | ( | int | vtkNotUseda) |
By default this is a color viewer. GrayScaleHintOn will improve the appearance of gray scale images on some systems.
void vtkImageViewer::GrayScaleHintOn | ( | ) |
By default this is a color viewer. GrayScaleHintOn will improve the appearance of gray scale images on some systems.
void vtkImageViewer::GrayScaleHintOff | ( | ) |
By default this is a color viewer. GrayScaleHintOn will improve the appearance of gray scale images on some systems.
|
inline |
Set/Get the position in screen coordinates of the rendering window.
Definition at line 104 of file vtkImageViewer.h.
|
inline |
Set/Get the position in screen coordinates of the rendering window.
Definition at line 105 of file vtkImageViewer.h.
|
virtual |
Set/Get the position in screen coordinates of the rendering window.
|
inline |
Set/Get the size of the window in screen coordinates in pixels.
Definition at line 111 of file vtkImageViewer.h.
|
inline |
Set/Get the size of the window in screen coordinates in pixels.
Definition at line 112 of file vtkImageViewer.h.
|
virtual |
Set/Get the size of the window in screen coordinates in pixels.
|
virtual |
Get the internal objects
|
virtual |
Get the internal objects
|
virtual |
Get the internal objects
|
virtual |
Get the internal objects
void vtkImageViewer::SetupInteractor | ( | vtkRenderWindowInteractor * | ) |
Create and attach an interactor for this window
void vtkImageViewer::SetOffScreenRendering | ( | int | ) |
Create a window in memory instead of on the screen. This may not be supported for every type of window and on some windows you may need to invoke this prior to the first render.
int vtkImageViewer::GetOffScreenRendering | ( | ) |
Create a window in memory instead of on the screen. This may not be supported for every type of window and on some windows you may need to invoke this prior to the first render.
void vtkImageViewer::OffScreenRenderingOn | ( | ) |
Create a window in memory instead of on the screen. This may not be supported for every type of window and on some windows you may need to invoke this prior to the first render.
void vtkImageViewer::OffScreenRenderingOff | ( | ) |
Create a window in memory instead of on the screen. This may not be supported for every type of window and on some windows you may need to invoke this prior to the first render.
|
protected |
Definition at line 141 of file vtkImageViewer.h.
|
protected |
Definition at line 142 of file vtkImageViewer.h.
|
protected |
Definition at line 143 of file vtkImageViewer.h.
|
protected |
Definition at line 144 of file vtkImageViewer.h.
|
protected |
Definition at line 145 of file vtkImageViewer.h.
|
protected |
Definition at line 146 of file vtkImageViewer.h.
|
protected |
Definition at line 147 of file vtkImageViewer.h.