GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
vtkViewImage2DCommand Class Reference

Manage events occuring in 2D view. More...

#include <Code/ExternalCode/MegaVTK/vtkRenderingAddOn/vtkViewImage2DCommand.h>

Inheritance diagram for vtkViewImage2DCommand:
Inheritance graph
[legend]
Collaboration diagram for vtkViewImage2DCommand:
Collaboration graph
[legend]

Public Types

enum  EventIds {
  SliceMoveEvent = ( vtkCommand::UserEvent + 1 ), StartSliceMoveEvent, EndSliceMoveEvent, ZoomEvent,
  PanEvent, RequestedPositionEvent, ResetViewerEvent, ContourPickingEvent,
  MeshPickingEvent, CameraMoveEvent, DefaultMoveEvent, WindowLevelEvent,
  SyncViewsEvent
}
 

Public Member Functions

virtual void Execute (vtkObject *caller, unsigned long event, void *vtkNotUsed(callData))
 
void SetViewer (vtkViewImage2D *viewer)
 Set the 2d image related to this 2d event manager. More...
 

Static Public Member Functions

static vtkViewImage2DCommandNew ()
 Convenient method to access the constructor. More...
 

Protected Member Functions

void Panning ()
 Method to be called if an event is caught in "Panning Mode". More...
 
void PrintInformation ()
 Method to be called when an event is caught to update information in 2D view such as position, pixel intensity, etc. More...
 
 vtkViewImage2DCommand ()
 
void Windowing (vtkInteractorStyleImage2D *isi)
 Method to be called if an event is caught in "Windowing Mode". More...
 
void Zooming ()
 Method to be called if an event is caught in "Zooming Mode". More...
 
 ~vtkViewImage2DCommand ()
 

Private Attributes

double InitialLevel
 
int InitialSlice
 
double InitialWindow
 
vtkViewImage2DViewer
 

Detailed Description

Manage events occuring in 2D view.

Definition at line 83 of file vtkViewImage2DCommand.h.

Member Enumeration Documentation

Enumerator
SliceMoveEvent 
StartSliceMoveEvent 
EndSliceMoveEvent 
ZoomEvent 
PanEvent 
RequestedPositionEvent 
ResetViewerEvent 
ContourPickingEvent 
MeshPickingEvent 
CameraMoveEvent 
DefaultMoveEvent 
WindowLevelEvent 
SyncViewsEvent 

Definition at line 93 of file vtkViewImage2DCommand.h.

Constructor & Destructor Documentation

vtkViewImage2DCommand::vtkViewImage2DCommand ( )
protected

Definition at line 93 of file vtkViewImage2DCommand.cxx.

vtkViewImage2DCommand::~vtkViewImage2DCommand ( )
inlineprotected

Definition at line 126 of file vtkViewImage2DCommand.h.

Member Function Documentation

void vtkViewImage2DCommand::Execute ( vtkObject *  caller,
unsigned long  event,
void *  vtkNotUsedcallData 
)
virtual

Definition at line 99 of file vtkViewImage2DCommand.cxx.

static vtkViewImage2DCommand* vtkViewImage2DCommand::New ( )
inlinestatic

Convenient method to access the constructor.

Definition at line 89 of file vtkViewImage2DCommand.h.

void vtkViewImage2DCommand::Panning ( )
protected

Method to be called if an event is caught in "Panning Mode".

Definition at line 371 of file vtkViewImage2DCommand.cxx.

void vtkViewImage2DCommand::PrintInformation ( )
protected

Method to be called when an event is caught to update information in 2D view such as position, pixel intensity, etc.

Todo:
dims and spacing must be computed from the orientation of the image.

Definition at line 266 of file vtkViewImage2DCommand.cxx.

void vtkViewImage2DCommand::SetViewer ( vtkViewImage2D viewer)
inline

Set the 2d image related to this 2d event manager.

Parameters
[in]viewervtkViewImage2D Target 2D image

Definition at line 122 of file vtkViewImage2DCommand.h.

void vtkViewImage2DCommand::Windowing ( vtkInteractorStyleImage2D isi)
protected

Method to be called if an event is caught in "Windowing Mode".

Parameters
[in]isiRelated interactor

Definition at line 202 of file vtkViewImage2DCommand.cxx.

void vtkViewImage2DCommand::Zooming ( )
protected

Method to be called if an event is caught in "Zooming Mode".

Definition at line 330 of file vtkViewImage2DCommand.cxx.

Member Data Documentation

double vtkViewImage2DCommand::InitialLevel
private

Definition at line 153 of file vtkViewImage2DCommand.h.

int vtkViewImage2DCommand::InitialSlice
private

Definition at line 154 of file vtkViewImage2DCommand.h.

double vtkViewImage2DCommand::InitialWindow
private

Definition at line 152 of file vtkViewImage2DCommand.h.

vtkViewImage2D* vtkViewImage2DCommand::Viewer
private

Definition at line 151 of file vtkViewImage2DCommand.h.


The documentation for this class was generated from the following files: