Isis 3 Programmer Reference
|
A named feature on a target. More...
#include <FeatureNomenclature.h>
Public Member Functions | |
Feature () | |
Construct a feature with no data. More... | |
Feature (QDomElement searchResultFeature, IAUStatus status) | |
Construct a feature with the data encapsulated inside of the XML. More... | |
Feature (const Feature &other) | |
Copy a feature. More... | |
~Feature () | |
Clean up allocated memory by this feature. More... | |
QWidget * | toWidget () const |
This converts the data in this feature to a widget. More... | |
QString | id () const |
QString | name () const |
QString | cleanName () const |
QString | controlNet () const |
QString | displayName () const |
QString | target () const |
QString | system () const |
Distance | diameter () const |
QString | diameterString () const |
Latitude | centerLatitude () const |
QString | centerLatitudeString () const |
Longitude | centerLongitude () const |
QString | centerLongitudeString () const |
Latitude | northernLatitude () const |
QString | northernLatitudeString () const |
Latitude | southernLatitude () const |
QString | southernLatitudeString () const |
Longitude | easternLongitude () const |
QString | easternLongitudeString () const |
Longitude | westernLongitude () const |
QString | westernLongitudeString () const |
QString | originatingContinent () const |
QString | originatingEthnicity () const |
QString | approvalStatus () const |
QString | approvalDate () const |
QString | featureType () const |
QString | referenceString () const |
QString | origin () const |
QString | lastUpdated () const |
QUrl | referenceUrl () const |
QString | referenceUrlString () const |
IAUStatus | status () const |
void | swap (Feature &other) |
Swap the member data of this feature with another feature. More... | |
Feature & | operator= (const Feature &rhs) |
Assign the values of this feature from the values of rhs. More... | |
Private Member Functions | |
QString | getTagText (QString tagName) const |
Get the string value of an element of the XML. More... | |
Private Attributes | |
QDomElement * | m_xmlRepresenation |
This is the XML returned by the nomenclature DB. More... | |
IAUStatus | m_approvalStatus |
The approval status of the feature. More... | |
A named feature on a target.
This class encapsulates the idea of a single named feature on a target. The accessor methods will return empty strings/invalid data types if data is not present or available. These should be instantiated (originally) by the FeatureNomenclature class.
2012-06-06 Steven Lambright and Kimberly Oyama - Added approval status to the list of characteristics of the feature and added the accessor (status()). Fixes #852. Fixes #892.
2016-05-23 Ian Humphrey - Modified runQuery() to correctly send POST request to find the features for the feature nomenclature tool (Qt5).
Definition at line 117 of file FeatureNomenclature.h.
Isis::FeatureNomenclature::Feature::Feature | ( | ) |
Construct a feature with no data.
Definition at line 214 of file FeatureNomenclature.cpp.
References m_approvalStatus, m_xmlRepresenation, and Isis::FeatureNomenclature::NoStatus.
Isis::FeatureNomenclature::Feature::Feature | ( | QDomElement | searchResultFeature, |
IAUStatus | status | ||
) |
Construct a feature with the data encapsulated inside of the XML.
Definition at line 223 of file FeatureNomenclature.cpp.
Isis::FeatureNomenclature::Feature::Feature | ( | const Feature & | other | ) |
Copy a feature.
This is a shallow copy.
other | The feature to copy |
Definition at line 235 of file FeatureNomenclature.cpp.
References m_approvalStatus, and m_xmlRepresenation.
Isis::FeatureNomenclature::Feature::~Feature | ( | ) |
Clean up allocated memory by this feature.
Definition at line 246 of file FeatureNomenclature.cpp.
QString Isis::FeatureNomenclature::Feature::approvalDate | ( | ) | const |
Definition at line 682 of file FeatureNomenclature.cpp.
Referenced by toWidget().
QString Isis::FeatureNomenclature::Feature::approvalStatus | ( | ) | const |
Definition at line 674 of file FeatureNomenclature.cpp.
Referenced by toWidget().
Latitude Isis::FeatureNomenclature::Feature::centerLatitude | ( | ) | const |
Definition at line 506 of file FeatureNomenclature.cpp.
References Isis::Angle::Degrees, and Isis::toDouble().
QString Isis::FeatureNomenclature::Feature::centerLatitudeString | ( | ) | const |
Definition at line 522 of file FeatureNomenclature.cpp.
Referenced by toWidget().
Longitude Isis::FeatureNomenclature::Feature::centerLongitude | ( | ) | const |
Definition at line 530 of file FeatureNomenclature.cpp.
References Isis::Angle::Degrees, and Isis::toDouble().
QString Isis::FeatureNomenclature::Feature::centerLongitudeString | ( | ) | const |
Definition at line 547 of file FeatureNomenclature.cpp.
Referenced by toWidget().
QString Isis::FeatureNomenclature::Feature::cleanName | ( | ) | const |
Definition at line 421 of file FeatureNomenclature.cpp.
Referenced by Isis::FeatureNomenclatureTool::featuresForViewportFound().
QString Isis::FeatureNomenclature::Feature::controlNet | ( | ) | const |
Definition at line 431 of file FeatureNomenclature.cpp.
Referenced by Isis::FeatureNomenclatureTool::featuresForViewportFound(), and toWidget().
Distance Isis::FeatureNomenclature::Feature::diameter | ( | ) | const |
Definition at line 481 of file FeatureNomenclature.cpp.
References Isis::Distance::Kilometers, and Isis::toDouble().
Referenced by Isis::FeatureNomenclature::featureDiameterGreaterThan().
QString Isis::FeatureNomenclature::Feature::diameterString | ( | ) | const |
Definition at line 498 of file FeatureNomenclature.cpp.
Referenced by toWidget().
QString Isis::FeatureNomenclature::Feature::displayName | ( | ) | const |
Definition at line 449 of file FeatureNomenclature.cpp.
Referenced by Isis::FeatureNomenclatureTool::ViewportFeatureDisplay::centerFeature(), Isis::FeatureNomenclatureTool::ViewportFeatureDisplay::handleMouseClicked(), and toWidget().
Longitude Isis::FeatureNomenclature::Feature::easternLongitude | ( | ) | const |
Definition at line 605 of file FeatureNomenclature.cpp.
References Isis::Angle::Degrees, and Isis::toDouble().
QString Isis::FeatureNomenclature::Feature::easternLongitudeString | ( | ) | const |
Definition at line 623 of file FeatureNomenclature.cpp.
Referenced by toWidget().
QString Isis::FeatureNomenclature::Feature::featureType | ( | ) | const |
Definition at line 690 of file FeatureNomenclature.cpp.
Referenced by toWidget().
|
private |
Get the string value of an element of the XML.
Returns an empty string if anything goes wrong.
tagName | the XML tag name, from the nomenclature server, of what you want |
Definition at line 779 of file FeatureNomenclature.cpp.
QString Isis::FeatureNomenclature::Feature::id | ( | ) | const |
Definition at line 405 of file FeatureNomenclature.cpp.
Referenced by toWidget().
QString Isis::FeatureNomenclature::Feature::lastUpdated | ( | ) | const |
Definition at line 714 of file FeatureNomenclature.cpp.
Referenced by toWidget().
QString Isis::FeatureNomenclature::Feature::name | ( | ) | const |
Definition at line 413 of file FeatureNomenclature.cpp.
Referenced by Isis::FeatureNomenclatureTool::ViewportFeatureDisplay::handleViewChanged(), and Isis::FeatureNomenclatureTool::ViewportFeatureDisplay::paint().
Latitude Isis::FeatureNomenclature::Feature::northernLatitude | ( | ) | const |
Definition at line 555 of file FeatureNomenclature.cpp.
References Isis::Angle::Degrees, and Isis::toDouble().
QString Isis::FeatureNomenclature::Feature::northernLatitudeString | ( | ) | const |
Definition at line 572 of file FeatureNomenclature.cpp.
Referenced by toWidget().
FeatureNomenclature::Feature & Isis::FeatureNomenclature::Feature::operator= | ( | const Feature & | rhs | ) |
Assign the values of this feature from the values of rhs.
rhs | The feature on the right hand side of the '=' operator |
Definition at line 763 of file FeatureNomenclature.cpp.
References Isis::FeatureNomenclature::swap().
QString Isis::FeatureNomenclature::Feature::origin | ( | ) | const |
Definition at line 706 of file FeatureNomenclature.cpp.
Referenced by toWidget().
QString Isis::FeatureNomenclature::Feature::originatingContinent | ( | ) | const |
Definition at line 658 of file FeatureNomenclature.cpp.
Referenced by toWidget().
QString Isis::FeatureNomenclature::Feature::originatingEthnicity | ( | ) | const |
Definition at line 666 of file FeatureNomenclature.cpp.
Referenced by toWidget().
QString Isis::FeatureNomenclature::Feature::referenceString | ( | ) | const |
Definition at line 698 of file FeatureNomenclature.cpp.
Referenced by toWidget().
QUrl Isis::FeatureNomenclature::Feature::referenceUrl | ( | ) | const |
Definition at line 722 of file FeatureNomenclature.cpp.
Referenced by Isis::FeatureNomenclatureTool::ViewportFeatureDisplay::handleMouseClicked(), and Isis::FeatureNomenclatureTool::showFeatureWebsite().
QString Isis::FeatureNomenclature::Feature::referenceUrlString | ( | ) | const |
Definition at line 730 of file FeatureNomenclature.cpp.
Referenced by toWidget().
Latitude Isis::FeatureNomenclature::Feature::southernLatitude | ( | ) | const |
Definition at line 580 of file FeatureNomenclature.cpp.
References Isis::Angle::Degrees, and Isis::toDouble().
QString Isis::FeatureNomenclature::Feature::southernLatitudeString | ( | ) | const |
Definition at line 597 of file FeatureNomenclature.cpp.
Referenced by toWidget().
FeatureNomenclature::IAUStatus Isis::FeatureNomenclature::Feature::status | ( | ) | const |
Definition at line 740 of file FeatureNomenclature.cpp.
Referenced by Isis::FeatureNomenclatureTool::featuresForViewportFound(), and Isis::FeatureNomenclatureTool::ViewportFeatureDisplay::handleViewChanged().
void Isis::FeatureNomenclature::Feature::swap | ( | Feature & | other | ) |
Swap the member data of this feature with another feature.
other | The feature to swap with. |
Definition at line 750 of file FeatureNomenclature.cpp.
References m_approvalStatus, and m_xmlRepresenation.
QString Isis::FeatureNomenclature::Feature::system | ( | ) | const |
Definition at line 473 of file FeatureNomenclature.cpp.
Referenced by toWidget().
QString Isis::FeatureNomenclature::Feature::target | ( | ) | const |
Definition at line 465 of file FeatureNomenclature.cpp.
Referenced by Isis::FeatureNomenclatureTool::featuresForViewportFound(), and toWidget().
QWidget * Isis::FeatureNomenclature::Feature::toWidget | ( | ) | const |
This converts the data in this feature to a widget.
All of the information returned by the server is encapsulated in this widget. There are no controls, this is a display only.
Definition at line 259 of file FeatureNomenclature.cpp.
References approvalDate(), approvalStatus(), centerLatitudeString(), centerLongitudeString(), controlNet(), diameterString(), displayName(), easternLongitudeString(), featureType(), id(), lastUpdated(), northernLatitudeString(), origin(), originatingContinent(), originatingEthnicity(), referenceString(), referenceUrlString(), southernLatitudeString(), system(), target(), and westernLongitudeString().
Referenced by Isis::FeatureNomenclatureTool::showFeatureDetails().
Longitude Isis::FeatureNomenclature::Feature::westernLongitude | ( | ) | const |
Definition at line 631 of file FeatureNomenclature.cpp.
References Isis::Angle::Degrees, and Isis::toDouble().
QString Isis::FeatureNomenclature::Feature::westernLongitudeString | ( | ) | const |
Definition at line 649 of file FeatureNomenclature.cpp.
Referenced by toWidget().
|
private |
The approval status of the feature.
Definition at line 172 of file FeatureNomenclature.h.
|
private |
This is the XML returned by the nomenclature DB.
The accessors in this class all parse the XML to get their data on demand.
Definition at line 170 of file FeatureNomenclature.h.