MeVisLabToolboxReference
|
allows to pan the slice by mouse movement inside of a SoView2D More...
#include <SoView2DSlicePan.h>
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 |
allows to pan the slice by mouse movement inside of a SoView2D
Definition at line 22 of file SoView2DSlicePan.h.
SoView2DSlicePan::SoView2DSlicePan | ( | ) |
constructor
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.
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.
SoSFBool SoView2DSlicePan::editX |
pan in x
Definition at line 28 of file SoView2DSlicePan.h.
SoSFBool SoView2DSlicePan::editY |
pan in y
Definition at line 30 of file SoView2DSlicePan.h.
SoSFBool SoView2DSlicePan::evalStarted |
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.