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