MeVisLabToolboxReference
SoView2DSlicePan Class Reference

allows to pan the slice by mouse movement inside of a SoView2D More...

#include <SoView2DSlicePan.h>

Inheritance diagram for SoView2DSlicePan:
SoView2DInteractionExtension SoView2DExtension

List of all members.

Public Member Functions

 SoView2DSlicePan ()
 constructor
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

SoSFBool editX
 pan in x
SoSFBool editY
 pan in y
SoSFBool evalStarted
 if true _started is evaluated during event handling.

Protected Member Functions

void doPan (const SbVec2f &diff, SoView2D *view2d, View2DSliceList *slicelist)
virtual void startPressAt (const SoPointerPosition &pos)
 interface forwarded from SoPointingAction:
virtual void dragMoveTo (const SoPointerPosition &pos)
virtual SoPointingAction * endPress (int clickCount)

Protected Attributes

SbVec2f _oldPos
 previous position
bool _started
 set to true if EVENT_START was called

Detailed Description

allows to pan the slice by mouse movement inside of a SoView2D

Author:
Florian Link

Definition at line 22 of file SoView2DSlicePan.h.


Constructor & Destructor Documentation

SoView2DSlicePan::SoView2DSlicePan ( )

constructor


Member Function Documentation

void SoView2DSlicePan::doPan ( const SbVec2f &  diff,
SoView2D view2d,
View2DSliceList slicelist 
) [protected]
virtual void SoView2DSlicePan::dragMoveTo ( const SoPointerPosition &  pos) [protected, virtual]

Reimplemented from SoView2DInteractionExtension.

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

Reimplemented from SoView2DInteractionExtension.

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

reimplemented from SoView2DExtension

Reimplemented from SoView2DExtension.

static void SoView2DSlicePan::initClass ( ) [static]

inventor runtime type system

Reimplemented from SoView2DInteractionExtension.

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

interface forwarded from SoPointingAction:

Reimplemented from SoView2DInteractionExtension.


Member Data Documentation

SbVec2f SoView2DSlicePan::_oldPos [protected]

previous position

Definition at line 57 of file SoView2DSlicePan.h.

bool SoView2DSlicePan::_started [protected]

set to true if EVENT_START was called

Definition at line 60 of file SoView2DSlicePan.h.

pan in x

Definition at line 28 of file SoView2DSlicePan.h.

pan in y

Definition at line 30 of file SoView2DSlicePan.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 34 of file SoView2DSlicePan.h.


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