| 
    MeVisLab Toolbox Reference
    
   | 
 
This class stores all position information needed by SoView2DExtensions to handle the pointer position. More...
#include <View2DPosition.h>
  
Public Member Functions | |
| 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 | 
Protected Attributes | |
| SbVec2f | _relPos | 
| SbVec3f | _voxelPos | 
| SbVec2f | _vpOrigin | 
| SbVec2f | _vpSize | 
This class stores all position information needed by SoView2DExtensions to handle the pointer position.
Definition at line 29 of file View2DPosition.h.
      
  | 
  inline | 
Definition at line 34 of file View2DPosition.h.
      
  | 
  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 38 of file View2DPosition.h.
| SoSFMLImage & View2DPosition::getImage | ( | ) | const | 
Return reference to image field of SoView2D.
| View2DSliceList * View2DPosition::getSliceList | ( | ) | const | 
pointer to slice list
      
  | 
  inline | 
Return pointer to SoView2D.
Definition at line 52 of file View2DPosition.h.
      
  | 
  inline | 
Return view port origin of current slice in voxel coordinates.
Definition at line 44 of file View2DPosition.h.
Referenced by CSOBulgeAction::isInViewportRegion().
      
  | 
  inline | 
Return view port size of current slice in voxel coordinates.
Definition at line 46 of file View2DPosition.h.
Referenced by CSOBulgeAction::isInViewportRegion().
      
  | 
  inline | 
Return voxel position of pointer.
Definition at line 41 of file View2DPosition.h.
Referenced by CSOBulgeAction::isInViewportRegion().
| 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.
map from Voxel to World coordinate (convenience method)
Definition at line 58 of file View2DPosition.h.
References mlrange_cast().
map from World to Voxel coordinate (convenience method)
Definition at line 61 of file View2DPosition.h.
References mlrange_cast().
      
  | 
  protected | 
Definition at line 73 of file View2DPosition.h.
Referenced by MutableView2DPosition::setDevicePosition().
      
  | 
  protected | 
Definition at line 74 of file View2DPosition.h.
Referenced by MutableView2DPosition::setVoxelPosition().
      
  | 
  protected | 
Definition at line 75 of file View2DPosition.h.
Referenced by MutableView2DPosition::setViewport().
      
  | 
  protected | 
Definition at line 76 of file View2DPosition.h.
Referenced by MutableView2DPosition::setViewport().