Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

vtkImageViewer Class Reference

Display a 2d image. More...

#include <vtkImageViewer.h>

Inheritance diagram for vtkImageViewer:

Inheritance graph
[legend]
Collaboration diagram for vtkImageViewer:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
char * GetWindowName ()
virtual void Render (void)
void SetInput (vtkImageData *in)
vtkImageDataGetInput ()
int GetWholeZMin ()
int GetWholeZMax ()
int GetZSlice ()
void SetZSlice (int s)
float GetColorWindow ()
float GetColorLevel ()
void SetColorWindow (float s)
void SetColorLevel (float s)
void SetDisplayId (void *a)
void SetWindowId (void *a)
void SetParentId (void *a)
int GetGrayScaleHint ()
void SetGrayScaleHint (int 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])
vtkImageWindowGetImageWindow ()
vtkImageMapperGetImageMapper ()
vtkImagerGetImager ()
vtkActor2DGetActor2D ()

Static Public Methods

vtkImageViewer * New ()
int IsTypeOf (const char *type)
vtkImageViewer * SafeDownCast (vtkObject *o)

Protected Methods

 vtkImageViewer ()
 ~vtkImageViewer ()
 vtkImageViewer (const vtkImageViewer &)
void operator= (const vtkImageViewer &)

Protected Attributes

vtkImageMapperImageMapper
vtkImageWindowImageWindow
vtkImagerImager
vtkActor2DActor2D

Detailed Description

Display a 2d image.

Date:
2001/01/22 11:54:18
Revision:
1.39.2.1
Thanks:
Thanks to C. Charles Law who developed this class.
vtkImageViewer is a convenience class for displaying a 2d image. It packages up the functionality found in vtkImageWindow, vtkImager, 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.

See also:
vtkImageWindow vtkImager vtkImageMapper vtkActor2D
Examples:
vtkImageViewer (examples)


Member Function Documentation

virtual const char* vtkImageViewer::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

float vtkImageViewer::GetColorWindow   [inline]
 

Sets window/level for mapping pixels to colors.

int vtkImageViewer::GetGrayScaleHint   [inline]
 

By default this is a color viewer. GrayScaleHintOn will improve the appearance of gray scale images on some systems.

vtkImageWindow* vtkImageViewer::GetImageWindow   [inline]
 

Get the internal Window Imager and Mapper

int* vtkImageViewer::GetPosition   [inline]
 

Set/Get the position in screen coordinates of the rendering window.

int* vtkImageViewer::GetSize   [inline]
 

Set/Get the size of the window in screen coordinates.

int vtkImageViewer::GetWholeZMin   [inline]
 

What is the possible Min/ Max z slices available.

char* vtkImageViewer::GetWindowName   [inline]
 

Get name of rendering window

int vtkImageViewer::GetZSlice   [inline]
 

Set/Get the current Z Slice to display

virtual int vtkImageViewer::IsA const char *    type [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.

int vtkImageViewer::IsTypeOf const char *    type [static]
 

Return 1 if this class type 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.

vtkImageViewer* vtkImageViewer::New   [static]
 

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

void vtkImageViewer::PrintSelf ostream &    os,
vtkIndent    indent
[virtual]
 

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

virtual void vtkImageViewer::Render void    [virtual]
 

Render the resulting image.

vtkImageViewer* vtkImageViewer::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

void vtkImageViewer::SetDisplayId void *    a [inline]
 

These are here for using a tk window.

void vtkImageViewer::SetInput vtkImageData   in [inline]
 

Set/Get the input to the viewer.


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:27:12 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002