bioformats
5.1.8
|
2D dock widget for plane nagivation. More...
#include <ome/qtwidgets/NavigationDock2D.h>
Public Slots | |
void | setPlane (ome::bioformats::dimension_size_type plane) |
Set the current plane for the series. More... | |
Signals | |
void | planeChanged (ome::bioformats::dimension_size_type plane) |
Signal change of plane. More... | |
Public Member Functions | |
NavigationDock2D (QWidget *parent=0) | |
Create a 2D navigation view. More... | |
~NavigationDock2D () | |
Destructor. | |
void | setReader (ome::compat::shared_ptr< ome::bioformats::FormatReader > reader, ome::bioformats::dimension_size_type series=0, ome::bioformats::dimension_size_type plane=0) |
Set reader, including current series and plane position. More... | |
ome::bioformats::dimension_size_type | plane () const |
Get the current plane for the series. More... | |
Private Slots | |
void | sliderChangedPlane (int plane) |
Update the current plane number (from slider). More... | |
void | spinBoxChangedPlane (int plane) |
Update the current plane number (from spinbox). More... | |
void | sliderChangedDimension (int dim) |
Update the current plane number (from dimension slider). More... | |
void | spinBoxChangedDimension (int dim) |
Update the current plane number (from dimension spinbox). More... | |
Private Attributes | |
ome::compat::shared_ptr< ome::bioformats::FormatReader > | reader |
The image reader. | |
ome::bioformats::dimension_size_type | series |
The image series. | |
ome::bioformats::dimension_size_type | currentPlane |
The image plane. | |
QLabel * | labels [7] |
Slider labels [NZTCmZmTmC]. | |
QSlider * | sliders [7] |
Sliders [NZTCmZmTmC]. | |
QSpinBox * | spinboxes [7] |
Numeric entries [NZTCmZmTmC]. | |
2D dock widget for plane nagivation.
Sliders will be created for each usable dimension, including for Modulo annotations.
ome::qtwidgets::NavigationDock2D::NavigationDock2D | ( | QWidget * | parent = 0 | ) |
Create a 2D navigation view.
The size and position will be taken from the specified image.
parent | the parent of this object. |
Enable widgets.
References labels, reader, series, setReader(), sliderChangedDimension(), sliderChangedPlane(), sliders, spinBoxChangedDimension(), spinBoxChangedPlane(), and spinboxes.
ome::bioformats::dimension_size_type ome::qtwidgets::NavigationDock2D::plane | ( | ) | const |
Get the current plane for the series.
References currentPlane.
Referenced by setPlane().
|
signal |
Signal change of plane.
plane | the new image plane. |
Referenced by setPlane().
|
slot |
Set the current plane for the series.
plane | the image plane. |
References currentPlane, plane(), planeChanged(), reader, series, sliders, and spinboxes.
Referenced by setReader(), sliderChangedDimension(), sliderChangedPlane(), spinBoxChangedDimension(), and spinBoxChangedPlane().
void ome::qtwidgets::NavigationDock2D::setReader | ( | ome::compat::shared_ptr< ome::bioformats::FormatReader > | reader, |
ome::bioformats::dimension_size_type | series = 0 , |
||
ome::bioformats::dimension_size_type | plane = 0 |
||
) |
Set reader, including current series and plane position.
reader | the image reader. |
series | the image series. |
plane | the image plane. |
References labels, reader, series, setPlane(), sliders, and spinboxes.
Referenced by NavigationDock2D().
|
privateslot |
Update the current plane number (from dimension slider).
dim | the index of the dimension slider. |
References reader, series, setPlane(), and sliders.
Referenced by NavigationDock2D().
|
privateslot |
Update the current plane number (from slider).
plane | the new image plane. |
References setPlane().
Referenced by NavigationDock2D().
|
privateslot |
Update the current plane number (from dimension spinbox).
dim | the index of the dimension spinbox. |
References reader, series, setPlane(), and spinboxes.
Referenced by NavigationDock2D().
|
privateslot |
Update the current plane number (from spinbox).
plane | the new image plane. |
References setPlane().
Referenced by NavigationDock2D().