casa
5.7.0-16
|
Allows users to manipulate the images loaded in the viewer. More...
#include <ImageManagerDialog.qo.h>
Public Slots | |
void | displayTypeChanged (ImageView *changedView) |
The ImageView has changed types (raster, contour, vector, etc) More... | |
Signals | |
void | ddClosed (QtDisplayData *&dd) |
void | ddOpened (const casacore::String &path, const casacore::String &dataType, const casacore::String &displayType, int insertionIndex, bool registered, bool masterCoordinate, bool masterSaturation, bool masterHue) |
void | registerAll () |
void | unregisterAll () |
void | registerDD (QtDisplayData *dd, int position) |
void | unregisterDD (QtDisplayData *dd) |
void | masterCoordinateChanged (QtDisplayData *oldMaster, QtDisplayData *newMaster) |
Emitted when a new master image for setting the coordinate system has been selected. More... | |
void | animateToImage (int index) |
void | createRGBImage (QtDisplayData *coordinateMaster, QtDisplayData *redImage, QtDisplayData *greenImage, QtDisplayData *blueImage) |
Public Member Functions | |
ImageManagerDialog (QWidget *parent=0) | |
void | setImageHolders (std::shared_ptr< ImageManagerDialog > holder, std::shared_ptr< DisplayDataHolder > displayed, std::shared_ptr< DisplayDataHolder > allImages) |
Sets the containers which are the sources for display data, both registered and open. More... | |
void | setViewedImage (int registrationIndex) |
Sets the image that is currently being viewed (on the Animator). More... | |
void | closeImageView (QtDisplayData *image) |
~ImageManagerDialog () | |
void | masterImageSelected (QtDisplayData *image) |
Image Tracker InterfaceInternally, a new master image has been selected. More... | |
void | imageAdded (QtDisplayData *image, int position, bool autoRegister, bool masterCoordinate, bool masterSaturation, bool masterHue) |
Adds an image to the manager when a new one is opened. More... | |
Public Member Functions inherited from casa::ImageTracker | |
ImageTracker () | |
virtual | ~ImageTracker () |
Private Slots | |
void | showDataDisplayOptions (QtDisplayData *) |
Opens the display data options panel for the specific display data. More... | |
void | applyColorChanges () |
Apply the color changes the user has specified. More... | |
void | colorRestrictionsChanged () |
User has changed the color method for combining multiple images (RGB,Hue/Saturation,etc) More... | |
void | closeAll () |
Close/register/unregister. More... | |
void | registerImages () |
void | unregisterImages () |
void | registrationChange (ImageView *imageView) |
void | closeImage (QtDisplayData *image, bool coordinateMaster) |
void | masterImageChanged (QtDisplayData *newMaster) |
A new image has been designated as the master image for setting the coordinate system. More... | |
void | reorderDisplayImages (QtDisplayData *displayData, int dropIndex, bool registered, bool masterCoordinate) |
The user has reordered the images in the display. More... | |
Private Member Functions | |
ImageManagerDialog (const ImageManagerDialog &other) | |
ImageManagerDialog | operator= (const ImageManagerDialog &other) |
void | initializeScrollArea () |
Initialization. More... | |
bool | getIntensityMinMax (std::shared_ptr< casacore::ImageInterface< float > > img, double *intensityMin, double *intensityMax) |
Coloring Returns the transparency to use when combining images. More... | |
Colormap * | generateColorMap (QColor baseColor) |
Generate a color map based on a single base color (RGB mode). More... | |
ColormapDefinition * | generateSaturationMap (QColor baseColor) |
Helper method which generates a color definition based on a single color. More... | |
bool | applyMasterColor (QString &errorMessage) |
Attempts to set a master hue color map into all of the images. More... | |
Colormap * | generateMasterDefinition (ColormapDefinition *baseMap, double colorMin, double colorMax, double intensityMin, double intensityMax) |
Worker method that remaps a baseMap with a baseIntensityMin and baseIntensityMap to a new color map definition with intensityMin and intensityMax. More... | |
float | getColorFraction (float value, double minValue, double maxValue) |
ImageView::ColorCombinationMode | getColorCombinationMode () const |
void | updateAllButtons () |
Enable/disable the "all" buttons based on how many images are registered, unregistered, open. More... | |
Private Attributes | |
DisplayOptionsDialog * | displayOptionsDialog |
Dialog containing display options for a particular display data. More... | |
std::shared_ptr < DisplayDataHolder > | allImages |
Holds the open images. More... | |
std::shared_ptr < DisplayDataHolder > | displayedImages |
Holds the registered images. More... | |
Ui::ImageManagerDialogClass | ui |
ImageScroll * | imageScroll |
const casacore::String | SINGLE_COLOR_MAP |
const casacore::String | MASTER_COLOR_MAP |
const int | COLOR_MAP_SIZE |
Allows users to manipulate the images loaded in the viewer.
Includes the ability to reorder images, change color display properties for multiple images, etc. Please see CAS-4081 for details.
Definition at line 54 of file ImageManagerDialog.qo.h.
casa::ImageManagerDialog::ImageManagerDialog | ( | QWidget * | parent = 0 | ) |
casa::ImageManagerDialog::~ImageManagerDialog | ( | ) |
|
private |
|
signal |
|
privateslot |
Apply the color changes the user has specified.
|
private |
Attempts to set a master hue color map into all of the images.
Used in hue/saturation mode.
|
privateslot |
Close/register/unregister.
|
privateslot |
void casa::ImageManagerDialog::closeImageView | ( | QtDisplayData * | image | ) |
|
privateslot |
User has changed the color method for combining multiple images (RGB,Hue/Saturation,etc)
|
signal |
|
signal |
|
signal |
|
slot |
The ImageView has changed types (raster, contour, vector, etc)
|
private |
Generate a color map based on a single base color (RGB mode).
|
private |
Worker method that remaps a baseMap with a baseIntensityMin and baseIntensityMap to a new color map definition with intensityMin and intensityMax.
Used in hue/saturation mode.
|
private |
Helper method which generates a color definition based on a single color.
|
private |
|
private |
|
private |
Coloring Returns the transparency to use when combining images.
float getTransparency() const; Get the min and max intensity of the image.
|
virtual |
Adds an image to the manager when a new one is opened.
Implements casa::ImageTracker.
|
private |
Initialization.
|
signal |
Emitted when a new master image for setting the coordinate system has been selected.
|
privateslot |
A new image has been designated as the master image for setting the coordinate system.
|
virtual |
Implements casa::ImageTracker.
|
private |
|
signal |
|
signal |
|
privateslot |
|
privateslot |
|
privateslot |
The user has reordered the images in the display.
void casa::ImageManagerDialog::setImageHolders | ( | std::shared_ptr< ImageManagerDialog > | holder, |
std::shared_ptr< DisplayDataHolder > | displayed, | ||
std::shared_ptr< DisplayDataHolder > | allImages | ||
) |
Sets the containers which are the sources for display data, both registered and open.
void casa::ImageManagerDialog::setViewedImage | ( | int | registrationIndex | ) |
Sets the image that is currently being viewed (on the Animator).
Allows the image manager to indicate the current image on the display.
|
privateslot |
Opens the display data options panel for the specific display data.
|
signal |
|
signal |
|
privateslot |
|
private |
Enable/disable the "all" buttons based on how many images are registered, unregistered, open.
|
private |
Holds the open images.
Definition at line 164 of file ImageManagerDialog.qo.h.
|
private |
Definition at line 172 of file ImageManagerDialog.qo.h.
|
private |
Holds the registered images.
Definition at line 167 of file ImageManagerDialog.qo.h.
|
private |
Dialog containing display options for a particular display data.
Definition at line 162 of file ImageManagerDialog.qo.h.
|
private |
Definition at line 169 of file ImageManagerDialog.qo.h.
|
private |
Definition at line 171 of file ImageManagerDialog.qo.h.
|
private |
Definition at line 170 of file ImageManagerDialog.qo.h.
|
private |
Definition at line 168 of file ImageManagerDialog.qo.h.