Isis Developer Reference
|
A single cube in the mosaic scene. More...
#include <MosaicSceneItem.h>
Public Slots | |
void | cubeDisplayChanged () |
Someone changed something in the cube display properties, re-read the whole thing. | |
Signals | |
void | colorChanged () |
void | changed (const QList< QRectF > &) |
void | mosaicCubeClosed (Image *) |
Public Member Functions | |
MosaicSceneItem (Image *image, MosaicSceneWidget *parent) | |
MosaicSceneItem constructor. | |
~MosaicSceneItem () | |
Mosaic Item destructor. | |
virtual QRectF | boundingRect () const |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
Re-paints the item. | |
QColor | color () const |
Image * | image () |
QGraphicsSimpleTextItem * | getLabel () const |
void | reproject () |
Called anytime the user reprojects the cube. | |
bool | contains (const QPointF &) const |
Test if we contain the point. | |
void | updateSelection (bool) |
Update the selected state. | |
void | scenePropertiesChanged () |
Protected Member Functions | |
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). | |
A single cube in the mosaic scene.
Isis::MosaicSceneItem::MosaicSceneItem | ( | Image * | image, |
MosaicSceneWidget * | parent ) |
MosaicSceneItem constructor.
cubeFileName | |
parent |
References _FILEINFO_, Isis::DisplayProperties::addSupport(), Isis::ImageDisplayProperties::Color, cubeDisplayChanged(), Isis::DisplayProperties::displayName(), Isis::Image::displayProperties(), Isis::MosaicSceneWidget::getProjection(), image(), Isis::ImageDisplayProperties::Selected, Isis::ImageDisplayProperties::ShowDNs, Isis::ImageDisplayProperties::ShowFill, Isis::ImageDisplayProperties::ShowLabel, Isis::ImageDisplayProperties::ShowOutline, Isis::IException::User, Isis::MosaicSceneWidget::userHasTools(), Isis::ImageDisplayProperties::Zooming, and Isis::ImageDisplayProperties::ZOrdering.
Isis::MosaicSceneItem::~MosaicSceneItem | ( | ) |
Mosaic Item destructor.
|
virtual |
References boundingRect().
Referenced by boundingRect(), and reproject().
|
signal |
QColor Isis::MosaicSceneItem::color | ( | ) | const |
|
signal |
bool Isis::MosaicSceneItem::contains | ( | const QPointF & | p | ) | const |
Test if we contain the point.
Even though our rect is empty, return true if a child polygon contains it for toolTips and other events.
Referenced by sceneEvent().
|
protectedvirtual |
The user right clicked on us (or otherwise requested a context menu).
Give it to them.
References Isis::ImageList::append(), Isis::MosaicSceneWidget::directory(), Isis::DisplayProperties::displayName(), Isis::Image::displayProperties(), Isis::Directory::project(), Isis::Directory::supportedActions(), and Isis::ImageList::supportedActions().
|
slot |
Someone changed something in the cube display properties, re-read the whole thing.
References Isis::MosaicSceneWidget::blockSelectionChange(), Isis::Image::displayProperties(), Isis::DisplayProperties::getValue(), reproject(), Isis::ImageDisplayProperties::ShowLabel, and updateSelection().
Referenced by MosaicSceneItem().
|
inline |
|
inline |
Referenced by MosaicSceneItem().
|
signal |
|
virtual |
Re-paints the item.
painter | |
option | |
widget |
References Isis::Image::displayProperties(), Isis::DisplayProperties::getValue(), and Isis::ImageDisplayProperties::ShowDNs.
void Isis::MosaicSceneItem::reproject | ( | ) |
Called anytime the user reprojects the cube.
(Selects a new map file.) And everytime a mosaic item is created.
References boundingRect(), Isis::DisplayProperties::displayName(), Isis::Image::displayProperties(), Isis::MosaicSceneWidget::getProjection(), Isis::DisplayProperties::getValue(), Isis::ImageDisplayProperties::ShowLabel, and Isis::PolygonTools::To180().
Referenced by cubeDisplayChanged().
|
protectedvirtual |
This filters out events that happen within our polygons.
This is necessary because usually events are filtered based on the bounding box alone.
watched | |
event |
References contains().
|
inline |
Referenced by Isis::MosaicSceneWidget::setCubesSelectable().
void Isis::MosaicSceneItem::updateSelection | ( | bool | save | ) |
Update the selected state.
save | True if we need to write to the DisplayProperties, false if we need to read from them. |
References Isis::MosaicSceneWidget::blockSelectionChange(), Isis::Image::displayProperties(), Isis::DisplayProperties::getValue(), Isis::ImageDisplayProperties::Selected, and Isis::ImageDisplayProperties::setSelected().
Referenced by cubeDisplayChanged().