Isis Developer Reference
Isis::MosaicSceneItem Class Reference

A single cube in the mosaic scene. More...

#include <MosaicSceneItem.h>

Inheritance diagram for Isis::MosaicSceneItem:
Inheritance graph
Collaboration diagram for Isis::MosaicSceneItem:
Collaboration graph

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
 
Imageimage ()
 
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).
 

Detailed Description

A single cube in the mosaic scene.

Author
????-??-?? Stacy Alley

Constructor & Destructor Documentation

◆ MosaicSceneItem()

◆ ~MosaicSceneItem()

Isis::MosaicSceneItem::~MosaicSceneItem ( )

Mosaic Item destructor.

Member Function Documentation

◆ boundingRect()

QRectF Isis::MosaicSceneItem::boundingRect ( ) const
virtual

References boundingRect().

Referenced by boundingRect(), and reproject().

◆ changed

void Isis::MosaicSceneItem::changed ( const QList< QRectF > & )
signal

◆ color()

QColor Isis::MosaicSceneItem::color ( ) const

◆ colorChanged

void Isis::MosaicSceneItem::colorChanged ( )
signal

◆ contains()

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().

◆ contextMenuEvent()

void Isis::MosaicSceneItem::contextMenuEvent ( QGraphicsSceneContextMenuEvent * event)
protectedvirtual

◆ cubeDisplayChanged

void Isis::MosaicSceneItem::cubeDisplayChanged ( )
slot

◆ getLabel()

QGraphicsSimpleTextItem * Isis::MosaicSceneItem::getLabel ( ) const
inline

◆ image()

Image * Isis::MosaicSceneItem::image ( )
inline

Referenced by MosaicSceneItem().

◆ mosaicCubeClosed

void Isis::MosaicSceneItem::mosaicCubeClosed ( Image * )
signal

◆ paint()

void Isis::MosaicSceneItem::paint ( QPainter * painter,
const QStyleOptionGraphicsItem * option,
QWidget * widget = 0 )
virtual

Re-paints the item.

Parameters
painter
option
widget

References Isis::Image::displayProperties(), Isis::DisplayProperties::getValue(), and Isis::ImageDisplayProperties::ShowDNs.

◆ reproject()

void Isis::MosaicSceneItem::reproject ( )

◆ sceneEvent()

bool Isis::MosaicSceneItem::sceneEvent ( QEvent * event)
protectedvirtual

This filters out events that happen within our polygons.

This is necessary because usually events are filtered based on the bounding box alone.

Parameters
watched
event
Returns
bool

References contains().

◆ scenePropertiesChanged()

void Isis::MosaicSceneItem::scenePropertiesChanged ( )
inline

◆ updateSelection()

void Isis::MosaicSceneItem::updateSelection ( bool save)

The documentation for this class was generated from the following files: