4#include <QAbstractGraphicsShapeItem>
6class QGraphicsPolygonItem;
53 virtual QRectF boundingRect()
const;
54 virtual void paint(QPainter *painter,
55 const QStyleOptionGraphicsItem *option,
59 Image *image() {
return m_image; }
60 QGraphicsSimpleTextItem *getLabel()
const {
return m_label; }
63 bool contains(
const QPointF &)
const;
66 void scenePropertiesChanged() {
73 void mosaicCubeClosed(
Image *);
85 void lostCubeDisplay();
97 geos::geom::MultiPolygon *
m_mp;
102 void setupFootprint();
103 void drawImage(QPainter *painter,
const QStyleOptionGraphicsItem *option);
112 bool m_ignoreCubeDisplayChanged;
114 QGraphicsSimpleTextItem *m_label;
This represents a cube in a project-based GUI interface.
void updateChildren()
This applies the displayProperties and selectability.
geos::geom::MultiPolygon * m_180mp
This item's multipolygon in the -180/180 longitude domain.
MosaicSceneItem & operator=(const MosaicSceneItem &)
cannot assign
~MosaicSceneItem()
Mosaic Item destructor.
geos::geom::MultiPolygon * m_mp
This item's multipolygon in the 0/360 longitude domain.
void cubeDisplayChanged()
Someone changed something in the cube display properties, re-read the whole thing.
Stretch * getStretch()
This gets a Stretch object that will work for the cubeDisplay converting from DN to screen pixel.
void drawImage(QPainter *painter, const QStyleOptionGraphicsItem *option)
This method reads in and draws the image associated with this item.
MosaicSceneItem(const MosaicSceneItem &)
cannot copy
void updateSelection(bool)
Update the selected state.
virtual bool sceneEvent(QEvent *event)
This filters out events that happen within our polygons.
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
The user right clicked on us (or otherwise requested a context menu).
MosaicSceneItem(Image *image, MosaicSceneWidget *parent)
MosaicSceneItem constructor.
void reproject()
Called anytime the user reprojects the cube.
double getPixelValue(int sample, int line)
Returns the pixel value at the given sample/line.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Re-paints the item.
void onCloseCube()
Emits a signal when Close Cube is selected from the context menu.
bool contains(const QPointF &) const
Test if we contain the point.
Base class for Map Projections.
Contains multiple PvlContainers.
This is free and unencumbered software released into the public domain.
This is free and unencumbered software released into the public domain.