Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

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

◆ 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

The user right clicked on us (or otherwise requested a context menu).

Give it to them.

References Isis::ImageList::append(), Isis::Directory::project(), Isis::Directory::supportedActions(), and Isis::ImageList::supportedActions().

◆ cubeDisplayChanged

void Isis::MosaicSceneItem::cubeDisplayChanged ( )
slot

Someone changed something in the cube display properties, re-read the whole thing.

References reproject(), Isis::ImageDisplayProperties::ShowLabel, and updateSelection().

Referenced by MosaicSceneItem().

◆ getLabel()

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

◆ image()

◆ mosaicCubeClosed

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

References MosaicSceneItem().

◆ paint()

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

Re-paints the item.

Parameters
painter
option
widget

References Isis::ImageDisplayProperties::ShowDNs.

◆ reproject()

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::TProjection::Has180Domain(), Isis::TProjection::SetGround(), Isis::ImageDisplayProperties::ShowLabel, Isis::PolygonTools::To180(), Isis::Projection::XCoord(), and Isis::Projection::YCoord().

Referenced by cubeDisplayChanged().

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

Update the selected state.

Parameters
saveTrue if we need to write to the DisplayProperties, false if we need to read from them.

References Isis::ImageDisplayProperties::Selected.

Referenced by cubeDisplayChanged().


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