Isis Developer Reference
GridGraphicsItem.h
Go to the documentation of this file.
1 #ifndef GridGraphicsItem_h
2 #define GridGraphicsItem_h
3 
4 #include <QGraphicsItem>
5 #include <QScopedPointer>
6 
7 class QPointF;
8 
9 template<typename A> class QList;
10 
11 namespace Isis {
12  class Angle;
13  class GroundGrid;
14  class Latitude;
15  class Longitude;
16  class MosaicSceneWidget;
17  class UniversalGroundMap;
18 
41  public:
42  GridGraphicsItem(Latitude baseLat, Longitude baseLon,
43  Angle latInc, Angle lonInc,
44  MosaicSceneWidget *projectionSrc, int density,
45  Latitude latMin, Latitude latMax,
46  Longitude lonMin, Longitude lonMax);
47  virtual ~GridGraphicsItem();
48 
49  void paint(QPainter *, const QStyleOptionGraphicsItem *,
50  QWidget * widget = 0);
51 
52  virtual QRectF boundingRect() const;
53 
54  private:
55  QRectF calcRect() const;
56  QRectF rect() const;
57  void setRect(QRectF newBoundingRect);
58 
59  private:
60  QRectF m_boundingRect;
61  };
62 }
63 
64 #endif
65 
QWidget
Isis::GridGraphicsItem
The visual display of the find point.
Definition: GridGraphicsItem.h:40
Isis::TProjection::IsPositiveWest
bool IsPositiveWest() const
This indicates if the longitude direction type is positive east (as opposed to postive west).
Definition: TProjection.cpp:531
Isis::MosaicSceneWidget::getProjection
Projection * getProjection() const
Definition: MosaicSceneWidget.h:170
MosaicSceneWidget.h
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::Latitude
This class is designed to encapsulate the concept of a Latitude.
Definition: Latitude.h:51
Isis::GridGraphicsItem::paint
void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=0)
Definition: GridGraphicsItem.cpp:359
Isis::GridGraphicsItem::GridGraphicsItem
GridGraphicsItem(Latitude baseLat, Longitude baseLon, Angle latInc, Angle lonInc, MosaicSceneWidget *projectionSrc, int density, Latitude latMin, Latitude latMax, Longitude lonMin, Longitude lonMax)
Definition: GridGraphicsItem.cpp:26
Isis::Latitude::add
Latitude add(Angle angleToAdd, PvlGroup mapping)
Adds an angle to this latitude.
Definition: Latitude.cpp:503
Isis::Latitude::planetographic
double planetographic(Angle::Units units=Angle::Radians) const
Get the latitude in the planetographic coordinate system.
Definition: Latitude.cpp:315
GroundGrid.h
Longitude.h
Isis::Projection::projectionType
ProjectionType projectionType() const
Returns an enum value for the projection type.
Definition: Projection.cpp:198
Isis::MosaicSceneWidget
This widget encompasses the entire mosaic scene.
Definition: MosaicSceneWidget.h:153
Isis::GridGraphicsItem::~GridGraphicsItem
virtual ~GridGraphicsItem()
Definition: GridGraphicsItem.cpp:355
Isis::TProjection::EquatorialRadius
double EquatorialRadius() const
This returns the equatorial radius of the target.
Definition: TProjection.cpp:277
Isis::Distance
Distance measurement, usually in meters.
Definition: Distance.h:34
Isis::Longitude
This class is designed to encapsulate the concept of a Longitude.
Definition: Longitude.h:40
Isis::GridGraphicsItem::boundingRect
virtual QRectF boundingRect() const
Definition: GridGraphicsItem.cpp:364
Latitude.h
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Isis::TProjection::PolarRadius
double PolarRadius() const
This returns the polar radius of the target.
Definition: TProjection.cpp:287
Isis::TProjection
Base class for Map TProjections.
Definition: TProjection.h:166
MosaicGraphicsView.h
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::Angle
Defines an angle and provides unit conversions.
Definition: Angle.h:45
UniversalGroundMap.h
GridGraphicsItem.h
Isis::TProjection::Has180Domain
bool Has180Domain() const
This indicates if the longitude domain is -180 to 180 (as opposed to 0 to 360).
Definition: TProjection.cpp:632
TProjection.h
IException.h
Isis::TProjection::SetGround
virtual bool SetGround(const double lat, const double lon)
This method is used to set the latitude/longitude (assumed to be of the correct LatitudeType,...
Definition: TProjection.cpp:760
std
Namespace for the standard library.
Angle.h
Isis::E
const double E
Sets some basic constants for use in ISIS programming.
Definition: Constants.h:39
Isis::Angle::degrees
double degrees() const
Get the angle in units of Degrees.
Definition: Angle.h:232
Projection.h
Isis::TProjection::Mapping
virtual PvlGroup Mapping()
This function returns the keywords that this projection uses.
Definition: TProjection.cpp:1698
Distance.h
Isis::Projection::YCoord
double YCoord() const
This returns the projection Y provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:400
Isis::Projection
Base class for Map Projections.
Definition: Projection.h:155
QGraphicsItem
Isis::Projection::ProjectionType
ProjectionType
This enum defines the subclasses of Projection supported in Isis.
Definition: Projection.h:166
Isis::Projection::XCoord
double XCoord() const
This returns the projection X provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:387
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::Angle::radians
double radians() const
Convert an angle to a double.
Definition: Angle.h:226