7 #ifndef __FWGUIQT_SLICESELECTOR_HPP__ 8 #define __FWGUIQT_SLICESELECTOR_HPP__ 10 #include "fwGuiQt/config.hpp" 12 #include <boost/function.hpp> 43 FWGUIQT_API
SliceSelector( QWidget*
const parent =
nullptr) noexcept;
48 FWGUIQT_API
void setSliceRange(
int min,
int max );
50 FWGUIQT_API
void setSliceValue(
int index );
52 FWGUIQT_API
void setTypeSelection(
int type );
54 FWGUIQT_API
void setEnable(
bool enable);
56 typedef std::function<void (int) > ChangeIndexCallback;
57 FWGUIQT_API
void setChangeIndexCallback(ChangeIndexCallback fct);
59 typedef std::function<void (int) > ChangeTypeCallback;
60 FWGUIQT_API
void setChangeTypeCallback(ChangeTypeCallback fct);
78 QPointer< QComboBox > m_sliceType;
81 QPointer< QSlider > m_sliceIndex;
82 QPointer< QLineEdit > m_pSliceIndexText;
84 void printIndex(
int index);
85 void printType(
int type);
87 ChangeIndexCallback m_fctChangeIndexCallback;
88 ChangeTypeCallback m_fctChangeTypeCallback;
93 #endif // __FWGUIQT_SLICESELECTOR_HPP__ FWGUIQT_API void onSliceIndexChange(int value) noexcept
Event handler for a slice index change.
virtual FWGUIQT_API ~SliceSelector() noexcept
Destructor.
The namespace fwGuiQt contains classes which provide the implementation of the Gui using Qt library...
FWGUIQT_API void onSliceTypeChange(int index)
Event handler for a slice type change.
A qt panel used to control a VTK 2D Negatoscope view.
FWGUIQT_API SliceSelector(QWidget *const parent=nullptr) noexcept
Constructor.