![]() |
Isis 3 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. More... | |
Signals | |
| void | colorChanged () |
| void | changed (const QList< QRectF > &) |
| void | mosaicCubeClosed (Image *) |
Public Member Functions | |
| MosaicSceneItem (Image *image, MosaicSceneWidget *parent) | |
| MosaicSceneItem constructor. More... | |
| ~MosaicSceneItem () | |
| Mosaic Item destructor. More... | |
| virtual QRectF | boundingRect () const |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
| Re-paints the item. More... | |
| QColor | color () const |
| Image * | image () |
| QGraphicsSimpleTextItem * | getLabel () const |
| void | reproject () |
| Called anytime the user reprojects the cube. More... | |
| bool | contains (const QPointF &) const |
| Test if we contain the point. More... | |
| void | updateSelection (bool) |
| Update the selected state. More... | |
| void | scenePropertiesChanged () |
Protected Member Functions | |
| virtual bool | sceneEvent (QEvent *event) |
| This filters out events that happen within our polygons. More... | |
| virtual void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) |
| The user right clicked on us (or otherwise requested a context menu). More... | |
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 |
Referenced by Isis::MosaicSceneWidget::cubesBoundingRect(), 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::ImageList::supportedActions(), and Isis::Directory::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 Isis::MosaicSceneWidget::contextMenuEvent(), Isis::MosaicSceneWidget::cubeFileNames(), Isis::MosaicSceneWidget::images(), MosaicSceneItem(), Isis::MosaicControlNetTool::mouseButtonRelease(), Isis::MosaicSceneWidget::save(), Isis::MosaicSceneWidget::selectedImages(), and Isis::MosaicSceneWidget::toPvl().
|
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::TProjection::Has180Domain(), Isis::TProjection::SetGround(), Isis::ImageDisplayProperties::ShowLabel, Isis::PolygonTools::To180(), Isis::Projection::XCoord(), and Isis::Projection::YCoord().
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().