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)

Signals

void released ()

Public Member Functions

virtual ~DataViewer ()
void SetData (const ImageHandle &data)
const ImageHandleGetData () const
NormalizerPtr GetNormalizer () const
void Renormalize ()
void Recenter ()
Extent GetSelection () const
void SetSelection (const Extent &selection)
void SetName (const String &name)
int AddOverlay (const OverlayPtr &ov, bool make_active=true)
void ClearOverlays ()
void ClearActiveOverlay ()
OverlayManagerPtr GetOverlayManager () const
virtual void OnPanelMouseEvent (QMouseEvent *e)
void SetAntialiasing (bool f)
virtual bool eventFilter (QObject *object, QEvent *event)
void SetSlab (int slab)
int GetSlab () const
void SetZoomScale (Real zoomscale)
Real GetZoomScale () const
void SetViewerMin (Real min)
Real GetViewerMin () const
void SetViewerMax (Real max)
Real GetViewerMax () const
void SetGamma (Real gamma)
Real GetGamma () const
void SetInvert (bool invert)
bool GetInvert () const
void SetOffset (const geom::Vec2 &offset)
geom::Vec2 GetOffset () const
QButtonGroup * GetButtonGroup (void)

Protected Member Functions

 DataViewer (QWidget *p, const ImageHandle &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 ImageHandle 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 ClearActiveOverlay (  ) 

remove the active overlay

void ClearOverlays (  ) 

remove all overlays

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

event filter for DataViewerPanel

QButtonGroup* GetButtonGroup ( void   ) 
const ImageHandle& GetData (  )  const

get the current displayed image

Real GetGamma (  )  const

get viewer gamma

bool GetInvert (  )  const

get invert flag

NormalizerPtr GetNormalizer (  )  const

retrieve used normalizer

geom::Vec2 GetOffset (  )  const

get image offset

OverlayManagerPtr GetOverlayManager (  )  const

return the overlay manager for this viewer

Extent GetSelection (  )  const

return currently active selection

int GetSlab (  )  const

get z slab

Real GetViewerMax (  )  const

get maximum level of the viewer (e.g. the value that will be displayed as white)

Real GetViewerMin (  )  const

get minimum level of the viewer (e.g. the value that will be displayed as black)

Real GetZoomScale (  )  const

get zoom scale (range: 1e-8 to 1e8)

virtual void OnPanelMouseEvent ( QMouseEvent *  e  )  [virtual]

internal use

void OnSlabChange ( int  slab  )  [slot]
void OnZoomChange ( int  zoomlevel  )  [slot]
void Recenter (  ) 
void released (  )  [signal]
void Renormalize (  ) 

re-apply normalization using current normalizer

void SetAntialiasing ( bool  f  ) 

enable/disable antialiasing

void SetData ( const ImageHandle data  ) 

set new image or function to display

void SetGamma ( Real  gamma  ) 

set viewer gamma

void SetInvert ( bool  invert  ) 

set invert flag

void SetName ( const String name  ) 

set the name, displayed as the window title

void SetOffset ( const geom::Vec2 offset  ) 

set image offset

void SetSelection ( const Extent selection  ) 

set currently active selection

void SetSlab ( int  slab  ) 

set z slab

void SetViewerMax ( Real  max  ) 

set maximum level of the viewer (e.g. the value that will be displayed as white)

void SetViewerMin ( Real  min  ) 

set minimum level of the viewer (e.g. the value that will be displayed as black)

void SetZoomScale ( Real  zoomscale  ) 

set zoom scale (range: 1e-8 to 1e8)

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:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 10 Nov 2016 for OpenStructure by  doxygen 1.6.1