This class stores all position information needed by SoView2DExtensions to handle the pointer position.
More...
#include <View2DPosition.h>
This class stores all position information needed by SoView2DExtensions to handle the pointer position.
Definition at line 26 of file View2DPosition.h.
View2DPosition::View2DPosition |
( |
SoView2D * |
viewer = NULL | ) |
|
Constructor and destructor.
View2DPosition::~View2DPosition |
( |
| ) |
|
|
inline |
SbVec2f View2DPosition::getDevicePosition |
( |
| ) |
const |
|
inline |
Return View2D device position of pointer (Note that this is corrected to the current GL viewport and that Y is flipped compared to SoPointerPosition).
Definition at line 35 of file View2DPosition.h.
Return reference to image field of SoView2D.
SoView2D* View2DPosition::getViewer |
( |
| ) |
const |
|
inline |
SbVec2f View2DPosition::getViewportOrigin |
( |
| ) |
const |
|
inline |
Return view port origin of current slice in voxel coordinates.
Definition at line 41 of file View2DPosition.h.
SbVec2f View2DPosition::getViewportSize |
( |
| ) |
const |
|
inline |
Return view port size of current slice in voxel coordinates.
Definition at line 43 of file View2DPosition.h.
SbVec3f View2DPosition::getVoxelPosition |
( |
| ) |
const |
|
inline |
SbVec3f View2DPosition::getWorldPosition |
( |
| ) |
const |
bool View2DPosition::isInsideImage |
( |
| ) |
const |
Return whether the voxel position is inside the image extents.
bool View2DPosition::isInsideViewport |
( |
| ) |
const |
Return whether 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 55 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 58 of file View2DPosition.h.
SbVec2f View2DPosition::_relPos |
|
protected |
SbVec3f View2DPosition::_voxelPos |
|
protected |
SbVec2f View2DPosition::_vpOrigin |
|
protected |
SbVec2f View2DPosition::_vpSize |
|
protected |
The documentation for this class was generated from the following file: