#include <View2DPosition.h>
Public Member Functions | |
| View2DPosition (SoView2D *viewer) | |
| Constructor and destructor. | |
| ~View2DPosition () | |
| SbVec2f | getRelativePosition () const |
| Return relative position of pointer. | |
| 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. | |
| 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 if the voxel position is inside the image extents. | |
| bool | isInsideViewport () const |
| Return if the voxel position is inside the visible viewport. | |
| SbVec3f | getWorldPosition () const |
Protected Attributes | |
| SbVec2f | _relPos |
| SbVec3f | _voxelPos |
| SbVec2f | _vpOrigin |
| SbVec2f | _vpSize |
Definition at line 31 of file View2DPosition.h.
| View2DPosition::View2DPosition | ( | SoView2D * | viewer | ) |
Constructor and destructor.
| View2DPosition::~View2DPosition | ( | ) | [inline] |
Definition at line 36 of file View2DPosition.h.
| SoSFMLImage& View2DPosition::getImage | ( | ) | const [inline] |
| SbVec2f View2DPosition::getRelativePosition | ( | ) | const [inline] |
| SoView2D* View2DPosition::getViewer | ( | ) | const [inline] |
| SbVec2f View2DPosition::getViewportOrigin | ( | ) | const [inline] |
Return view port origin of current slice in voxel coordinates.
Definition at line 45 of file View2DPosition.h.
| SbVec2f View2DPosition::getViewportSize | ( | ) | const [inline] |
Return view port size of current slice in voxel coordinates.
Definition at line 47 of file View2DPosition.h.
| SbVec3f View2DPosition::getVoxelPosition | ( | ) | const [inline] |
| SbVec3f View2DPosition::getWorldPosition | ( | ) | const |
| bool View2DPosition::isInsideImage | ( | ) | const |
Return if the voxel position is inside the image extents.
| bool View2DPosition::isInsideViewport | ( | ) | const |
Return if the voxel position is inside the visible viewport.
| void View2DPosition::mapVoxelToWorld | ( | const SbVec3f & | src, | |
| SbVec3f & | dst | |||
| ) | const [inline] |
map from Voxel to World coordinate (convenience method)
Definition at line 56 of file View2DPosition.h.
| void View2DPosition::mapWorldToVoxel | ( | const SbVec3f & | src, | |
| SbVec3f & | dst | |||
| ) | const [inline] |
map from World to Voxel coordinate (convenience method)
Definition at line 59 of file View2DPosition.h.
SbVec2f View2DPosition::_relPos [protected] |
Definition at line 71 of file View2DPosition.h.
SbVec3f View2DPosition::_voxelPos [protected] |
Definition at line 72 of file View2DPosition.h.
SbVec2f View2DPosition::_vpOrigin [protected] |
Definition at line 73 of file View2DPosition.h.
SbVec2f View2DPosition::_vpSize [protected] |
Definition at line 74 of file View2DPosition.h.
1.5.8