![]() |
Isis 3 Programmer Reference
|
Widget for displaying information about a target. More...
#include <TargetInfoWidget.h>


Public Member Functions | |
| TargetInfoWidget (TargetBody *target, Directory *directory, QWidget *parent=0) | |
| Constructor. More... | |
| ~TargetInfoWidget () | |
| Destructor. More... | |
Private Member Functions | |
| void | errorMsg () |
| Displays an error message on the Prime Meridian/Pole Position tabs of the TargetInfoWidget in the event that the target body parameters could not be retrieved from the cube. More... | |
| QString | formatPoleRaString () |
| Make the poleRightAscensionLabel text using information from the target. More... | |
| QString | formatPoleDecString () |
| Make the poleDeclinationLabel text using information from the target. More... | |
| QString | formatPmString () |
| Make the polePMOffsetLabel text using information from the target. More... | |
Private Attributes | |
| Ui::TargetInfoWidget * | m_ui |
| The widget's ui. More... | |
| Directory * | m_directory |
| Unused. More... | |
| TargetBody * | m_target |
| The target whose information is being displayed. More... | |
Widget for displaying information about a target.
2015-06-13 Ken Edmundson - Original version.
2016-08-25 Adam Paquette - Updated documentation. Fixes #4299.
2017-07-27 Tyler Wilson and Summer Stapleton - IPCE no longer crashes in the event that the spice cube labels do not contain the proper target info. Fixes #4954.
2017-08-14 Summer Stapleton - Updated icons/images to properly licensed or open source images. Fixes #5105.
2018-07-26 Tracie Sucharski - Reformated the widget to get rid of fixed sizes and use layouts to handle sizing instead. Also put entire widget in a scrolled area.
Definition at line 35 of file TargetInfoWidget.h.
|
explicit |
Constructor.
Sets up the widget based on the target.
| target | The target whose information will be displayed |
| directory | Currently unused |
| parent | The parent widget |
Definition at line 21 of file TargetInfoWidget.cpp.
References Isis::SpiceRotation::BPC, Isis::DisplayProperties::displayName(), Isis::TargetBody::displayProperties(), formatPmString(), formatPoleDecString(), formatPoleRaString(), Isis::TargetBody::frameType(), Isis::Distance::kilometers(), m_target, m_ui, Isis::TargetBody::meanRadius(), Isis::TargetBody::naifPlanetSystemName(), Isis::TargetBody::radiusA(), Isis::TargetBody::radiusB(), and Isis::TargetBody::radiusC().
| Isis::TargetInfoWidget::~TargetInfoWidget | ( | ) |
|
private |
Displays an error message on the Prime Meridian/Pole Position tabs of the TargetInfoWidget in the event that the target body parameters could not be retrieved from the cube.
Definition at line 267 of file TargetInfoWidget.cpp.
References Isis::DisplayProperties::displayName(), Isis::TargetBody::displayProperties(), m_target, and m_ui.
Referenced by formatPmString(), formatPoleDecString(), and formatPoleRaString().
|
private |
Make the polePMOffsetLabel text using information from the target.
Definition at line 206 of file TargetInfoWidget.cpp.
References Isis::SpiceRotation::BPC, errorMsg(), Isis::TargetBody::frameType(), m_target, Isis::TargetBody::naifPlanetSystemName(), Isis::TargetBody::pmCoefs(), Isis::TargetBody::pmNutPrecCoefs(), and Isis::SpiceRotation::UNKNOWN.
Referenced by TargetInfoWidget().
|
private |
Make the poleDeclinationLabel text using information from the target.
Definition at line 151 of file TargetInfoWidget.cpp.
References Isis::SpiceRotation::BPC, errorMsg(), Isis::TargetBody::frameType(), m_target, Isis::TargetBody::naifPlanetSystemName(), Isis::TargetBody::poleDecCoefs(), Isis::TargetBody::poleDecNutPrecCoefs(), and Isis::SpiceRotation::UNKNOWN.
Referenced by TargetInfoWidget().
|
private |
Make the poleRightAscensionLabel text using information from the target.
Definition at line 96 of file TargetInfoWidget.cpp.
References Isis::SpiceRotation::BPC, errorMsg(), Isis::TargetBody::frameType(), m_target, Isis::TargetBody::naifPlanetSystemName(), Isis::TargetBody::poleRaCoefs(), Isis::TargetBody::poleRaNutPrecCoefs(), and Isis::SpiceRotation::UNKNOWN.
Referenced by TargetInfoWidget().
|
private |
Unused.
Definition at line 51 of file TargetInfoWidget.h.
|
private |
The target whose information is being displayed.
Definition at line 52 of file TargetInfoWidget.h.
Referenced by errorMsg(), formatPmString(), formatPoleDecString(), formatPoleRaString(), and TargetInfoWidget().
|
private |
The widget's ui.
Definition at line 44 of file TargetInfoWidget.h.
Referenced by errorMsg(), TargetInfoWidget(), and ~TargetInfoWidget().