|
Isis 3 Programmer Reference
|
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;
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Re-paints the item.
This is free and unencumbered software released into the public domain.
void cubeDisplayChanged()
Someone changed something in the cube display properties, re-read the whole thing.
MosaicSceneItem(const MosaicSceneItem &)
cannot copy
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
The user right clicked on us (or otherwise requested a context menu).
bool contains(const QPointF &) const
Test if we contain the point.
void reproject()
Called anytime the user reprojects the cube.
MosaicSceneItem & operator=(const MosaicSceneItem &)
cannot assign
MosaicSceneItem(Image *image, MosaicSceneWidget *parent)
MosaicSceneItem constructor.
void updateSelection(bool)
Update the selected state.
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.
void updateChildren()
This applies the displayProperties and selectability.
geos::geom::MultiPolygon * m_180mp
This item's multipolygon in the -180/180 longitude domain.
This represents a cube in a project-based GUI interface.
Stretch * getStretch()
This gets a Stretch object that will work for the cubeDisplay converting from DN to screen pixel.
double getPixelValue(int sample, int line)
Returns the pixel value at the given sample/line.
A single cube in the mosaic scene.
virtual bool sceneEvent(QEvent *event)
This filters out events that happen within our polygons.
void onCloseCube()
Emits a signal when Close Cube is selected from the context menu.
This is free and unencumbered software released into the public domain.
~MosaicSceneItem()
Mosaic Item destructor.