USGS

Isis 3.0 Developer's Reference (API)

Home

GridGraphicsItem.h

Go to the documentation of this file.
00001 #ifndef GridGraphicsItem_h
00002 #define GridGraphicsItem_h
00003 
00004 #include <QGraphicsItem>
00005 
00006 #include <QScopedPointer>
00007 
00008 class QPointF;
00009 
00010 template<typename A> class QList;
00011 
00012 namespace Isis {
00013   class Angle;
00014   class GroundGrid;
00015   class Latitude;
00016   class Longitude;
00017   class MosaicSceneWidget;
00018   class UniversalGroundMap;
00019 
00028   class GridGraphicsItem : public QGraphicsItem {
00029     public:
00030       GridGraphicsItem(Latitude baseLat, Longitude baseLon,
00031                        Angle latInc, Angle lonInc,
00032                        MosaicSceneWidget *projectionSrc, int density);
00033       virtual ~GridGraphicsItem();
00034 
00035       void paint(QPainter *, const QStyleOptionGraphicsItem *,
00036                  QWidget * widget = 0);
00037 
00038       virtual QRectF boundingRect() const;
00039 
00040     private:
00041       QRectF calcRect() const;
00042       QRectF rect() const;
00043       void setRect(QRectF newBoundingRect);
00044 
00045     private:
00046       QRectF m_boundingRect;
00047   };
00048 }
00049 
00050 #endif
00051