OpenStructure
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=Qt::WindowFlags())
 
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

◆ ~DataViewer()

virtual ~DataViewer ( )
virtual

◆ DataViewer()

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

initialize with data to view, plus a name

Member Function Documentation

◆ AddOverlay()

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

add a new overlay

◆ ClearActiveOverlay()

void ClearActiveOverlay ( )

remove the active overlay

◆ ClearOverlays()

void ClearOverlays ( )

remove all overlays

◆ eventFilter()

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

event filter for DataViewerPanel

◆ GetButtonGroup()

QButtonGroup* GetButtonGroup ( void  )

◆ GetData()

const ImageHandle& GetData ( ) const

get the current displayed image

◆ GetGamma()

Real GetGamma ( ) const

get viewer gamma

◆ GetInvert()

bool GetInvert ( ) const

get invert flag

◆ GetNormalizer()

NormalizerPtr GetNormalizer ( ) const

retrieve used normalizer

◆ GetOffset()

geom::Vec2 GetOffset ( ) const

get image offset

◆ GetOverlayManager()

OverlayManagerPtr GetOverlayManager ( ) const

return the overlay manager for this viewer

◆ GetSelection()

Extent GetSelection ( ) const

return currently active selection

◆ GetSlab()

int GetSlab ( ) const

get z slab

◆ GetViewerMax()

Real GetViewerMax ( ) const

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

◆ GetViewerMin()

Real GetViewerMin ( ) const

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

◆ GetZoomScale()

Real GetZoomScale ( ) const

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

◆ OnPanelMouseEvent()

virtual void OnPanelMouseEvent ( QMouseEvent *  e)
virtual

internal use

◆ OnSlabChange

void OnSlabChange ( int  slab)
slot

◆ OnZoomChange

void OnZoomChange ( int  zoomlevel)
slot

◆ Recenter()

void Recenter ( )

◆ released

void released ( )
signal

◆ Renormalize()

void Renormalize ( )

re-apply normalization using current normalizer

◆ SetAntialiasing()

void SetAntialiasing ( bool  f)

enable/disable antialiasing

◆ SetData()

void SetData ( const ImageHandle data)

set new image or function to display

◆ SetGamma()

void SetGamma ( Real  gamma)

set viewer gamma

◆ SetInvert()

void SetInvert ( bool  invert)

set invert flag

◆ SetName()

void SetName ( const String name)

set the name, displayed as the window title

◆ SetOffset()

void SetOffset ( const geom::Vec2 offset)

set image offset

◆ SetSelection()

void SetSelection ( const Extent selection)

set currently active selection

◆ SetSlab()

void SetSlab ( int  slab)

set z slab

◆ SetViewerMax()

void SetViewerMax ( Real  max)

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

◆ SetViewerMin()

void SetViewerMin ( Real  min)

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

◆ SetZoomScale()

void SetZoomScale ( Real  zoomscale)

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

◆ UpdateView

void UpdateView ( )
slot

update view

Friends And Related Function Documentation

◆ ost::gui::GostyApp

friend class ost::gui::GostyApp
friend

Definition at line 69 of file data_viewer.hh.


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