MeVisLabToolboxReference
|
Node that allows a View2D zoom fly in on mouse click. More...
#include <SoView2DAutoCenter.h>
Public Member Functions | |
SoView2DAutoCenter () | |
~SoView2DAutoCenter () | |
virtual void | startDrawing (View2DSliceList *slicelist) |
reimplemented from SoView2DExtension | |
virtual bool | evalEvent (SoView2D *view2d, View2DSliceList *slicelist, View2DEvent *ec, View2DEventPhase phase) |
reimplemented from SoView2DExtension | |
virtual void | draw (View2DSliceList *slicelist, View2DSlice *slice, int sliceZ) |
reimplemented from SoView2DExtension | |
Static Public Member Functions | |
static void | initClass () |
Initializes this class. | |
static void | timerSensorCB (void *data, SoSensor *sensor) |
Callback for timer sensor that is used for smooth zooming. | |
Public Attributes | |
SoSFTrigger | triggerResetZoom |
Triggering causes centering of the view. | |
Protected Member Functions | |
void | startCenter (SoView2D *view2d, const SbVec3f &voxelPos, bool isInImage) |
void | endCenter () |
virtual void | startPressAt (const SoPointerPosition &pos) |
interface forwarded from SoPointingAction: | |
virtual SoPointingAction * | endPress (int clickCount) |
Protected Attributes | |
float | _newcenterx |
the new center x that we zoom to | |
float | _newcentery |
the new center y that we zoom to | |
bool | _gotoOn |
flag if zooming is currently on | |
bool | _shouldReset |
flag if the view should reset on next click | |
SoTimerSensor * | _timer |
the timer that repaints and triggers zooming | |
SoView2D * | _zoomView |
the SoView2D where the zoom has been started |
Node that allows a View2D zoom fly in on mouse click.
Definition at line 22 of file SoView2DAutoCenter.h.
SoView2DAutoCenter::SoView2DAutoCenter | ( | ) |
SoView2DAutoCenter::~SoView2DAutoCenter | ( | ) |
virtual void SoView2DAutoCenter::draw | ( | View2DSliceList * | slicelist, |
View2DSlice * | slice, | ||
int | sliceZ | ||
) | [virtual] |
reimplemented from SoView2DExtension
Reimplemented from SoView2DExtension.
void SoView2DAutoCenter::endCenter | ( | ) | [protected] |
virtual SoPointingAction* SoView2DAutoCenter::endPress | ( | int | clickCount | ) | [protected, virtual] |
Reimplemented from SoView2DInteractionExtension.
virtual bool SoView2DAutoCenter::evalEvent | ( | SoView2D * | view2d, |
View2DSliceList * | slicelist, | ||
View2DEvent * | ec, | ||
View2DEventPhase | phase | ||
) | [virtual] |
reimplemented from SoView2DExtension
Reimplemented from SoView2DExtension.
static void SoView2DAutoCenter::initClass | ( | ) | [static] |
Initializes this class.
Reimplemented from SoView2DInteractionExtension.
void SoView2DAutoCenter::startCenter | ( | SoView2D * | view2d, |
const SbVec3f & | voxelPos, | ||
bool | isInImage | ||
) | [protected] |
virtual void SoView2DAutoCenter::startDrawing | ( | View2DSliceList * | slicelist | ) | [virtual] |
reimplemented from SoView2DExtension
Reimplemented from SoView2DExtension.
virtual void SoView2DAutoCenter::startPressAt | ( | const SoPointerPosition & | pos | ) | [protected, virtual] |
interface forwarded from SoPointingAction:
Reimplemented from SoView2DInteractionExtension.
static void SoView2DAutoCenter::timerSensorCB | ( | void * | data, |
SoSensor * | sensor | ||
) | [static] |
Callback for timer sensor that is used for smooth zooming.
bool SoView2DAutoCenter::_gotoOn [protected] |
flag if zooming is currently on
Definition at line 63 of file SoView2DAutoCenter.h.
float SoView2DAutoCenter::_newcenterx [protected] |
the new center x that we zoom to
Definition at line 59 of file SoView2DAutoCenter.h.
float SoView2DAutoCenter::_newcentery [protected] |
the new center y that we zoom to
Definition at line 61 of file SoView2DAutoCenter.h.
bool SoView2DAutoCenter::_shouldReset [protected] |
flag if the view should reset on next click
Definition at line 65 of file SoView2DAutoCenter.h.
SoTimerSensor* SoView2DAutoCenter::_timer [protected] |
the timer that repaints and triggers zooming
Definition at line 68 of file SoView2DAutoCenter.h.
SoView2D* SoView2DAutoCenter::_zoomView [protected] |
the SoView2D where the zoom has been started
Definition at line 70 of file SoView2DAutoCenter.h.
SoSFTrigger SoView2DAutoCenter::triggerResetZoom |
Triggering causes centering of the view.
Definition at line 33 of file SoView2DAutoCenter.h.