Isis 3 Programmer Reference
Isis::GridGraphicsItem Class Reference

The visual display of the find point. More...

#include <GridGraphicsItem.h>

Inheritance diagram for Isis::GridGraphicsItem:
Inheritance graph
Collaboration diagram for Isis::GridGraphicsItem:
Collaboration graph

Public Member Functions

 GridGraphicsItem (Latitude baseLat, Longitude baseLon, Angle latInc, Angle lonInc, MosaicSceneWidget *projectionSrc, int density, Latitude latMin, Latitude latMax, Longitude lonMin, Longitude lonMax)
 
void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=0)
 
virtual QRectF boundingRect () const
 

Private Member Functions

QRectF calcRect () const
 
QRectF rect () const
 
void setRect (QRectF newBoundingRect)
 

Private Attributes

QRectF m_boundingRect
 

Detailed Description

The visual display of the find point.

Author
2011-05-07 Steven Lambright
History

2011-05-10 Steven Lambright - Fixed problem with boundingRect()

2012-07-10 Kimberly Oyama - Added the latitude and longitude extents as parameters to the constructor to support the new grid functionallity of user specified extents (map projection, bounding rectangle of the open cubes, manually entered). Also modified the constructor so it can handle drawing grids for both planetocentric and planetographic latitudes. Fixes #604.

2013-02-06 Steven Lambright - Added a safety check to make sure the increments aren't zero or negative. References #1060.

2013-03-06 Steven Lambright - Added support for getting target radii from the TargetName mapping keyword if the target radii keywords are missing. References #1534.

2016-05-18 Ian Humphrey - Made the latitude and longitude lines explicitly cosmetic so they always appear as 1 pixel wide on screen (Qt4 to Qt5).

Definition at line 40 of file GridGraphicsItem.h.

Constructor & Destructor Documentation

◆ GridGraphicsItem()

Isis::GridGraphicsItem::GridGraphicsItem ( Latitude baseLat,
Longitude baseLon,
Angle latInc,
Angle lonInc,
MosaicSceneWidget * projectionSrc,
int density,
Latitude latMin,
Latitude latMax,
Longitude lonMin,
Longitude lonMax )

Definition at line 26 of file GridGraphicsItem.cpp.

◆ ~GridGraphicsItem()

Isis::GridGraphicsItem::~GridGraphicsItem ( )
virtual

Definition at line 355 of file GridGraphicsItem.cpp.

Member Function Documentation

◆ boundingRect()

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

Definition at line 364 of file GridGraphicsItem.cpp.

◆ calcRect()

QRectF Isis::GridGraphicsItem::calcRect ( ) const
private

Definition at line 374 of file GridGraphicsItem.cpp.

◆ paint()

void Isis::GridGraphicsItem::paint ( QPainter * painter,
const QStyleOptionGraphicsItem * style,
QWidget * widget = 0 )

Definition at line 359 of file GridGraphicsItem.cpp.

◆ rect()

QRectF Isis::GridGraphicsItem::rect ( ) const
private

Definition at line 369 of file GridGraphicsItem.cpp.

◆ setRect()

void Isis::GridGraphicsItem::setRect ( QRectF newBoundingRect)
private

Definition at line 385 of file GridGraphicsItem.cpp.

Member Data Documentation

◆ m_boundingRect

QRectF Isis::GridGraphicsItem::m_boundingRect
private

Definition at line 60 of file GridGraphicsItem.h.


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