#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
void pointerPosition(SoState *state, const SoPointerPosition &pos) override
Same as below, with additional SoState argument. By default, simply calls the below version.
void pointerLeftWindow(SoState *state) override
Same as below, with additional SoState argument. By defaults, simply calls the below version.
SoPointerPosition manages the current position of the mouse cursor.
SoView2DInteractionExtension(const std::string &actionID, bool positionSensitive=true)
void doZoom(float diffY, SoView2D *view2d)
SoPointingAction * endPress(int clickCount) override
float _currenty
current y slice shift
float _oldY
previous y position
bool _started
set to true if EVENT_START was called
void dragMoveTo(const SoPointerPosition &pos) override
SoSFFloat sensitivity
sensitivity of zooming
void pointerLeftWindow(SoState *state) override
Same as below, with additional SoState argument. By defaults, simply calls the below version.
SoView2DSliceZoom()
constructor
bool evalEvent(SoView2D *view2d, View2DSliceList *slicelist, View2DEvent *ec, View2DEventPhase phase) override
reimplemented from SoView2DExtension
static void initClass()
inventor runtime type system
@ DRAG_APPROACH_AND_DEPART
bool _gotoOn
flag to trigger zoom on repaint
float _currentx
current x slice shift
void editingOnChanged(SoField *field) override
called when editingOn field is touched:
SoSFBool useAlternativeZoomFormula
Uses an alternative formula to compute the zoom factor.
float _newcenterx
new x center
void startDrawing(View2DSliceList *slicelist) override
reimplemented from SoView2DExtension
float _newcentery
new y center
void pointerPosition(SoState *state, const SoPointerPosition &pos) override
Same as below, with additional SoState argument. By default, simply calls the below version.
void toggleZoomToCursor()
SoSFBool zoomAroundClickPosition
if true then the click position is fixed while zooming
SoCommandAction * _zoomToCursorAction
void updateZoomCenter(int deviceX, int deviceY, SoView2D *view2d, View2DSliceList *slicelist) const
SoSFFloat min
minimum zoom value
bool _currentPosValid
flag if _currentx and _currenty are valid
SoSFFloat max
maximum zoom value
void startPressAt(const SoPointerPosition &pos) override
SoView2D is a 2D viewer for image data.
View2DEvent stores all information on an event on a SoView2D.
a list that holds all View2DSlice objects (lazily created) of a SoView2D