Isis Developer Reference
TrackTool.h
Go to the documentation of this file.
1 #ifndef Qisis_TrackTool_h
2 #define Qisis_TrackTool_h
3 
4 // This is the only include allowed in this file!
5 #include "Tool.h"
6 
7 
8 class QLabel;
9 class QStatusBar;
10 
11 namespace Isis {
12  class MdiCubeViewport;
13  class WarningWidget;
14 
42  class TrackTool : public Tool {
43  Q_OBJECT
44 
45  public:
46  TrackTool(QStatusBar *parent);
47  void displayWarning(std::string &pStr, const std::string &pExStr);
48  void resetStatusWarning(void);
49  QStatusBar *getStatusBar(void);
50 
51  public slots:
52  virtual void mouseMove(QPoint p);
53  virtual void mouseLeave();
54 
55  protected:
58 
59  private slots:
60  void locateCursor();
61 
62  private:
63  void updateLabels(QPoint p);
64  void clearLabels();
65 
66  QStatusBar *p_sbar;
67  QLabel *p_sampLabel;
68  QLabel *p_lineLabel;
69  QLabel *p_latLabel;
70  QLabel *p_lonLabel;
71  QLabel *p_grayLabel;
72  QLabel *p_redLabel;
73  QLabel *p_grnLabel;
74  QLabel *p_bluLabel;
75  WarningWidget *mWarningWidget;
76  };
77 };
78 
79 #endif
Isis::CubeViewport::cubeLines
int cubeLines() const
Return the number of lines in the cube.
Definition: CubeViewport.cpp:439
Isis::PixelToString
QString PixelToString(double d)
Takes a double pixel value and returns the name of the pixel type as a string.
Definition: SpecialPixel.h:371
Isis::MdiCubeViewport
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:39
Isis::CubeViewport::redBuffer
ViewportBuffer * redBuffer()
Returns the red viewport buffer (Will be NULL if in Gray mode.)
Definition: CubeViewport.h:421
Isis::Target::shape
ShapeModel * shape() const
Return the shape.
Definition: Target.cpp:655
Isis::TrackTool::removeConnections
void removeConnections(MdiCubeViewport *cvp)
Removes the connections from the given viewport.
Definition: TrackTool.cpp:376
MdiCubeViewport.h
Isis::TrackTool::displayWarning
void displayWarning(std::string &pStr, const std::string &pExStr)
Display the Warning icon in case of an exception, sent from the tool where the exception occured.
Definition: TrackTool.cpp:97
Isis::Camera::SetImage
virtual bool SetImage(const double sample, const double line)
Sets the sample/line values of the image to get the lat/lon values.
Definition: Camera.cpp:154
Isis::Tool
Base class for the Qisis tools.
Definition: Tool.h:67
SpecialPixel.h
Isis::CubeViewport::isGray
bool isGray() const
Definition: CubeViewport.h:189
Target.h
Isis::ShapeModel::name
QString name() const
Gets the shape name.
Definition: ShapeModel.cpp:543
Isis::Projection::projectionType
ProjectionType projectionType() const
Returns an enum value for the projection type.
Definition: Projection.cpp:198
Tool.h
Isis::TrackTool::getStatusBar
QStatusBar * getStatusBar(void)
Definition: TrackTool.cpp:382
WarningWidget.h
Isis::CubeViewport::camera
Camera * camera() const
Definition: CubeViewport.h:348
Isis::Spice::target
virtual Target * target() const
Returns a pointer to the target object.
Definition: Spice.cpp:1368
Isis::TrackTool::mouseLeave
virtual void mouseLeave()
Clears the labels if the mouse leaves the application.
Definition: TrackTool.cpp:131
Isis::TrackTool::mouseMove
virtual void mouseMove(QPoint p)
Updates the labels anytime the mouse moves.
Definition: TrackTool.cpp:116
Isis::Sensor::UniversalLongitude
virtual double UniversalLongitude() const
Returns the positive east, 0-360 domain longitude, in degrees, at the surface intersection point in t...
Definition: Sensor.cpp:233
Isis::CubeViewport::cubeSamples
int cubeSamples() const
Return the number of samples in the cube.
Definition: CubeViewport.cpp:433
Isis::Projection::SetWorld
virtual bool SetWorld(const double x, const double y)
This method is used to set a world coordinate.
Definition: Projection.cpp:497
TProjection.h
Camera.h
Isis::TrackTool::resetStatusWarning
void resetStatusWarning(void)
Resets the warning status on the status bar to default.
Definition: TrackTool.cpp:104
Isis::CubeViewport::blueBuffer
ViewportBuffer * blueBuffer()
Returns the blue viewport buffer (Will be NULL if in Gray mode.)
Definition: CubeViewport.h:441
Isis::TrackTool::addConnections
void addConnections(MdiCubeViewport *cvp)
Adds the connections to the given viewport.
Definition: TrackTool.cpp:364
Isis::WarningWidget
Displays the NoWarning icon as default and the Warning icon in case of exception and also pops up a a...
Definition: WarningWidget.h:38
Isis::Tool::activate
void activate(bool)
Activates the tool.
Definition: Tool.cpp:131
RingPlaneProjection.h
ViewportBuffer.h
Isis::Distance::meters
double meters() const
Get the distance in meters.
Definition: Distance.cpp:85
Projection.h
Isis::Projection::Triaxial
@ Triaxial
These projections are used to map triaxial and irregular-shaped bodies.
Definition: Projection.h:166
Isis::CubeViewport::viewportToCube
void viewportToCube(int x, int y, double &sample, double &line) const
Turns a viewport into a cube.
Definition: CubeViewport.cpp:815
Isis::Projection::IsSky
bool IsSky() const
Returns true if projection is sky and false if it is land.
Definition: Projection.cpp:208
Isis::TrackTool::TrackTool
TrackTool(QStatusBar *parent)
TrackTool constructor.
Definition: TrackTool.cpp:26
Distance.h
Isis::CubeViewport::grayBuffer
ViewportBuffer * grayBuffer()
Returns the gray viewport buffer (Will be NULL if in RGB mode.)
Definition: CubeViewport.h:411
TrackTool.h
Isis::Projection::ProjectionType
ProjectionType
This enum defines the subclasses of Projection supported in Isis.
Definition: Projection.h:166
Isis::TrackTool
This tool is part of the Qisis namespace and displays the statusbar of the window.
Definition: TrackTool.h:42
Isis::WarningWidget::resetWarning
void resetWarning(void)
When the dialog "OK" button is clicked or when the mouse is released on some other area or tool the W...
Definition: WarningWidget.cpp:118
Isis::Tool::cubeViewport
MdiCubeViewport * cubeViewport() const
Return the current cubeviewport.
Definition: Tool.h:197
Isis::CubeViewport::greenBuffer
ViewportBuffer * greenBuffer()
Returns the green viewport buffer (Will be NULL if in Gray mode.)
Definition: CubeViewport.h:431
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::Sensor::LocalRadius
Distance LocalRadius() const
Returns the local radius at the intersection point.
Definition: Sensor.cpp:267
Isis::CubeViewport::projection
Projection * projection() const
Definition: CubeViewport.h:343
Isis::WarningWidget::viewWarningWidgetIcon
void viewWarningWidgetIcon(std::string &pStr, const std::string &pExStr)
View Warning icon when there is an exception.
Definition: WarningWidget.cpp:149
Isis::Sensor::UniversalLatitude
virtual double UniversalLatitude() const
Returns the planetocentric latitude, in degrees, at the surface intersection point in the body fixed ...
Definition: Sensor.cpp:210