DataViewer Class Reference

Data viewer. More...

#include <data_viewer.hh>

Inherits ost::gui::MainWindow.


Public Slots

void UpdateView ()
void OnSlabChange (int slab)
void OnZoomChange (int zoomlevel)

Public Member Functions

virtual ~DataViewer ()
void SetData (const Data &data)
NormalizerPtr GetNormalizer () const
void Renormalize ()
void Recenter ()
Extent GetSelection () const
void SetName (const String &name)
int AddOverlay (const OverlayPtr &ov, bool make_active=true)
void ClearOverlays ()
OverlayManagerPtr GetOverlayManager () const
virtual void OnPanelMouseEvent (QMouseEvent *e)
void SetAntialiasing (bool f)
virtual bool eventFilter (QObject *object, QEvent *event)

Protected Member Functions

 DataViewer (QWidget *p, const Data &data, const QString &name="")

Friends

class ost::gui::GostyApp


Detailed Description

Data viewer.

Definition at line 60 of file data_viewer.hh.


Constructor & Destructor Documentation

virtual ~DataViewer (  )  [virtual]

DataViewer ( QWidget *  p,
const Data data,
const QString &  name = "" 
) [protected]

initialize with data to view, plus a name


Member Function Documentation

int AddOverlay ( const OverlayPtr ov,
bool  make_active = true 
)

add a new overlay

void ClearOverlays (  ) 

remove all overlays

virtual bool eventFilter ( QObject *  object,
QEvent *  event 
) [virtual]

event filter for DataViewerPanel

NormalizerPtr GetNormalizer (  )  const

retrieve used normalizer

OverlayManagerPtr GetOverlayManager (  )  const

return the overlay manager for this viewer

Extent GetSelection (  )  const

return currently active selection

virtual void OnPanelMouseEvent ( QMouseEvent *  e  )  [virtual]

internal use

void OnSlabChange ( int  slab  )  [slot]

void OnZoomChange ( int  zoomlevel  )  [slot]

void Recenter (  ) 

void Renormalize (  ) 

re-apply normalization using current normalizer

void SetAntialiasing ( bool  f  ) 

enable/disable antialiasing

void SetData ( const Data data  ) 

set new image or function to display

void SetName ( const String name  ) 

set the name, displayed as the window title

void UpdateView (  )  [slot]

update view


Friends And Related Function Documentation

friend class ost::gui::GostyApp [friend]

Definition at line 62 of file data_viewer.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