19#include <Inventor/SbLinear.h>
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
SoView2D is a 2D viewer for image data.
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
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