Displays properties of an image for manipulation such as color and display type. More...
#include <ImageView.qo.h>
Public Types | |
| enum | ColorCombinationMode { NO_COMBINATION, RGB, HUE_SATURATION } |
Signals | |
| void | imageSelected (ImageView *) |
| Register/unregister has changed. | |
| void | displayTypeChanged (ImageView *dd) |
| Raster/Contour/Vector has changed. | |
| void | showDataDisplayOptions (QtDisplayData *imageData) |
| User has requested to view the display properties of this data. | |
| void | close (ImageView *imageToClose) |
| Close the image. | |
| void | masterCoordinateImageSelected (ImageView *imageView) |
| This imageView has become the master coordinate image. | |
| void | masterHueImageSelected (ImageView *imageView) |
| This ImageView has become the master hue image. | |
| void | masterSaturationImageSelected (ImageView *imageView) |
| This ImageView has become the master saturation image. | |
| void | masterCoordinateImageClear () |
| There will be no master coordinate image. | |
| void | viewImage (ImageView *imageToView) |
| An image has been selected to view on the image animator. | |
Public Member Functions | |
| ImageView (QtDisplayData *data, QWidget *parent=0) | |
| QString | getName () const |
| Accessors. | |
| QtDisplayData * | getData () const |
| QString | getDataDisplayTypeName () const |
| bool | isRegistered () const |
| bool | isMasterHue () const |
| bool | isMasterSaturation () const |
| bool | isMasterCoordinate () const |
| bool | isEmpty () const |
| bool | isRaster () const |
| QColor | getDisplayedColor () const |
| void | setRegistered (bool selected) |
| Setters. | |
| void | setColorCombinationMode (ColorCombinationMode mode) |
| void | setMasterCoordinateImage (bool masterImage) |
| void | setMasterHueImage (bool masterImage) |
| void | setMasterSaturationImage (bool masterImage) |
| void | setViewedImage (bool viewed) |
| Sets whether or not this is the image currently being viewed on the animator. | |
| void | setDisplayedColor (QColor color) |
| void | setData (QtDisplayData *other) |
| bool | isControlEligible () const |
| Returns whether or not the data is eligible to set the coordinate system for the display. | |
| virtual QSize | minimumSizeHint () const |
| virtual | ~ImageView () |
Static Public Attributes | |
| static const QString | DROP_ID |
Protected Member Functions | |
| virtual void | mouseMoveEvent (QMouseEvent *event) |
| Implemented to support drag and drop. | |
Private Types | |
| enum | DisplayType { DISPLAY_RASTER, DISPLAY_CONTOUR, DISPLAY_VECTOR, DISPLAY_MARKER, DISPLAY_NONE } |
| enum | RestTypes { REST_FREQUENCY, REST_WAVELENGTH, REST_REDSHIFT } |
Private Slots | |
| void | restChanged () |
| Method of specifying "rest" has changed. | |
| void | restUnitsChanged () |
| void | openCloseDisplay () |
| Minimize/maximize the display. | |
| void | imageRegistrationChanged (bool selected) |
| Display data has changed register/unregister status. | |
| void | restFrequencyChanged () |
| User has changed the rest frequency. | |
| void | displayTypeChanged () |
| Change to raster/contour/vector/marker. | |
| void | rgbChanged () |
| Color this image will use in RGB mode has changed. | |
| void | showContextMenu (const QPoint &location) |
| User selected color for RGB mode has changed. | |
| void | showDataOptions () |
| Show a color dialog where the user can choose a custom color. | |
| void | resetRestFrequency () |
| Reset the rest frequency back to its original value. | |
Private Member Functions | |
| ImageView (const ImageView &other) | |
| void _resetSpectralUnit(); | |
| ImageView | operator= (const ImageView &other) |
| void | initDisplayLabels () |
| Initialization. | |
| void | initDisplayLabel (QWidget *holder, DisplayLabel *label) |
| void | initColorModeSettings () |
| void | initRestSettings () |
| void | initDisplayType () |
| void | setTitle () |
| double | wavelengthFrequencyConversion (double value, QString oldUnits, QString newUnits) const |
| Conversion. | |
| bool | isCategoryMatch (const QString &newUnits, const QString &oldUnits) const |
| void | setBackgroundColor (QColor color) |
| Background color. | |
| QColor | getBackgroundColor () const |
| void | minimizeDisplay () |
| Opening/closing. | |
| void | maximizeDisplay () |
| void | saveSnapshot () |
| Snapshots. | |
| void | restoreSnapshot () |
| QImage * | makeDragImage () |
| Drag and drop. | |
| void | makeDrag (QMouseEvent *event) |
| void | _sendRestFrequencyChange (String comboStr) |
| Resetting the original rest frequency. | |
| QString | updateRestUI (String &restStr) |
| void | updateFreqUnitCombo () |
| void | selectRestUnits (const QString &restUnits) |
| void | rgbModeChanged () |
| Custom color for RGB image combination void setButtonColor( QColor color ); QColor getButtonColor() const;. | |
| bool | isViewed () const |
| bool | isRGBImage () const |
Private Attributes | |
| QMap< DisplayType, QString > | displayTypeMap |
| DisplayType | storedDisplay |
| RestTypes | restType |
| QString | restUnits |
| QAction | viewAction |
| Available context menu choices. | |
| QAction | closeAction |
| QAction | masterCoordinateSystemAction |
| QAction | masterCoordinateSystemUndoAction |
| QAction | masterHueAction |
| QAction | masterSaturationAction |
| QAction | rasterAction |
| QAction | contourAction |
| QMenu | contextMenu |
| QColor | normalColor |
| Regular background or master coordinate image background. | |
| QColor | masterCoordinateColor |
| QtDisplayData * | imageData |
| QButtonGroup * | displayGroup |
| DisplayLabel * | displayTypeLabel |
| Indicators of which display properties apply to this image view. | |
| DisplayLabel * | coordinateMasterLabel |
| DisplayLabel * | hueMasterLabel |
| DisplayLabel * | saturationMasterLabel |
| QSpacerItem * | spacerFirst |
| QSpacerItem * | spacerLast |
| ColorCombinationMode | colorMode |
| Method used to combine images using colors. | |
| Record | displayOptionsSnapshot |
| bool | empty |
| QStringList | frequencyUnits |
| Rest frequency. | |
| QStringList | wavelengthUnits |
| const String | REST_FREQUENCY_KEY |
| const String | VALUE_KEY |
| const String SPECTRAL_UNIT_KEY; | |
| int | minimumSize |
| Opening/closing. | |
| const int | SIZE_COLLAPSED |
| const int | SIZE_EXPANDED |
| String | originalFreq |
| Store original rest frequney value & units. | |
| const int | VIEWED_BORDER_SIZE |
| String spectralUnit;. | |
| const int | NOT_VIEWED_BORDER_SIZE |
| Ui::ImageViewClass | ui |
Displays properties of an image for manipulation such as color and display type.
Definition at line 48 of file ImageView.qo.h.
Definition at line 53 of file ImageView.qo.h.
enum casa::ImageView::DisplayType [private] |
Definition at line 187 of file ImageView.qo.h.
enum casa::ImageView::RestTypes [private] |
Definition at line 191 of file ImageView.qo.h.
| casa::ImageView::ImageView | ( | QtDisplayData * | data, | |
| QWidget * | parent = 0 | |||
| ) |
| virtual casa::ImageView::~ImageView | ( | ) | [virtual] |
| casa::ImageView::ImageView | ( | const ImageView & | other | ) | [private] |
void _resetSpectralUnit();
| void casa::ImageView::_sendRestFrequencyChange | ( | String | comboStr | ) | [private] |
Resetting the original rest frequency.
| void casa::ImageView::close | ( | ImageView * | imageToClose | ) | [signal] |
Close the image.
| void casa::ImageView::displayTypeChanged | ( | ) | [private, slot] |
Change to raster/contour/vector/marker.
| void casa::ImageView::displayTypeChanged | ( | ImageView * | dd | ) | [signal] |
Raster/Contour/Vector has changed.
| QColor casa::ImageView::getBackgroundColor | ( | ) | const [private] |
| QtDisplayData* casa::ImageView::getData | ( | ) | const |
| QString casa::ImageView::getDataDisplayTypeName | ( | ) | const |
| QColor casa::ImageView::getDisplayedColor | ( | ) | const |
| QString casa::ImageView::getName | ( | ) | const |
Accessors.
| void casa::ImageView::imageRegistrationChanged | ( | bool | selected | ) | [private, slot] |
Display data has changed register/unregister status.
| void casa::ImageView::imageSelected | ( | ImageView * | ) | [signal] |
Register/unregister has changed.
| void casa::ImageView::initColorModeSettings | ( | ) | [private] |
| void casa::ImageView::initDisplayLabel | ( | QWidget * | holder, | |
| DisplayLabel * | label | |||
| ) | [private] |
| void casa::ImageView::initDisplayLabels | ( | ) | [private] |
Initialization.
| void casa::ImageView::initDisplayType | ( | ) | [private] |
| void casa::ImageView::initRestSettings | ( | ) | [private] |
| bool casa::ImageView::isCategoryMatch | ( | const QString & | newUnits, | |
| const QString & | oldUnits | |||
| ) | const [private] |
| bool casa::ImageView::isControlEligible | ( | ) | const |
Returns whether or not the data is eligible to set the coordinate system for the display.
| bool casa::ImageView::isEmpty | ( | ) | const |
| bool casa::ImageView::isMasterCoordinate | ( | ) | const |
| bool casa::ImageView::isMasterHue | ( | ) | const |
| bool casa::ImageView::isMasterSaturation | ( | ) | const |
| bool casa::ImageView::isRaster | ( | ) | const |
| bool casa::ImageView::isRegistered | ( | ) | const |
| bool casa::ImageView::isRGBImage | ( | ) | const [private] |
| bool casa::ImageView::isViewed | ( | ) | const [private] |
| void casa::ImageView::makeDrag | ( | QMouseEvent * | event | ) | [private] |
| QImage* casa::ImageView::makeDragImage | ( | ) | [private] |
Drag and drop.
| void casa::ImageView::masterCoordinateImageClear | ( | ) | [signal] |
There will be no master coordinate image.
| void casa::ImageView::masterCoordinateImageSelected | ( | ImageView * | imageView | ) | [signal] |
This imageView has become the master coordinate image.
| void casa::ImageView::masterHueImageSelected | ( | ImageView * | imageView | ) | [signal] |
This ImageView has become the master hue image.
| void casa::ImageView::masterSaturationImageSelected | ( | ImageView * | imageView | ) | [signal] |
This ImageView has become the master saturation image.
| void casa::ImageView::maximizeDisplay | ( | ) | [private] |
| void casa::ImageView::minimizeDisplay | ( | ) | [private] |
Opening/closing.
| virtual QSize casa::ImageView::minimumSizeHint | ( | ) | const [virtual] |
| virtual void casa::ImageView::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Implemented to support drag and drop.
| void casa::ImageView::openCloseDisplay | ( | ) | [private, slot] |
Minimize/maximize the display.
| void casa::ImageView::resetRestFrequency | ( | ) | [private, slot] |
Reset the rest frequency back to its original value.
| void casa::ImageView::restChanged | ( | ) | [private, slot] |
Method of specifying "rest" has changed.
| void casa::ImageView::restFrequencyChanged | ( | ) | [private, slot] |
User has changed the rest frequency.
| void casa::ImageView::restoreSnapshot | ( | ) | [private] |
| void casa::ImageView::restUnitsChanged | ( | ) | [private, slot] |
| void casa::ImageView::rgbChanged | ( | ) | [private, slot] |
Color this image will use in RGB mode has changed.
| void casa::ImageView::rgbModeChanged | ( | ) | [private] |
Custom color for RGB image combination void setButtonColor( QColor color ); QColor getButtonColor() const;.
| void casa::ImageView::saveSnapshot | ( | ) | [private] |
Snapshots.
| void casa::ImageView::selectRestUnits | ( | const QString & | restUnits | ) | [private] |
| void casa::ImageView::setBackgroundColor | ( | QColor | color | ) | [private] |
Background color.
Master image used to set the coordinate system is a slightly different color
| void casa::ImageView::setColorCombinationMode | ( | ColorCombinationMode | mode | ) |
| void casa::ImageView::setData | ( | QtDisplayData * | other | ) |
| void casa::ImageView::setDisplayedColor | ( | QColor | color | ) |
| void casa::ImageView::setMasterCoordinateImage | ( | bool | masterImage | ) |
| void casa::ImageView::setMasterHueImage | ( | bool | masterImage | ) |
| void casa::ImageView::setMasterSaturationImage | ( | bool | masterImage | ) |
| void casa::ImageView::setRegistered | ( | bool | selected | ) |
Setters.
| void casa::ImageView::setTitle | ( | ) | [private] |
| void casa::ImageView::setViewedImage | ( | bool | viewed | ) |
Sets whether or not this is the image currently being viewed on the animator.
| void casa::ImageView::showContextMenu | ( | const QPoint & | location | ) | [private, slot] |
User selected color for RGB mode has changed.
void otherColorChanged(); Display the context menu.
| void casa::ImageView::showDataDisplayOptions | ( | QtDisplayData * | imageData | ) | [signal] |
User has requested to view the display properties of this data.
| void casa::ImageView::showDataOptions | ( | ) | [private, slot] |
Show a color dialog where the user can choose a custom color.
void showColorDialog(); Show the display options for this image view.
| void casa::ImageView::updateFreqUnitCombo | ( | ) | [private] |
| QString casa::ImageView::updateRestUI | ( | String & | restStr | ) | [private] |
| void casa::ImageView::viewImage | ( | ImageView * | imageToView | ) | [signal] |
An image has been selected to view on the image animator.
| double casa::ImageView::wavelengthFrequencyConversion | ( | double | value, | |
| QString | oldUnits, | |||
| QString | newUnits | |||
| ) | const [private] |
Conversion.
QAction casa::ImageView::closeAction [private] |
Definition at line 197 of file ImageView.qo.h.
Method used to combine images using colors.
Definition at line 222 of file ImageView.qo.h.
QMenu casa::ImageView::contextMenu [private] |
Definition at line 204 of file ImageView.qo.h.
QAction casa::ImageView::contourAction [private] |
Definition at line 203 of file ImageView.qo.h.
Definition at line 215 of file ImageView.qo.h.
QButtonGroup* casa::ImageView::displayGroup [private] |
Definition at line 211 of file ImageView.qo.h.
Record casa::ImageView::displayOptionsSnapshot [private] |
Definition at line 223 of file ImageView.qo.h.
DisplayLabel* casa::ImageView::displayTypeLabel [private] |
Indicators of which display properties apply to this image view.
Definition at line 214 of file ImageView.qo.h.
QMap<DisplayType,QString> casa::ImageView::displayTypeMap [private] |
Definition at line 188 of file ImageView.qo.h.
const QString casa::ImageView::DROP_ID [static] |
Definition at line 85 of file ImageView.qo.h.
bool casa::ImageView::empty [private] |
Definition at line 224 of file ImageView.qo.h.
QStringList casa::ImageView::frequencyUnits [private] |
Rest frequency.
Definition at line 227 of file ImageView.qo.h.
DisplayLabel* casa::ImageView::hueMasterLabel [private] |
Definition at line 216 of file ImageView.qo.h.
QtDisplayData* casa::ImageView::imageData [private] |
Definition at line 210 of file ImageView.qo.h.
QColor casa::ImageView::masterCoordinateColor [private] |
Definition at line 208 of file ImageView.qo.h.
QAction casa::ImageView::masterCoordinateSystemAction [private] |
Definition at line 198 of file ImageView.qo.h.
QAction casa::ImageView::masterCoordinateSystemUndoAction [private] |
Definition at line 199 of file ImageView.qo.h.
QAction casa::ImageView::masterHueAction [private] |
Definition at line 200 of file ImageView.qo.h.
QAction casa::ImageView::masterSaturationAction [private] |
Definition at line 201 of file ImageView.qo.h.
int casa::ImageView::minimumSize [private] |
Opening/closing.
Definition at line 234 of file ImageView.qo.h.
QColor casa::ImageView::normalColor [private] |
Regular background or master coordinate image background.
Definition at line 207 of file ImageView.qo.h.
const int casa::ImageView::NOT_VIEWED_BORDER_SIZE [private] |
Definition at line 243 of file ImageView.qo.h.
String casa::ImageView::originalFreq [private] |
Store original rest frequney value & units.
Definition at line 239 of file ImageView.qo.h.
QAction casa::ImageView::rasterAction [private] |
Definition at line 202 of file ImageView.qo.h.
const String casa::ImageView::REST_FREQUENCY_KEY [private] |
Definition at line 229 of file ImageView.qo.h.
RestTypes casa::ImageView::restType [private] |
Definition at line 192 of file ImageView.qo.h.
QString casa::ImageView::restUnits [private] |
Definition at line 193 of file ImageView.qo.h.
Definition at line 217 of file ImageView.qo.h.
const int casa::ImageView::SIZE_COLLAPSED [private] |
Definition at line 235 of file ImageView.qo.h.
const int casa::ImageView::SIZE_EXPANDED [private] |
Definition at line 236 of file ImageView.qo.h.
QSpacerItem* casa::ImageView::spacerFirst [private] |
Definition at line 218 of file ImageView.qo.h.
QSpacerItem* casa::ImageView::spacerLast [private] |
Definition at line 219 of file ImageView.qo.h.
DisplayType casa::ImageView::storedDisplay [private] |
Definition at line 189 of file ImageView.qo.h.
Ui::ImageViewClass casa::ImageView::ui [private] |
Definition at line 246 of file ImageView.qo.h.
const String casa::ImageView::VALUE_KEY [private] |
const String SPECTRAL_UNIT_KEY;
Definition at line 231 of file ImageView.qo.h.
QAction casa::ImageView::viewAction [private] |
Available context menu choices.
Definition at line 196 of file ImageView.qo.h.
const int casa::ImageView::VIEWED_BORDER_SIZE [private] |
String spectralUnit;.
Definition at line 242 of file ImageView.qo.h.
QStringList casa::ImageView::wavelengthUnits [private] |
Definition at line 228 of file ImageView.qo.h.
1.6.1