|
OpenStructure
|
#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 ImageHandle & | GetData () 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 |
Data viewer.
Definition at line 65 of file data_viewer.hh.
|
virtual |
|
protected |
initialize with data to view, plus a name
| 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 |
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 |
internal use
|
slot |
|
slot |
| void Recenter | ( | ) |
|
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)
|
slot |
update view
|
friend |
Definition at line 67 of file data_viewer.hh.
1.8.5