casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
casa::ImageManagerDialog Class Reference

Allows users to manipulate the images loaded in the viewer. More...

#include <ImageManagerDialog.qo.h>

Inheritance diagram for casa::ImageManagerDialog:
casa::ImageTracker

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 Interface

Internally, 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...
 
ColormapgenerateColorMap (QColor baseColor)
 Generate a color map based on a single base color (RGB mode). More...
 
ColormapDefinitiongenerateSaturationMap (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...
 
ColormapgenerateMasterDefinition (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

DisplayOptionsDialogdisplayOptionsDialog
 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
 
ImageScrollimageScroll
 
const casacore::String SINGLE_COLOR_MAP
 
const casacore::String MASTER_COLOR_MAP
 
const int COLOR_MAP_SIZE
 

Detailed Description

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.

Constructor & Destructor Documentation

casa::ImageManagerDialog::ImageManagerDialog ( QWidget *  parent = 0)
casa::ImageManagerDialog::~ImageManagerDialog ( )
casa::ImageManagerDialog::ImageManagerDialog ( const ImageManagerDialog other)
private

Member Function Documentation

void casa::ImageManagerDialog::animateToImage ( int  index)
signal
void casa::ImageManagerDialog::applyColorChanges ( )
privateslot

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 ( )
privateslot

Close/register/unregister.

void casa::ImageManagerDialog::closeImage ( QtDisplayData image,
bool  coordinateMaster 
)
privateslot
void casa::ImageManagerDialog::closeImageView ( QtDisplayData image)
void casa::ImageManagerDialog::colorRestrictionsChanged ( )
privateslot

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 casacore::String path,
const casacore::String dataType,
const casacore::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 ( std::shared_ptr< casacore::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)
privateslot

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 ( )
privateslot
void casa::ImageManagerDialog::registrationChange ( ImageView imageView)
privateslot
void casa::ImageManagerDialog::reorderDisplayImages ( QtDisplayData displayData,
int  dropIndex,
bool  registered,
bool  masterCoordinate 
)
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.

void casa::ImageManagerDialog::showDataDisplayOptions ( QtDisplayData )
privateslot

Opens the display data options panel for the specific display data.

void casa::ImageManagerDialog::unregisterAll ( )
signal
void casa::ImageManagerDialog::unregisterDD ( QtDisplayData dd)
signal
void casa::ImageManagerDialog::unregisterImages ( )
privateslot
void casa::ImageManagerDialog::updateAllButtons ( )
private

Enable/disable the "all" buttons based on how many images are registered, unregistered, open.

Member Data Documentation

std::shared_ptr<DisplayDataHolder> casa::ImageManagerDialog::allImages
private

Holds the open images.

Definition at line 164 of file ImageManagerDialog.qo.h.

const int casa::ImageManagerDialog::COLOR_MAP_SIZE
private

Definition at line 172 of file ImageManagerDialog.qo.h.

std::shared_ptr<DisplayDataHolder> casa::ImageManagerDialog::displayedImages
private

Holds the registered images.

Definition at line 167 of file ImageManagerDialog.qo.h.

DisplayOptionsDialog* casa::ImageManagerDialog::displayOptionsDialog
private

Dialog containing display options for a particular display data.

Definition at line 162 of file ImageManagerDialog.qo.h.

ImageScroll* casa::ImageManagerDialog::imageScroll
private

Definition at line 169 of file ImageManagerDialog.qo.h.

const casacore::String casa::ImageManagerDialog::MASTER_COLOR_MAP
private

Definition at line 171 of file ImageManagerDialog.qo.h.

const casacore::String casa::ImageManagerDialog::SINGLE_COLOR_MAP
private

Definition at line 170 of file ImageManagerDialog.qo.h.

Ui::ImageManagerDialogClass casa::ImageManagerDialog::ui
private

Definition at line 168 of file ImageManagerDialog.qo.h.


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