MeVisLabToolboxReference
SoView2DSlicer Class Reference

allows changing the current slice of the SoView2D with mouse movement and mousewheel More...

#include <SoView2DSlicer.h>

Inheritance diagram for SoView2DSlicer:
SoView2DInteractionExtension SoView2DExtension

List of all members.

Public Member Functions

 SoView2DSlicer ()
 Constructor.
void updateValues ()
 setup code
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 sensitivity
 sensitivity used for sliding
SoSFBool permitInteractionOutsideImage
 Field for toggling the interaction out of the image on/off.

Protected Member Functions

void doSliceByMouse (float diffY, SoView2D *view2d)
virtual void startPressAt (const SoPointerPosition &pos)
 interface forwarded from SoPointingAction:
virtual void dragMoveTo (const SoPointerPosition &pos)
virtual SoPointingAction * endPress (int clickCount)

Protected Attributes

int _oldY
 previous y coordinate of mouse
int _sumY
 current sum of y movement since last slice change
unsigned _prevWheelCode
 previous wheel rotation orientation & sign code
int _sumWheel
 current sum of 1/8 degrees of wheel rotation

Detailed Description

allows changing the current slice of the SoView2D with mouse movement and mousewheel

Definition at line 20 of file SoView2DSlicer.h.


Constructor & Destructor Documentation

SoView2DSlicer::SoView2DSlicer ( )

Constructor.


Member Function Documentation

void SoView2DSlicer::doSliceByMouse ( float  diffY,
SoView2D view2d 
) [protected]
virtual void SoView2DSlicer::dragMoveTo ( const SoPointerPosition &  pos) [protected, virtual]

Reimplemented from SoView2DInteractionExtension.

virtual SoPointingAction* SoView2DSlicer::endPress ( int  clickCount) [protected, virtual]

Reimplemented from SoView2DInteractionExtension.

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

reimplemented from SoView2DExtension

Reimplemented from SoView2DExtension.

static void SoView2DSlicer::initClass ( ) [static]

inventor runtime type system

Reimplemented from SoView2DInteractionExtension.

virtual void SoView2DSlicer::startPressAt ( const SoPointerPosition &  pos) [protected, virtual]

interface forwarded from SoPointingAction:

Reimplemented from SoView2DInteractionExtension.

void SoView2DSlicer::updateValues ( ) [virtual]

setup code

Reimplemented from SoView2DExtension.


Member Data Documentation

int SoView2DSlicer::_oldY [protected]

previous y coordinate of mouse

Definition at line 55 of file SoView2DSlicer.h.

unsigned SoView2DSlicer::_prevWheelCode [protected]

previous wheel rotation orientation & sign code

Definition at line 59 of file SoView2DSlicer.h.

int SoView2DSlicer::_sumWheel [protected]

current sum of 1/8 degrees of wheel rotation

Definition at line 61 of file SoView2DSlicer.h.

int SoView2DSlicer::_sumY [protected]

current sum of y movement since last slice change

Definition at line 57 of file SoView2DSlicer.h.

Field for toggling the interaction out of the image on/off.

Definition at line 35 of file SoView2DSlicer.h.

sensitivity used for sliding

Definition at line 26 of file SoView2DSlicer.h.


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