bioformats  5.1.3
Public Slots | Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
ome::qtwidgets::NavigationDock2D Class Reference

2D dock widget for plane nagivation. More...

#include <ome/qtwidgets/NavigationDock2D.h>

+ Inheritance diagram for ome::qtwidgets::NavigationDock2D:
+ Collaboration diagram for ome::qtwidgets::NavigationDock2D:

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::FormatReaderreader
 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].
 

Detailed Description

2D dock widget for plane nagivation.

Sliders will be created for each usable dimension, including for Modulo annotations.

Constructor & Destructor Documentation

ome::qtwidgets::NavigationDock2D::NavigationDock2D ( QWidget *  parent = 0)

Create a 2D navigation view.

The size and position will be taken from the specified image.

Parameters
parentthe parent of this object.

Enable widgets.

References labels, reader, series, setReader(), sliderChangedDimension(), sliderChangedPlane(), sliders, spinBoxChangedDimension(), spinBoxChangedPlane(), and spinboxes.

Member Function Documentation

ome::bioformats::dimension_size_type ome::qtwidgets::NavigationDock2D::plane ( ) const

Get the current plane for the series.

Returns
the current plane.

References currentPlane.

Referenced by setPlane().

+ Here is the caller graph for this function:

void ome::qtwidgets::NavigationDock2D::planeChanged ( ome::bioformats::dimension_size_type  plane)
signal

Signal change of plane.

Parameters
planethe new image plane.

Referenced by setPlane().

+ Here is the caller graph for this function:

void ome::qtwidgets::NavigationDock2D::setPlane ( ome::bioformats::dimension_size_type  plane)
slot

Set the current plane for the series.

Parameters
planethe image plane.

References currentPlane, plane(), planeChanged(), reader, series, sliders, and spinboxes.

Referenced by setReader(), sliderChangedDimension(), sliderChangedPlane(), spinBoxChangedDimension(), and spinBoxChangedPlane().

+ Here is the caller graph for this function:

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.

Parameters
readerthe image reader.
seriesthe image series.
planethe image plane.

References labels, reader, series, setPlane(), sliders, and spinboxes.

Referenced by NavigationDock2D().

+ Here is the caller graph for this function:

void ome::qtwidgets::NavigationDock2D::sliderChangedDimension ( int  dim)
privateslot

Update the current plane number (from dimension slider).

Parameters
dimthe index of the dimension slider.

References reader, series, setPlane(), and sliders.

Referenced by NavigationDock2D().

+ Here is the caller graph for this function:

void ome::qtwidgets::NavigationDock2D::sliderChangedPlane ( int  plane)
privateslot

Update the current plane number (from slider).

Parameters
planethe new image plane.

References setPlane().

Referenced by NavigationDock2D().

+ Here is the caller graph for this function:

void ome::qtwidgets::NavigationDock2D::spinBoxChangedDimension ( int  dim)
privateslot

Update the current plane number (from dimension spinbox).

Parameters
dimthe index of the dimension spinbox.

References reader, series, setPlane(), and spinboxes.

Referenced by NavigationDock2D().

+ Here is the caller graph for this function:

void ome::qtwidgets::NavigationDock2D::spinBoxChangedPlane ( int  plane)
privateslot

Update the current plane number (from spinbox).

Parameters
planethe new image plane.

References setPlane().

Referenced by NavigationDock2D().

+ Here is the caller graph for this function:


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