25 #ifndef IMAGEMANAGERDIALOG_QO_H
26 #define IMAGEMANAGERDIALOG_QO_H
29 #include <display/QtViewer/ImageManager/ImageManagerDialog.ui.h>
36 template <
class T>
class ImageInterface;
41 class DisplayOptionsDialog;
45 class DisplayDataHolder;
46 class ColormapDefinition;
62 std::shared_ptr<DisplayDataHolder> displayed,
63 std::shared_ptr<DisplayDataHolder>
allImages );
79 bool autoRegister,
bool masterCoordinate,
80 bool masterSaturation,
bool masterHue );
86 int insertionIndex,
bool registered,
87 bool masterCoordinate,
bool masterSaturation,
126 bool masterCoordinate );
141 double* intensityMin,
double* intensityMax );
153 double colorMin,
double colorMax,
double intensityMin,
double intensityMax );
168 Ui::ImageManagerDialogClass
ui;
177 #endif // IMAGEMANAGERDIALOG_QO_H
std::shared_ptr< DisplayDataHolder > displayedImages
Holds the registered images.
void updateAllButtons()
Enable/disable the "all" buttons based on how many images are registered, unregistered, open.
void ddOpened(const casacore::String &path, const casacore::String &dataType, const casacore::String &displayType, int insertionIndex, bool registered, bool masterCoordinate, bool masterSaturation, bool masterHue)
const casacore::String SINGLE_COLOR_MAP
Displays properties of an image for manipulation such as color and display type.
ImageView::ColorCombinationMode getColorCombinationMode() const
void masterImageSelected(QtDisplayData *image)
Image Tracker Interface Internally, a new master image has been selected.
Colormap * generateColorMap(QColor baseColor)
Generate a color map based on a single base color (RGB mode).
ImageManagerDialog operator=(const ImageManagerDialog &other)
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 d...
ImageManagerDialog(QWidget *parent=0)
void unregisterDD(QtDisplayData *dd)
void displayTypeChanged(ImageView *changedView)
The ImageView has changed types (raster, contour, vector, etc)
void ddClosed(QtDisplayData *&dd)
void masterImageChanged(QtDisplayData *newMaster)
A new image has been designated as the master image for setting the coordinate system.
Allows users to manipulate the images loaded in the viewer.
ColormapDefinition * generateSaturationMap(QColor baseColor)
Helper method which generates a color definition based on a single color.
bool getIntensityMinMax(std::shared_ptr< casacore::ImageInterface< float > > img, double *intensityMin, double *intensityMax)
Coloring Returns the transparency to use when combining images.
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.
void registerDD(QtDisplayData *dd, int position)
void masterCoordinateChanged(QtDisplayData *oldMaster, QtDisplayData *newMaster)
Emitted when a new master image for setting the coordinate system has been selected.
void createRGBImage(QtDisplayData *coordinateMaster, QtDisplayData *redImage, QtDisplayData *greenImage, QtDisplayData *blueImage)
void closeImageView(QtDisplayData *image)
const casacore::String MASTER_COLOR_MAP
std::string path(const std::string &name)
void closeAll()
Close/register/unregister.
void setViewedImage(int registrationIndex)
Sets the image that is currently being viewed (on the Animator).
void closeImage(QtDisplayData *image, bool coordinateMaster)
Interface class designed to reduce the coupling between the GUI class, ImageManager and the DisplayDa...
void animateToImage(int index)
Ui::ImageManagerDialogClass ui
void colorRestrictionsChanged()
User has changed the color method for combining multiple images (RGB,Hue/Saturation,etc)
void reorderDisplayImages(QtDisplayData *displayData, int dropIndex, bool registered, bool masterCoordinate)
The user has reordered the images in the display.
Opens up a dialog showing the display options that can be tweaked for a particular images...
std::shared_ptr< DisplayDataHolder > allImages
Holds the open images.
Describes a method of generating a table of colors.
DisplayOptionsDialog * displayOptionsDialog
Dialog containing display options for a particular display data.
bool applyMasterColor(QString &errorMessage)
Attempts to set a master hue color map into all of the images.
ImageScroll * imageScroll
void applyColorChanges()
Apply the color changes the user has specified.
float getColorFraction(float value, double minValue, double maxValue)
String: the storage and methods of handling collections of characters.
void registrationChange(ImageView *imageView)
void showDataDisplayOptions(QtDisplayData *)
Opens the display data options panel for the specific display data.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
void initializeScrollArea()
Initialization.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.
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.