22#include <Inventor/nodes/SoSubNode.h>
27#include <Inventor/fields/SoSFTrigger.h>
28#include <Inventor/fields/SoSFVec3f.h>
29#include <Inventor/fields/SoSFColor.h>
30#include <Inventor/fields/SoSFMatrix.h>
31#include <Inventor/sensors/SoFieldSensor.h>
32#include <Inventor/sensors/SoNodeSensor.h>
33#include <Inventor/SbLinear.h>
140 void _startDrag(
const SbVec3f& voxelPos);
146 bool _pointerInViewer;
165 void _initializeImages();
167 void _setUndoEnabled(
bool enabled);
168 void _setRedoEnabled(
bool enabled);
180 RegistrationState _startingState;
186 bool _calcRotationCenter;
197 class ResetAction :
public CommandAction
202 void execute()
override { getWidget()->doReset(); }
205 ResetAction* _resetAction;
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
SoCommandAction is the base class for instantaneous actions.
SoPointerPosition manages the current position of the mouse cursor.
SoPointingAction is the base class for any mouse based interaction.
SoView2DInteractionExtension is base class for all SoView2DExtensions that want to support the Manage...
interactive editor to accumulate a transformation matrix
void setRegistrationState(const RegistrationState &state)
SoSFString resolvedCenterImageFile
void doResetCallback(SoField *)
field change callbacks:
void pointerPosition(const SoPointerPosition &pos) override
interface inherited from SoInteractionProvider
bool implementsManagedInteractionAndClassicEventHandling() const override
this node is a hybrid module providing managed interaction and classic event handling
SoSFFloat maxWheelSizeInPixels
~SoView2DRigidRegistrationEditorBase() override
Protected destructor.
SoSFVec3f rotationCenterWorld
the current rotation center in world coordinates
virtual void iconImagesChanged(SoField *)
int getCurrentCursor(SoViewerProxy *viewerProxy) override
interface forwarded from SoPointingAction:
SoPointingAction * endPress(int clickCount) override
void draw(View2DSliceList *list, View2DSlice *slice, int z) override
Called by the SoView2D for each slice that is rendered.
void doResetRotationWheelCenterCallback(SoField *)
SoSFFloat minWheelSizeInPixels
static void initClass()
Initializes this class (called on dll initialization).
bool getRegistrationState(RegistrationState &state) const
virtual void pushOldState(const RegistrationState &)
callback for undo system
SoSFTrigger resetRotationWheelCenter
SoSFString resolvedWheelImageFile
appearance configuration
void pointerLeftWindow() override
This is called when the mouse cursor leaves the window.
SoSFFloat rotationRelativeCenterRadius
void unsetHighlight() override
SoSFMatrix defaultOutputMatrix
default values for outputMatrix and rotationCenterWorld, these will propagate directly and reset the ...
void dragMoveTo(const SoPointerPosition &pos) override
void startPressAt(const SoPointerPosition &pos) override
SoSFFloat maxRelativeWheelRadius
SoSFFloat minRelativeWheelRadius
void setHighlightAt(const SoPointerPosition &pos) override
bool isSensitiveAt(const SoPointerPosition &) override
interface forwarded from SoPointingAction:
SoSFMatrix outputMatrix
matrix with the current registration matrix
SoView2DRigidRegistrationEditorBase(const std::string &actionID)
Constructor.
SoSFFloat sizeViewerPercentage
This class gives access to state of a viewer during scene graph traversal.
Defines and implements a class to store multiple images and draw them via OpenGL.
a list that holds all View2DSlice objects (lazily created) of a SoView2D
a single slice that is stored in a View2DSliceList, typically created by a View2DSliceList
A class to render images as OpenGL Textures.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
RegistrationState(SbMatrix aMatrix, SbVec3f aCenter)