25 #ifndef IMG_GUI_DATA_VIEWER_H
26 #define IMG_GUI_DATA_VIEWER_H
59 namespace img {
namespace gui {
62 class DataViewerPanel;
191 void show_current_window_menu(
void);
Defines lower and upper valid indices.
Manage shared instances of images.
int AddOverlay(const OverlayPtr &ov, bool make_active=true)
add a new overlay
QButtonGroup * GetButtonGroup(void)
Real GetZoomScale() const
get zoom scale (range: 1e-8 to 1e8)
void OnZoomChange(int zoomlevel)
virtual void OnPanelMouseEvent(QMouseEvent *e)
internal use
void UpdateView()
update view
NormalizerPtr GetNormalizer() const
retrieve used normalizer
void SetData(const ImageHandle &data)
set new image or function to display
virtual bool eventFilter(QObject *object, QEvent *event)
event filter for DataViewerPanel
void SetViewerMax(Real max)
set maximum level of the viewer (e.g. the value that will be displayed as white)
void OnSlabChange(int slab)
Real GetViewerMin() const
get minimum level of the viewer (e.g. the value that will be displayed as black)
void SetSlab(int slab)
set z slab
bool GetInvert() const
get invert flag
Real GetGamma() const
get viewer gamma
geom::Vec2 GetOffset() const
get image offset
Extent GetSelection() const
return currently active selection
int GetSlab() const
get z slab
void SetZoomScale(Real zoomscale)
set zoom scale (range: 1e-8 to 1e8)
void ClearOverlays()
remove all overlays
void ClearActiveOverlay()
remove the active overlay
void Renormalize()
re-apply normalization using current normalizer
void SetGamma(Real gamma)
set viewer gamma
Real GetViewerMax() const
get maximum level of the viewer (e.g. the value that will be displayed as white)
void SetOffset(const geom::Vec2 &offset)
set image offset
void SetAntialiasing(bool f)
enable/disable antialiasing
DataViewer(QWidget *p, const ImageHandle &data, const QString &name="")
initialize with data to view, plus a name
void SetName(const String &name)
set the name, displayed as the window title
void SetSelection(const Extent &selection)
set currently active selection
const ImageHandle & GetData() const
get the current displayed image
OverlayManagerPtr GetOverlayManager() const
return the overlay manager for this viewer
void SetViewerMin(Real min)
set minimum level of the viewer (e.g. the value that will be displayed as black)
void SetInvert(bool invert)
set invert flag
#define DLLEXPORT_OST_GUI
boost::shared_ptr< OverlayManager > OverlayManagerPtr
boost::shared_ptr< Overlay > OverlayPtr
boost::shared_ptr< NormalizerImpl > NormalizerPtr