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

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

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

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

◆ 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: