Isis 3 Programmer Reference
Isis::TargetInfoWidget Class Reference

Widget for displaying information about a target. More...

#include <TargetInfoWidget.h>

Inheritance diagram for Isis::TargetInfoWidget:
Inheritance graph
Collaboration diagram for Isis::TargetInfoWidget:
Collaboration graph

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...
 
Directorym_directory
 Unused. More...
 
TargetBodym_target
 The target whose information is being displayed. More...
 

Detailed Description

Widget for displaying information about a target.

Author
2015-06-13 Ken Edmundson
History:

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.

Constructor & Destructor Documentation

◆ TargetInfoWidget()

Isis::TargetInfoWidget::TargetInfoWidget ( TargetBody target,
Directory directory,
QWidget parent = 0 
)
explicit

◆ ~TargetInfoWidget()

Isis::TargetInfoWidget::~TargetInfoWidget ( )

Destructor.

Definition at line 86 of file TargetInfoWidget.cpp.

References m_ui.

Member Function Documentation

◆ errorMsg()

void Isis::TargetInfoWidget::errorMsg ( )
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().

◆ formatPmString()

QString Isis::TargetInfoWidget::formatPmString ( )
private

Make the polePMOffsetLabel text using information from the target.

Returns
QString The polePMOffsetLabel text

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().

◆ formatPoleDecString()

QString Isis::TargetInfoWidget::formatPoleDecString ( )
private

Make the poleDeclinationLabel text using information from the target.

Returns
QString The poleDeclinationLabel text

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().

◆ formatPoleRaString()

QString Isis::TargetInfoWidget::formatPoleRaString ( )
private

Make the poleRightAscensionLabel text using information from the target.

Returns
QString The poleRightAscensionLabel text

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().

Member Data Documentation

◆ m_directory

Directory* Isis::TargetInfoWidget::m_directory
private

Unused.

Definition at line 51 of file TargetInfoWidget.h.

◆ m_target

TargetBody* Isis::TargetInfoWidget::m_target
private

The target whose information is being displayed.

Definition at line 52 of file TargetInfoWidget.h.

Referenced by errorMsg(), formatPmString(), formatPoleDecString(), formatPoleRaString(), and TargetInfoWidget().

◆ m_ui

Ui::TargetInfoWidget* Isis::TargetInfoWidget::m_ui
private

The widget's ui.

Definition at line 44 of file TargetInfoWidget.h.

Referenced by errorMsg(), TargetInfoWidget(), and ~TargetInfoWidget().


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