Isis 3.0
Home
Isis::MosaicSceneItem Class Reference

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

#include <MosaicSceneItem.h>

Inherits QGraphicsObject.

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 > &)
 

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

Isis::MosaicSceneItem::~MosaicSceneItem ( )

Mosaic Item destructor.

Member Function Documentation

QRectF Isis::MosaicSceneItem::boundingRect ( ) const
virtual
void Isis::MosaicSceneItem::changed ( const QList< QRectF > &  _t1)
signal
QColor Isis::MosaicSceneItem::color ( ) const
void Isis::MosaicSceneItem::colorChanged ( )
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().

void Isis::MosaicSceneItem::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  event)
protectedvirtual
void Isis::MosaicSceneItem::cubeDisplayChanged ( )
slot
QGraphicsSimpleTextItem* Isis::MosaicSceneItem::getLabel ( ) const
inline
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.

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

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

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