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

vtkInteractorStyleImage Class Reference

interactive manipulation of the camera. More...

#include <vtkInteractorStyleImage.h>

Inheritance diagram for vtkInteractorStyleImage:

Inheritance graph
[legend]
Collaboration diagram for vtkInteractorStyleImage:

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)
void OnMouseMove (int ctrl, int shift, int x, int y)
void OnLeftButtonDown (int ctrl, int shift, int x, int y)
void OnLeftButtonUp (int ctrl, int shift, int x, int y)
void OnMiddleButtonDown (int ctrl, int shift, int x, int y)
void OnMiddleButtonUp (int ctrl, int shift, int x, int y)
void OnRightButtonDown (int ctrl, int shift, int x, int y)
void OnRightButtonUp (int ctrl, int shift, int x, int y)
virtual int * GetWindowLevelStartPosition ()
virtual void GetWindowLevelStartPosition (int &, int &)
virtual void GetWindowLevelStartPosition (int[2])
virtual int * GetWindowLevelCurrentPosition ()
virtual void GetWindowLevelCurrentPosition (int &, int &)
virtual void GetWindowLevelCurrentPosition (int[2])

Static Public Methods

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

Protected Methods

 vtkInteractorStyleImage ()
 ~vtkInteractorStyleImage ()
void WindowLevelXY (int dx, int dy)
void PanXY (int x, int y, int oldX, int oldY)
void DollyXY (int dx, int dy)
void SpinXY (int dx, int dy, int oldX, int oldY)

Protected Attributes

int WindowLevelStartPosition [2]
int WindowLevelCurrentPosition [2]
int State
float MotionFactor
float RadianToDegree

Detailed Description

interactive manipulation of the camera.

Date:
2001/10/11 13:38:11
Revision:
1.3

vtkInteractorStyleImage allows the user to interactively manipulate (rotate, pan, etc.) the camera, the viewpoint of the scene. For a 3-button mouse, the left button is for rotation, the right button for zooming, the middle button for panning, and ctrl + left button for spinning. (With fewer mouse buttons, ctrl + shift + left button is for zooming, and shift + left button is for panning.)

See also:
vtkInteractorStyleTrackballActor vtkInteractorStyleJoystickCamera vtkInteractorStyleJoystickActor
Events:
vtkCommand::RightButtonPressEvent vtkCommand::MiddleButtonPressEvent vtkCommand::WindowLevelEvent vtkCommand::LeftButtonPressEvent

Definition at line 73 of file vtkInteractorStyleImage.h.


Constructor & Destructor Documentation

vtkInteractorStyleImage::vtkInteractorStyleImage   [protected]
 

vtkInteractorStyleImage::~vtkInteractorStyleImage   [protected]
 


Member Function Documentation

vtkInteractorStyleImage* vtkInteractorStyleImage::New   [static]
 

This class must be supplied with a vtkRenderWindowInteractor wrapper or parent. This class should not normally be instantiated by application programmers.

Reimplemented from vtkInteractorStyle.

virtual const char* vtkInteractorStyleImage::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 vtkInteractorStyle.

int vtkInteractorStyleImage::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 vtkInteractorStyle.

virtual int vtkInteractorStyleImage::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 vtkInteractorStyle.

vtkInteractorStyleImage* vtkInteractorStyleImage::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 vtkInteractorStyle.

void vtkInteractorStyleImage::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 vtkInteractorStyle.

void vtkInteractorStyleImage::OnMouseMove int    ctrl,
int    shift,
int    x,
int    y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleImage::OnLeftButtonDown int    ctrl,
int    shift,
int    x,
int    y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleImage::OnLeftButtonUp int    ctrl,
int    shift,
int    x,
int    y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleImage::OnMiddleButtonDown int    ctrl,
int    shift,
int    x,
int    y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleImage::OnMiddleButtonUp int    ctrl,
int    shift,
int    x,
int    y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleImage::OnRightButtonDown int    ctrl,
int    shift,
int    x,
int    y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkInteractorStyle.

void vtkInteractorStyleImage::OnRightButtonUp int    ctrl,
int    shift,
int    x,
int    y
[virtual]
 

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkInteractorStyle.

virtual int* vtkInteractorStyleImage::GetWindowLevelStartPosition   [virtual]
 

Some useful information for handling window level

virtual void vtkInteractorStyleImage::GetWindowLevelStartPosition int &   ,
int &   
[virtual]
 

Some useful information for handling window level

virtual void vtkInteractorStyleImage::GetWindowLevelStartPosition int   [2] [virtual]
 

Some useful information for handling window level

virtual int* vtkInteractorStyleImage::GetWindowLevelCurrentPosition   [virtual]
 

Some useful information for handling window level

virtual void vtkInteractorStyleImage::GetWindowLevelCurrentPosition int &   ,
int &   
[virtual]
 

Some useful information for handling window level

virtual void vtkInteractorStyleImage::GetWindowLevelCurrentPosition int   [2] [virtual]
 

Some useful information for handling window level

void vtkInteractorStyleImage::WindowLevelXY int    dx,
int    dy
[protected]
 

void vtkInteractorStyleImage::PanXY int    x,
int    y,
int    oldX,
int    oldY
[protected]
 

void vtkInteractorStyleImage::DollyXY int    dx,
int    dy
[protected]
 

void vtkInteractorStyleImage::SpinXY int    dx,
int    dy,
int    oldX,
int    oldY
[protected]
 


Member Data Documentation

int vtkInteractorStyleImage::WindowLevelStartPosition[2] [protected]
 

Definition at line 107 of file vtkInteractorStyleImage.h.

int vtkInteractorStyleImage::WindowLevelCurrentPosition[2] [protected]
 

Definition at line 108 of file vtkInteractorStyleImage.h.

int vtkInteractorStyleImage::State [protected]
 

Reimplemented from vtkInteractorStyle.

Definition at line 109 of file vtkInteractorStyleImage.h.

float vtkInteractorStyleImage::MotionFactor [protected]
 

Definition at line 110 of file vtkInteractorStyleImage.h.

float vtkInteractorStyleImage::RadianToDegree [protected]
 

Definition at line 111 of file vtkInteractorStyleImage.h.


The documentation for this class was generated from the following file:
Generated on Thu Mar 28 14:32:45 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001