OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Protected Member Functions | Friends
DataViewer Class Reference

#include <data_viewer.hh>

Inherits MainWindow.

Public Slots

void UpdateView ()
 
void OnSlabChange (int slab)
 
void OnZoomChange (int zoomlevel)
 
- Public Slots inherited from MainWindow
void OnDockMenu (QAction *a)
 
void OnDockClose (QDockWidget *dock)
 

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)
 
- Public Member Functions inherited from MainWindow
 MainWindow (QWidget *parent=0, Qt::WindowFlags flags=0)
 
void AddDockWidget (QWidget *w, const QString &name, bool show=true, int area=2)
 
void RemoveDockWidget (QWidget *w)
 

Protected Member Functions

 DataViewer (QWidget *p, const ImageHandle &data, const QString &name="")
 
- Protected Member Functions inherited from MainWindow
QMenu * WindowMenu ()
 
const QMenu * WindowMenu () const
 

Friends

class ost::gui::GostyApp
 

Detailed Description

Data viewer.

Definition at line 65 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 67 of file data_viewer.hh.


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