SoView2DSliceZoom Class Reference

allows to change the slice zoom by y mouse movement More...

#include <SoView2DSliceShiftZoom.h>

Inheritance diagram for SoView2DSliceZoom:

SoView2DExtension

List of all members.

Public Types

enum  DragMode { DRAG_TAKE_AND_PUSH, DRAG_APPROACH_AND_DEPART }

Public Member Functions

 SoView2DSliceZoom ()
 constructor
virtual void startDrawing (View2DSliceList *slicelist)
 reimplemented from SoView2DExtension
bool evalEvent (SoView2D *view2d, View2DSliceList *slicelist, View2DEvent *ec, View2DEventPhase phase)
 reimplemented from SoView2DExtension

Static Public Member Functions

static void initClass ()
 inventor runtime type system

Public Attributes

SoSFFloat min
 minimum zoom value
SoSFFloat max
 maximum zoom value
SoSFFloat sensitivity
 sensitivity of zooming
SoSFEnum dragMode
SoSFBool evalStarted
 if true _started is evaluated during event handling.

Protected Attributes

float _oldY
 previous y position
float _currentx
 current x slice shift
float _currenty
 current y slice shift
float _newcenterx
 new x center
float _newcentery
 new y center
bool _gotoOn
 flag to trigger zoom on repaint
bool _started
 set to true if EVENT_START was called


Detailed Description

allows to change the slice zoom by y mouse movement

Author:
Florian Link

Definition at line 60 of file SoView2DSliceShiftZoom.h.


Member Enumeration Documentation

Enumerator:
DRAG_TAKE_AND_PUSH 
DRAG_APPROACH_AND_DEPART 

Definition at line 66 of file SoView2DSliceShiftZoom.h.


Constructor & Destructor Documentation

SoView2DSliceZoom::SoView2DSliceZoom (  ) 

constructor


Member Function Documentation

bool SoView2DSliceZoom::evalEvent ( SoView2D view2d,
View2DSliceList slicelist,
View2DEvent ec,
View2DEventPhase  phase 
) [virtual]

reimplemented from SoView2DExtension

Reimplemented from SoView2DExtension.

static void SoView2DSliceZoom::initClass (  )  [static]

inventor runtime type system

Reimplemented from SoView2DExtension.

virtual void SoView2DSliceZoom::startDrawing ( View2DSliceList slicelist  )  [virtual]

reimplemented from SoView2DExtension

Reimplemented from SoView2DExtension.


Member Data Documentation

float SoView2DSliceZoom::_currentx [protected]

current x slice shift

Definition at line 103 of file SoView2DSliceShiftZoom.h.

float SoView2DSliceZoom::_currenty [protected]

current y slice shift

Definition at line 105 of file SoView2DSliceShiftZoom.h.

bool SoView2DSliceZoom::_gotoOn [protected]

flag to trigger zoom on repaint

Definition at line 111 of file SoView2DSliceShiftZoom.h.

float SoView2DSliceZoom::_newcenterx [protected]

new x center

Definition at line 107 of file SoView2DSliceShiftZoom.h.

float SoView2DSliceZoom::_newcentery [protected]

new y center

Definition at line 109 of file SoView2DSliceShiftZoom.h.

float SoView2DSliceZoom::_oldY [protected]

previous y position

Definition at line 101 of file SoView2DSliceShiftZoom.h.

bool SoView2DSliceZoom::_started [protected]

set to true if EVENT_START was called

Definition at line 114 of file SoView2DSliceShiftZoom.h.

Definition at line 78 of file SoView2DSliceShiftZoom.h.

if true _started is evaluated during event handling.

to fix a bug where EVENT_START isn't called when dynamically connecting SliceShift within a script

Definition at line 82 of file SoView2DSliceShiftZoom.h.

maximum zoom value

Definition at line 74 of file SoView2DSliceShiftZoom.h.

minimum zoom value

Definition at line 72 of file SoView2DSliceShiftZoom.h.

sensitivity of zooming

Definition at line 76 of file SoView2DSliceShiftZoom.h.


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

Generated on Sat Sep 3 18:39:33 2011 for MeVisLab Toolbox Reference by  doxygen 1.5.8