DataViewerPanelBase Class Reference

#include <data_viewer_panel_base.hh>

Inherits ost::img::DataObserver.

Inherited by DataViewerPanel, and FFTPanel.


Signals

void clicked (const geom::Vec3 &mousepos)
void zoomed (int zoomlevel)
void selected (const Extent &selection)
void deselected ()
void slabChanged (int slab)
void released (void)

Public Member Functions

 DataViewerPanelBase (const Data &data, QWidget *parent)
virtual ~DataViewerPanelBase ()
void SetData (const Data &d)
virtual void paintEvent (QPaintEvent *event)
virtual void resizeEvent (QResizeEvent *event)
virtual void wheelEvent (QWheelEvent *event)
virtual void mousePressEvent (QMouseEvent *event)
virtual void mouseReleaseEvent (QMouseEvent *event)
virtual void mouseMoveEvent (QMouseEvent *event)
virtual void keyPressEvent (QKeyEvent *event)
virtual void ObserverUpdate ()
virtual void ObserverUpdate (const Extent &e)
virtual void ObserverUpdate (const Point &p)
virtual void ObserverRelease ()
void UpdateView (bool update_raster_image=true)
ViewerNormalizerPtr GetNormalizer () const
void Renormalize ()
Extent GetSelection () const
Point WinToPoint (int mx, int my) const
Point WinToPoint (const QPoint &p) const
geom::Vec2 WinToFracPoint (const QPoint &p) const
geom::Vec2 WinToFracPoint (int mx, int my) const
geom::Vec2 WinToFracPointCenter (const QPoint &p) const
geom::Vec2 WinToFracPointCenter (int mx, int my) const
QPoint PointToWin (const Point &p) const
QPoint FracPointToWin (const geom::Vec2 &p) const
QPoint FracPointToWinCenter (const geom::Vec2 &p) const
bool IsWithin (const QPoint &p) const
Real GetZoomScale () const
void SetZoomScale (Real zoom)
Extent GetExtent ()
geom::Vec3 GetPixelSampling ()
void SetDefaultCursor (const QCursor &c)
void SetDefaultCursor (int id)
void SetCursor (const QCursor &c)
void SetCursor (int id)
void SetDisplayPixelValues (bool show)
bool GetDisplayPixelValues ()
void Recenter ()
void CenterSelection ()
void SetColorMode (RasterImage::Mode m)
RasterImage::Mode GetColorMode ()
void SetFastLowMagnificationDrawing (bool flag)
bool GetFastLowMagnificationDrawing ()
void SetFastHighMagnificationDrawing (bool flag)
bool GetFastHighMagnificationDrawing ()
geom::Vec2 GetMousePosition ()
void MoveTo (const geom::Vec2 &p)
ImageHandle Extract (const Extent &e)
void HideClickedPosition ()
void ShowClickedPosition (bool show)
bool ClickedPositionIsVisible ()
bool HasSelection ()
geom::Vec3 GetClickedPosition ()
Real GetDataMin () const
Real GetDataMax () const
bool GetInvert () const
void SetInvert (bool invert)
void UpdateNormalizer (Real min, Real max, Real gamma, bool invert)
int GetSlab ()
void SetSlab (int slab)
void SetSelectionMode (int mode)
int GetSelectionMode ()
void SetAntialiasing (bool f)
bool GetAntialiasing () const

Protected Attributes

QMenu * popupmenu_


Detailed Description

Definition at line 53 of file data_viewer_panel_base.hh.


Constructor & Destructor Documentation

DataViewerPanelBase ( const Data data,
QWidget *  parent 
)

virtual ~DataViewerPanelBase (  )  [virtual]


Member Function Documentation

void CenterSelection (  ) 

re-center with center of selection (if any) in the middle of the window

void clicked ( const geom::Vec3 mousepos  )  [signal]

bool ClickedPositionIsVisible (  ) 

void deselected (  )  [signal]

ImageHandle Extract ( const Extent e  ) 

QPoint FracPointToWin ( const geom::Vec2 p  )  const

convert fractional image point to window coordinates (top left corner of point)

QPoint FracPointToWinCenter ( const geom::Vec2 p  )  const

convert fractional image point to window coordinates (center of point)

bool GetAntialiasing (  )  const

geom::Vec3 GetClickedPosition (  ) 

RasterImage::Mode GetColorMode (  )  [inline]

Definition at line 158 of file data_viewer_panel_base.hh.

Real GetDataMax (  )  const

Real GetDataMin (  )  const

bool GetDisplayPixelValues (  )  [inline]

Definition at line 146 of file data_viewer_panel_base.hh.

Extent GetExtent (  ) 

retrieve the extent of the image

bool GetFastHighMagnificationDrawing (  )  [inline]

Definition at line 164 of file data_viewer_panel_base.hh.

bool GetFastLowMagnificationDrawing (  )  [inline]

Definition at line 162 of file data_viewer_panel_base.hh.

bool GetInvert (  )  const

geom::Vec2 GetMousePosition (  )  [inline]

Definition at line 166 of file data_viewer_panel_base.hh.

ViewerNormalizerPtr GetNormalizer (  )  const

retrieve ptr to internal normalizer

geom::Vec3 GetPixelSampling (  ) 

retrieve the pixel sampling of the image

Extent GetSelection (  )  const

return currently active selection

if no selection is present, return Extent()

int GetSelectionMode (  ) 

int GetSlab (  ) 

Real GetZoomScale (  )  const

retrieve the zoomscale

bool HasSelection (  ) 

void HideClickedPosition (  ) 

bool IsWithin ( const QPoint &  p  )  const

checks if given point is visible in current panel

virtual void keyPressEvent ( QKeyEvent *  event  )  [virtual]

virtual void mouseMoveEvent ( QMouseEvent *  event  )  [virtual]

virtual void mousePressEvent ( QMouseEvent *  event  )  [virtual]

virtual void mouseReleaseEvent ( QMouseEvent *  event  )  [virtual]

void MoveTo ( const geom::Vec2 p  ) 

virtual void ObserverRelease (  )  [virtual]

Called if data is released from memory.

Implements DataObserver.

virtual void ObserverUpdate ( const Point  )  [virtual]

special update, calls ObserverUpdate() by default

Reimplemented from DataObserver.

virtual void ObserverUpdate ( const Extent  )  [virtual]

special update, calls ObserverUpdate() by default

Reimplemented from DataObserver.

virtual void ObserverUpdate (  )  [virtual]

called upon data change, noop by default

Reimplemented from DataObserver.

Reimplemented in FFTPanel.

virtual void paintEvent ( QPaintEvent *  event  )  [virtual]

QPoint PointToWin ( const Point p  )  const

convert image point to window coordinates

void Recenter (  ) 

re-center with spatial origin in the middle of the window

void released ( void   )  [signal]

void Renormalize (  ) 

do a renormalization with the current normalizer

virtual void resizeEvent ( QResizeEvent *  event  )  [virtual]

void selected ( const Extent selection  )  [signal]

void SetAntialiasing ( bool  f  ) 

void SetColorMode ( RasterImage::Mode  m  ) 

set coloring mode to either greyscale or phasecolor

void SetCursor ( int  id  ) 

void SetCursor ( const QCursor &  c  ) 

set cursor

void SetData ( const Data d  ) 

void SetDefaultCursor ( int  id  ) 

void SetDefaultCursor ( const QCursor &  c  ) 

set default cursor

void SetDisplayPixelValues ( bool  show  ) 

set display pixelvalues

void SetFastHighMagnificationDrawing ( bool  flag  )  [inline]

Definition at line 163 of file data_viewer_panel_base.hh.

void SetFastLowMagnificationDrawing ( bool  flag  )  [inline]

set/get fast drawing modes for low and high magnification

Definition at line 161 of file data_viewer_panel_base.hh.

void SetInvert ( bool  invert  ) 

void SetSelectionMode ( int  mode  ) 

void SetSlab ( int  slab  ) 

void SetZoomScale ( Real  zoom  ) 

set the zoomscale

void ShowClickedPosition ( bool  show  ) 

void slabChanged ( int  slab  )  [signal]

void UpdateNormalizer ( Real  min,
Real  max,
Real  gamma,
bool  invert 
)

void UpdateView ( bool  update_raster_image = true  ) 

update view

virtual void wheelEvent ( QWheelEvent *  event  )  [virtual]

geom::Vec2 WinToFracPoint ( int  mx,
int  my 
) const

geom::Vec2 WinToFracPoint ( const QPoint &  p  )  const

convert window coordinates to fractional image point

geom::Vec2 WinToFracPointCenter ( int  mx,
int  my 
) const

geom::Vec2 WinToFracPointCenter ( const QPoint &  p  )  const

Point WinToPoint ( const QPoint &  p  )  const

Point WinToPoint ( int  mx,
int  my 
) const

convert window coordinates to image point

void zoomed ( int  zoomlevel  )  [signal]


Field Documentation

QMenu* popupmenu_ [protected]

Definition at line 195 of file data_viewer_panel_base.hh.


The documentation for this class was generated from the following file:

Generated on Fri Jul 2 14:23:07 2010 for OpenStructure by  doxygen 1.5.8