Isis Developer Reference
ImageTreeWidgetItem.h
Go to the documentation of this file.
1 #ifndef ImageTreeWidgetItem_H
2 #define ImageTreeWidgetItem_H
3 
4 #include <QObject>
5 #include <QTreeWidgetItem>
6 
7 
8 namespace Isis {
9  class Image;
10  class ImageList;
11 
20  class ImageTreeWidgetItem : public QObject, public QTreeWidgetItem {
21  Q_OBJECT
22  public:
24  QTreeWidget *parent = 0);
25  virtual ~ImageTreeWidgetItem();
26 
27  Image *image();
28  QString imageListName() const;
29 
30  void forgetImage();
31 
32  void update(bool save);
33 
34  // This is the column number for each column
35  enum TreeColumn {
41 
50 
52  };
53 
54  static QString treeColumnToString(TreeColumn);
55 
56  using QTreeWidgetItem::parent;
57 
58  public slots:
60 
61  private:
62  void setColumnValue(TreeColumn column, double value);
63  bool operator<(const QTreeWidgetItem &other) const;
64 
65  Image *m_image;
66  ImageList *m_imageList;
67 
68  Qt::CheckState toCheck(QVariant);
69  };
70 }
71 
72 #endif
73 
Isis::ImageDisplayProperties::setSelected
void setSelected(bool)
Change the selected state associated with this cube.
Definition: ImageDisplayProperties.cpp:82
FileName.h
Isis::ImageDisplayProperties::ShowOutline
@ ShowOutline
True if the cube should be outlined (bool)
Definition: ImageDisplayProperties.h:105
Table.h
Isis::ImageTreeWidgetItem::forgetImage
void forgetImage()
Definition: ImageTreeWidgetItem.cpp:69
Cube.h
Isis::ImageTreeWidgetItem::PhaseAngleColumn
@ PhaseAngleColumn
Definition: ImageTreeWidgetItem.h:45
Isis::ImageTreeWidgetItem
Definition: ImageTreeWidgetItem.h:20
Isis::ImageTreeWidget::enqueueReadDisplayProperties
void enqueueReadDisplayProperties(ImageTreeWidgetItem *)
Definition: ImageTreeWidget.cpp:214
Isis::Image::lineResolution
double lineResolution() const
Get the line resolution of this image, as calculated and attached by camstats.
Definition: Image.cpp:485
Isis::ImageTreeWidgetItem::OutlineColumn
@ OutlineColumn
Definition: ImageTreeWidgetItem.h:38
SpecialPixel.h
Isis::ImageTreeWidgetItem::EmissionAngleColumn
@ EmissionAngleColumn
Definition: ImageTreeWidgetItem.h:43
Isis::ImageTreeWidgetItem::LabelColumn
@ LabelColumn
Definition: ImageTreeWidgetItem.h:40
ImageTreeWidgetItem.h
Isis::ImageTreeWidgetItem::BlankColumn
@ BlankColumn
Definition: ImageTreeWidgetItem.h:51
Isis::ImageTreeWidgetItem::ImageColumn
@ ImageColumn
Definition: ImageTreeWidgetItem.h:39
ImageDisplayProperties.h
QTreeWidget
QTreeWidgetItem
Isis::DisplayProperties::addSupport
void addSupport(int property)
Call this with every property you support, otherwise they will not communicate properly between widge...
Definition: DisplayProperties.cpp:108
Isis::ImageDisplayProperties::Selected
@ Selected
The selection state of this cube (bool)
Definition: ImageDisplayProperties.h:97
Image.h
Isis::ImageTreeWidgetItem::treeColumnToString
static QString treeColumnToString(TreeColumn)
Definition: ImageTreeWidgetItem.cpp:143
Isis::Image::phaseAngle
Angle phaseAngle() const
Get the phase angle of this image, as calculated and attached by camstats.
Definition: Image.cpp:515
Isis::ImageTreeWidgetItem::~ImageTreeWidgetItem
virtual ~ImageTreeWidgetItem()
Definition: ImageTreeWidgetItem.cpp:55
Isis::ImageDisplayProperties::ShowLabel
@ ShowLabel
True if the cube should show its display name (bool)
Definition: ImageDisplayProperties.h:103
Isis::IsSpecial
bool IsSpecial(const double d)
Returns if the input pixel is special.
Definition: SpecialPixel.h:197
Isis::ImageTreeWidgetItem::onDisplayPropertiesChanged
void onDisplayPropertiesChanged()
Definition: ImageTreeWidgetItem.cpp:182
Isis::ImageTreeWidgetItem::LineResolutionColumn
@ LineResolutionColumn
Definition: ImageTreeWidgetItem.h:48
Isis::Image::resolution
double resolution() const
Get the resolution of this image, as calculated and attached by camstats.
Definition: Image.cpp:455
Isis::ImageList
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
Isis::ImageTreeWidgetItem::IncidenceAngleColumn
@ IncidenceAngleColumn
Definition: ImageTreeWidgetItem.h:44
Isis::ImageDisplayProperties::setShowDNs
void setShowDNs(bool)
Change the visibility of DNs associated with this cube.
Definition: ImageDisplayProperties.cpp:90
Isis::ImageTreeWidgetItem::AspectRatioColumn
@ AspectRatioColumn
Definition: ImageTreeWidgetItem.h:46
Isis::DisplayProperties::supports
bool supports(int property)
Support may come later, please make sure you are connected to the supportAdded signal.
Definition: DisplayProperties.cpp:122
Isis::ImageTreeWidgetItem::update
void update(bool save)
Definition: ImageTreeWidgetItem.cpp:74
Isis::Image::aspectRatio
double aspectRatio() const
Get the aspect ratio of this image, as calculated and attached by camstats.
Definition: Image.cpp:436
Isis::Image::northAzimuth
Angle northAzimuth() const
Get the north azimuth of this image, as calculated and attached by camstats.
Definition: Image.cpp:505
Isis::ImageTreeWidgetItem::TreeColumn
TreeColumn
Definition: ImageTreeWidgetItem.h:35
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
ImageTreeWidget.h
Isis::ImageDisplayProperties::Color
@ Color
The color of the cube, default randomized (QColor)
Definition: ImageDisplayProperties.h:95
DisplayProperties.h
Isis::DisplayProperties::displayName
QString displayName() const
Returns the display name.
Definition: DisplayProperties.cpp:88
Isis::ImageList::name
QString name() const
Get the human-readable name of this image list.
Definition: ImageList.cpp:724
ImageList.h
Isis::Image::sampleResolution
double sampleResolution() const
Get the sample resolution of this image, as calculated and attached by camstats.
Definition: Image.cpp:525
Isis::Image
This represents a cube in a project-based GUI interface.
Definition: Image.h:107
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::ImageTreeWidgetItem::NorthAzimuthColumn
@ NorthAzimuthColumn
Definition: ImageTreeWidgetItem.h:49
Isis::ImageTreeWidgetItem::image
Image * image()
Definition: ImageTreeWidgetItem.cpp:59
Isis::Image::displayProperties
ImageDisplayProperties * displayProperties()
Get the display (GUI) properties (information) associated with this image.
Definition: Image.cpp:320
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
IException.h
Isis::IException::Programmer
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
Isis::ImageTreeWidgetItem::ImageTreeWidgetItem
ImageTreeWidgetItem(ImageList *imageList, Image *image, QTreeWidget *parent=0)
ImageTreeWidget constructor.
Definition: ImageTreeWidgetItem.cpp:26
Isis::ImageDisplayProperties::ShowFill
@ ShowFill
True if the cube should show a fill area if possible (bool)
Definition: ImageDisplayProperties.h:101
Angle.h
Isis::Angle::degrees
double degrees() const
Get the angle in units of Degrees.
Definition: Angle.h:232
Isis::ImageTreeWidget
Definition: ImageTreeWidget.h:42
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
Isis::ImageTreeWidgetItem::NameColumn
@ NameColumn
Definition: ImageTreeWidgetItem.h:36
Isis::Image::incidenceAngle
Angle incidenceAngle() const
Get the incidence angle of this image, as calculated and attached by camstats.
Definition: Image.cpp:475
Isis::Image::emissionAngle
Angle emissionAngle() const
Get the emission angle of this image, as calculated and attached by camstats.
Definition: Image.cpp:465
Isis::DisplayProperties::getValue
QVariant getValue(int property) const
Get a property's associated data.
Definition: DisplayProperties.cpp:147
Isis::ImageTreeWidgetItem::SampleResolutionColumn
@ SampleResolutionColumn
Definition: ImageTreeWidgetItem.h:47
Isis::ImageTreeWidgetItem::imageListName
QString imageListName() const
Definition: ImageTreeWidgetItem.cpp:64
Isis::ImageTreeWidgetItem::FootprintColumn
@ FootprintColumn
Definition: ImageTreeWidgetItem.h:37
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::ImageTreeWidgetItem::ResolutionColumn
@ ResolutionColumn
Definition: ImageTreeWidgetItem.h:42
Isis::ImageDisplayProperties
This is the GUI communication mechanism for cubes.
Definition: ImageDisplayProperties.h:85