Isis Developer Reference
ImageDisplayProperties.h
Go to the documentation of this file.
1#ifndef ImageDisplayProperties_H
2#define ImageDisplayProperties_H
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
32class QAction;
33class QBitArray;
34class QXmlStreamWriter;
35
36namespace Isis {
37 class Cube;
38 class FileName;
39 class Project;
40 class Pvl;
41 class PvlObject;
42 class UniversalGroundMap;
43
85 Q_OBJECT
86 public:
90 enum Property {
92 None = 0,
94 Color = 1,
106 Zooming = 64, // This is here for qmos' benefit. It is necessary.
108 ZOrdering = 128, // This is here for qmos' benefit. It is necessary.
112 };
113
114 ImageDisplayProperties(QString displayName, QObject *parent = NULL);
115 virtual ~ImageDisplayProperties();
116
117 static QColor randomColor();
118
119 signals:
121 void moveUpOne();
123 void moveToTop();
124
129
131 void zoomFit();
132
133 public slots:
134 void setColor(QColor newColor);
135 void setShowDNs(bool);
136 void setShowFill(bool);
137 void setShowLabel(bool);
138 void setShowOutline(bool);
139 void setSelected(bool);
140
141 private:
144
145 };
146}
147
148Q_DECLARE_METATYPE(QList<Isis::ImageDisplayProperties *>);
149
150#endif
151
Q_DECLARE_METATYPE(QList< Isis::ImageDisplayProperties * >)
This class is designed to serialize QColor in a human-readable form.
Definition Color.h:26
Definition DisplayProperties.h:32
QString displayName() const
Returns the display name.
Definition DisplayProperties.cpp:79
This is the GUI communication mechanism for cubes.
Definition ImageDisplayProperties.h:84
void setShowLabel(bool)
Change the visibility of the display name associated with this cube.
Definition ImageDisplayProperties.cpp:100
void setShowFill(bool)
Change the visibility of the fill area associated with this cube.
Definition ImageDisplayProperties.cpp:92
void setShowDNs(bool)
Change the visibility of DNs associated with this cube.
Definition ImageDisplayProperties.cpp:84
void moveToBottom()
Z Order to bottom.
Property
This is a list of properties and actions that are possible.
Definition ImageDisplayProperties.h:90
@ ShowLabel
True if the cube should show its display name (bool)
Definition ImageDisplayProperties.h:102
@ FootprintViewProperties
Every display property for footprint views, provided for convenience.
Definition ImageDisplayProperties.h:110
@ ShowFill
True if the cube should show a fill area if possible (bool)
Definition ImageDisplayProperties.h:100
@ ShowDNs
True if the cube should show DN values if possible (bool)
Definition ImageDisplayProperties.h:98
@ Selected
The selection state of this cube (bool)
Definition ImageDisplayProperties.h:96
@ None
Null display property for bit-flag purposes.
Definition ImageDisplayProperties.h:92
@ Zooming
Data ignored. Tells if the cube supports the zoomFit action.
Definition ImageDisplayProperties.h:106
@ ZOrdering
Data ignored. Tells if the cube supports the "move*" actions.
Definition ImageDisplayProperties.h:108
@ ShowOutline
True if the cube should be outlined (bool)
Definition ImageDisplayProperties.h:104
void setColor(QColor newColor)
Change the color associated with this cube.
Definition ImageDisplayProperties.cpp:68
void moveToTop()
Z Order to top.
virtual ~ImageDisplayProperties()
Definition ImageDisplayProperties.cpp:40
void setShowOutline(bool)
Change the visibility of the outline associated with this cube.
Definition ImageDisplayProperties.cpp:108
ImageDisplayProperties(QString displayName, QObject *parent=NULL)
ImageDisplayProperties constructor.
Definition ImageDisplayProperties.cpp:25
void moveDownOne()
Z Order down one.
void setSelected(bool)
Change the selected state associated with this cube.
Definition ImageDisplayProperties.cpp:76
static QColor randomColor()
Creates and returns a random color for the intial color of the footprint polygon.
Definition ImageDisplayProperties.cpp:48
void zoomFit()
Fit in window.
void moveUpOne()
Z Order up one.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16