|
MeVisLab Toolbox Reference
|
MutableView2DPosition just exists as a way to set the values in a View2DPosition object which will be attached to a SoPointerPosition. More...
#include <SoView2DInteraction.h>
Public Member Functions | |
| MutableView2DPosition (SoView2D *viewer) | |
| void | setDevicePosition (const SbVec2f &pos) |
| void | setVoxelPosition (const SbVec3f &pos) |
| void | setViewport (const SbVec2f &origin, const SbVec2f &size) |
Public Member Functions inherited from View2DPosition | |
| View2DPosition (SoView2D *viewer=nullptr) | |
| Constructor and destructor. | |
| ~View2DPosition () | |
| SbVec2f | getDevicePosition () const |
| Return View2D device position of pointer (Note that this is corrected to the current GL viewport and that Y is flipped compared to SoPointerPosition). | |
| SbVec3f | getVoxelPosition () const |
| Return voxel position of pointer. | |
| 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. | |
| SoSFMLImage & | getImage () const |
| Return reference to image field of SoView2D. | |
| SoView2D * | getViewer () const |
| Return pointer to SoView2D. | |
| View2DSliceList * | getSliceList () const |
| pointer to slice list | |
| void | mapVoxelToWorld (const SbVec3f &src, SbVec3f &dst) const |
| map from Voxel to World coordinate (convenience method) | |
| void | mapWorldToVoxel (const SbVec3f &src, SbVec3f &dst) const |
| map from World to Voxel coordinate (convenience method) | |
| bool | isInsideImage () const |
| Return whether the voxel position is inside the image extents. | |
| bool | isInsideViewport () const |
| Return whether the voxel position is inside the visible viewport. | |
| SbVec3f | getWorldPosition () const |
Additional Inherited Members | |
Protected Attributes inherited from View2DPosition | |
| SbVec2f | _relPos |
| SbVec3f | _voxelPos |
| SbVec2f | _vpOrigin |
| SbVec2f | _vpSize |
MutableView2DPosition just exists as a way to set the values in a View2DPosition object which will be attached to a SoPointerPosition.
Definition at line 22 of file SoView2DInteraction.h.
|
inline |
Definition at line 25 of file SoView2DInteraction.h.
|
inline |
Definition at line 26 of file SoView2DInteraction.h.
References View2DPosition::_relPos.
|
inline |
Definition at line 28 of file SoView2DInteraction.h.
References View2DPosition::_vpOrigin, and View2DPosition::_vpSize.
|
inline |
Definition at line 27 of file SoView2DInteraction.h.
References View2DPosition::_voxelPos.