4 #include <QAbstractGraphicsShapeItem> 6 class QGraphicsPolygonItem;
17 class MosaicSceneWidget;
21 class UniversalGroundMap;
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;
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.
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.
MosaicSceneItem & operator=(const MosaicSceneItem &)
cannot assign
Namespace for ISIS/Bullet specific routines.
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.