Isis 3 Programmer Reference
ImageDisplayProperties.h
Go to the documentation of this file.
1 #ifndef ImageDisplayProperties_H
2 #define ImageDisplayProperties_H
3 
26 #include <QObject>
27 #include <QMetaType> // required since we're adding to QVariant
28 #include <QColor> // required since QColor is in a slot
29 
30 #include "DisplayProperties.h"
31 
32 class QAction;
33 class QBitArray;
34 class QXmlStreamWriter;
35 
36 namespace Isis {
37  class Cube;
38  class FileName;
39  class Project;
40  class Pvl;
41  class PvlObject;
42  class UniversalGroundMap;
43  class XmlStackedHandlerReader;
44 
86  Q_OBJECT
87  public:
91  enum Property {
93  None = 0,
95  Color = 1,
97  Selected = 2,
99  ShowDNs = 4,
101  ShowFill = 8,
103  ShowLabel = 16,
107  Zooming = 64, // This is here for qmos' benefit. It is necessary.
109  ZOrdering = 128, // This is here for qmos' benefit. It is necessary.
113  };
114 
115  ImageDisplayProperties(QString displayName, QObject *parent = NULL);
116  ImageDisplayProperties(XmlStackedHandlerReader *xmlReader, QObject *parent = NULL);
117  virtual ~ImageDisplayProperties();
118 
119  static QColor randomColor();
120 
121  signals:
123  void moveUpOne();
125  void moveToTop();
126 
128  void moveDownOne();
130  void moveToBottom();
131 
133  void zoomFit();
134 
135  public slots:
136  void setColor(QColor newColor);
137  void setShowDNs(bool);
138  void setShowFill(bool);
139  void setShowLabel(bool);
140  void setShowOutline(bool);
141  void setSelected(bool);
142 
143  private:
146 
147  };
148 }
149 
151 
152 #endif
153 
Isis::ImageDisplayProperties::zoomFit
void zoomFit()
Fit in window.
Isis::Color
This class is designed to serialize QColor in a human-readable form.
Definition: Color.h:26
Isis::ImageDisplayProperties::setSelected
void setSelected(bool)
Change the selected state associated with this cube.
Definition: ImageDisplayProperties.cpp:82
Isis::ImageDisplayProperties::ShowOutline
@ ShowOutline
True if the cube should be outlined (bool)
Definition: ImageDisplayProperties.h:105
Isis::ImageDisplayProperties::FootprintViewProperties
@ FootprintViewProperties
Every display property for footprint views, provided for convenience.
Definition: ImageDisplayProperties.h:111
Isis::ImageDisplayProperties::Zooming
@ Zooming
Data ignored. Tells if the cube supports the zoomFit action.
Definition: ImageDisplayProperties.h:107
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::ImageDisplayProperties::randomColor
static QColor randomColor()
Creates and returns a random color for the intial color of the footprint polygon.
Definition: ImageDisplayProperties.cpp:54
Isis::ImageDisplayProperties::setColor
void setColor(QColor newColor)
Change the color associated with this cube.
Definition: ImageDisplayProperties.cpp:74
Isis::ImageDisplayProperties::None
@ None
Null display property for bit-flag purposes.
Definition: ImageDisplayProperties.h:93
Isis::ImageDisplayProperties::moveToBottom
void moveToBottom()
Z Order to bottom.
Isis::DisplayProperties
Definition: DisplayProperties.h:34
Isis::ImageDisplayProperties::Selected
@ Selected
The selection state of this cube (bool)
Definition: ImageDisplayProperties.h:97
Isis::ImageDisplayProperties::Property
Property
This is a list of properties and actions that are possible.
Definition: ImageDisplayProperties.h:91
Isis::ImageDisplayProperties::ShowLabel
@ ShowLabel
True if the cube should show its display name (bool)
Definition: ImageDisplayProperties.h:103
Isis::XmlStackedHandlerReader
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:30
Isis::ImageDisplayProperties::moveDownOne
void moveDownOne()
Z Order down one.
Isis::ImageDisplayProperties::moveUpOne
void moveUpOne()
Z Order up one.
Isis::ImageDisplayProperties::ZOrdering
@ ZOrdering
Data ignored. Tells if the cube supports the "move*" actions.
Definition: ImageDisplayProperties.h:109
Isis::ImageDisplayProperties::setShowDNs
void setShowDNs(bool)
Change the visibility of DNs associated with this cube.
Definition: ImageDisplayProperties.cpp:90
Isis::ImageDisplayProperties::ImageDisplayProperties
ImageDisplayProperties(QString displayName, QObject *parent=NULL)
ImageDisplayProperties constructor.
Definition: ImageDisplayProperties.cpp:26
Isis::DisplayProperties::displayName
QString displayName() const
Returns the display name.
Definition: DisplayProperties.cpp:88
Isis::ImageDisplayProperties::moveToTop
void moveToTop()
Z Order to top.
Isis::ImageDisplayProperties::ShowDNs
@ ShowDNs
True if the cube should show DN values if possible (bool)
Definition: ImageDisplayProperties.h:99
Isis::ImageDisplayProperties::setShowFill
void setShowFill(bool)
Change the visibility of the fill area associated with this cube.
Definition: ImageDisplayProperties.cpp:98
Isis::ImageDisplayProperties::ShowFill
@ ShowFill
True if the cube should show a fill area if possible (bool)
Definition: ImageDisplayProperties.h:101
Isis::ImageDisplayProperties::setShowOutline
void setShowOutline(bool)
Change the visibility of the outline associated with this cube.
Definition: ImageDisplayProperties.cpp:114
Isis::ImageDisplayProperties::setShowLabel
void setShowLabel(bool)
Change the visibility of the display name associated with this cube.
Definition: ImageDisplayProperties.cpp:106
QObject
QAction
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(Isis::PlotWindow *)
We have plot windows as QVariant data types, so here it's enabled.
Isis::ImageDisplayProperties
This is the GUI communication mechanism for cubes.
Definition: ImageDisplayProperties.h:85