4 #include <QAbstractGraphicsShapeItem>
6 class QGraphicsPolygonItem;
17 class MosaicSceneWidget;
21 class UniversalGroundMap;
51 virtual QRectF boundingRect()
const;
52 virtual void paint(QPainter *painter,
53 const QStyleOptionGraphicsItem *option,
57 Image *image() {
return m_image; }
58 QGraphicsSimpleTextItem *getLabel()
const {
return m_label; }
61 bool contains(
const QPointF &)
const;
64 void scenePropertiesChanged() {
82 void lostCubeDisplay();
93 geos::geom::MultiPolygon *
m_mp;
98 void setupFootprint();
99 void drawImage(QPainter *painter,
const QStyleOptionGraphicsItem *option);
108 bool m_ignoreCubeDisplayChanged;
110 QGraphicsSimpleTextItem *m_label;
MosaicSceneItem(Image *image, MosaicSceneWidget *parent)
MosaicSceneItem constructor.
void updateSelection(bool)
Update the selected state.
void reproject()
Called anytime the user reprojects the cube.
geos::geom::MultiPolygon * m_180mp
This item's multipolygon in the -180/180 longitude domain.
geos::geom::MultiPolygon * m_mp
This item's multipolygon in the 0/360 longitude domain.
void drawImage(QPainter *painter, const QStyleOptionGraphicsItem *option)
This method reads in and draws the image associated with this item.
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
The user right clicked on us (or otherwise requested a context menu).
This represents a cube in a project-based GUI interface.
bool contains(const QPointF &) const
Test if we contain the point.
MosaicSceneItem & operator=(const MosaicSceneItem &)
cannot assign
virtual bool sceneEvent(QEvent *event)
This filters out events that happen within our polygons.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Re-paints the item.
Stretch * getStretch()
This gets a Stretch object that will work for the cubeDisplay converting from DN to screen pixel...
~MosaicSceneItem()
Mosaic Item destructor.
double getPixelValue(int sample, int line)
Returns the pixel value at the given sample/line.
void updateChildren()
This applies the displayProperties and selectability.
void cubeDisplayChanged()
Someone changed something in the cube display properties, re-read the whole thing.
A single cube in the mosaic scene.