4#include <QAbstractGraphicsShapeItem>
6class QGraphicsPolygonItem;
17 class MosaicSceneWidget;
21 class UniversalGroundMap;
54 virtual void paint(QPainter *painter,
55 const QStyleOptionGraphicsItem *option,
60 QGraphicsSimpleTextItem *
getLabel()
const {
return m_label; }
63 bool contains(
const QPointF &)
const;
85 void lostCubeDisplay();
92 void updateChildren();
97 geos::geom::MultiPolygon *m_mp;
98 geos::geom::MultiPolygon *m_180mp;
102 void setupFootprint();
103 void drawImage(QPainter *painter,
const QStyleOptionGraphicsItem *option);
105 double getPixelValue(
int sample,
int line);
112 bool m_ignoreCubeDisplayChanged;
114 QGraphicsSimpleTextItem *m_label;
This represents a cube in a project-based GUI interface.
Definition Image.h:107
A single cube in the mosaic scene.
Definition MosaicSceneItem.h:47
void mosaicCubeClosed(Image *)
virtual QRectF boundingRect() const
Definition MosaicSceneItem.cpp:113
~MosaicSceneItem()
Mosaic Item destructor.
Definition MosaicSceneItem.cpp:103
void cubeDisplayChanged()
Someone changed something in the cube display properties, re-read the whole thing.
Definition MosaicSceneItem.cpp:423
void scenePropertiesChanged()
Definition MosaicSceneItem.h:66
Image * image()
Definition MosaicSceneItem.h:59
QColor color() const
Definition MosaicSceneItem.cpp:413
void updateSelection(bool)
Update the selected state.
Definition MosaicSceneItem.cpp:516
void changed(const QList< QRectF > &)
QGraphicsSimpleTextItem * getLabel() const
Definition MosaicSceneItem.h:60
virtual bool sceneEvent(QEvent *event)
This filters out events that happen within our polygons.
Definition MosaicSceneItem.cpp:451
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
The user right clicked on us (or otherwise requested a context menu).
Definition MosaicSceneItem.cpp:556
MosaicSceneItem(Image *image, MosaicSceneWidget *parent)
MosaicSceneItem constructor.
Definition MosaicSceneItem.cpp:47
void reproject()
Called anytime the user reprojects the cube.
Definition MosaicSceneItem.cpp:189
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Re-paints the item.
Definition MosaicSceneItem.cpp:140
bool contains(const QPointF &) const
Test if we contain the point.
Definition MosaicSceneItem.cpp:494
Pixel value mapper.
Definition Stretch.h:58
Universal Ground Map.
Definition UniversalGroundMap.h:69
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16