19#include <Inventor/SbLinear.h>
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
The SoSFMLImage field is the interface used by Inventor Nodes to access image data (in the current im...
SoView2D is a 2D viewer for image data.
This class stores all position information needed by SoView2DExtensions to handle the pointer positio...
void mapVoxelToWorld(const SbVec3f &src, SbVec3f &dst) const
map from Voxel to World coordinate (convenience method)
SbVec3f getWorldPosition() const
SoSFMLImage & getImage() const
Return reference to image field of SoView2D.
bool isInsideViewport() const
Return whether the voxel position is inside the visible viewport.
SbVec3f getVoxelPosition() const
Return voxel position of pointer.
SbVec2f getDevicePosition() const
Return View2D device position of pointer (Note that this is corrected to the current GL viewport and ...
bool isInsideImage() const
Return whether the voxel position is inside the image extents.
void mapWorldToVoxel(const SbVec3f &src, SbVec3f &dst) const
map from World to Voxel coordinate (convenience method)
View2DSliceList * getSliceList() const
pointer to slice list
SbVec2f getViewportOrigin() const
Return view port origin of current slice in voxel coordinates.
SbVec2f getViewportSize() const
Return view port size of current slice in voxel coordinates.
SoView2D * getViewer() const
Return pointer to SoView2D.
View2DPosition(SoView2D *viewer=nullptr)
Constructor and destructor.
a list that holds all View2DSlice objects (lazily created) of a SoView2D
Target mlrange_cast(Source arg)
Generic version of checked ML casts.