GLIMSView Source Code Documentation

ImageInfDlg Class Reference

#include <imageinfdlg.h>

Inheritance diagram for ImageInfDlg:

Inheritance graph
[legend]

List of all members.


Detailed Description

A user interface dialog providing editability to a ImageInf.

This needs improvement to allow more access to the fields within ImageInf. Currently, only aqusition date/time is editable. But this is also the only field in the images.shp file that is not able to be null in the GLIMS database.

History:
2005-08-20 deborah lee soltesz - added & to mImgInf declaration so it would hold its data correctly
History:
2006-01-09 deborah lee soltesz - Added handling of all the image metadata: more input fields, storing data in ImageInf structure, etc. Added "check" button to validate date/time stamp for Image Acquisition.
History:
2007-06-14 deborah lee soltesz - removed image ID references as per e-mail from Bruce Raup same day: Image ID refers to an ID assigned by the GLIMS database ingestion process.
What's New:
2006-01-21 - More image metadata is displayed and can be edited to fill in missing or correct erroneous information. "Check" button for the image acquisition date allows user to validate format of the date.
Todo:
2006-01-09 dls - Create better DateTime edit field to force users to provide a date/time that can be easily written in the correct ISO format.
Todo:
2006-01-23 dls - Need to confirm all the information required by the GLIMS database is being captured and stored

Definition at line 58 of file imageinfdlg.h.


Public Slots

void aquchanged (const QString &)
 Image aquisition date/time changed.
void aquCompleted ()
 Image aquisition date/time completed.
void fnchanged (const QString &str)
 Image filename changed.
void instIdChanged (const QString &str)
 Image ID changed.
void origIdChanged (const QString &str)
 Origin ID changed.
void cLatChanged (const QString &str)
 Center latitude changed.
void cLonChanged (const QString &str)
 Center longitude changed.
void cLatUncChanged (const QString &str)
 Center latitude uncertainty changed.
void cLonUncChanged (const QString &str)
 Center longitude uncertainty changed.
void imgAzChanged (const QString &str)
 Image azimuth changed.
void cloudPctChanged (const QString &str)
 Percentage cloud cover changed.
void sunAzChanged (const QString &str)
 Sun azimuth changed.
void sunElevChanged (const QString &str)
 Sun elevation changed.
void instAzChanged (const QString &str)
 Instrument azimuth changed.
void instZenChanged (const QString &str)
 Instrument zenith changed.
void projChanged (const QString &str)
 Image projection information changed.

Public Member Functions

 ImageInfDlg (ImageInf &)
void loadData ()
string getAquiDate ()

Protected Member Functions

bool validIso8601DateTime (QString &str)
 Do the characters in the input string represent a complete and valid ISO 8601 date/time string? This function does not do a very stringent test, just simply checks that there are the correct range of characters in each slot and there's a sufficient number of digits to create a valid date/time string.

Protected Attributes

ImageInfmImgInf
QLineEdit * fne
 image filename (or image location)
QLineEdit * le
 image acquisition date/time
QLineEdit * instID
 instrument identifier
QLineEdit * origID
 origin identifier
QLineEdit * cLat
 center latitude
QLineEdit * cLon
 center longitude
QLineEdit * cLatUnc
 center latitude UNC (?)
QLineEdit * cLonUnc
 center longitude UNC (?)
QLineEdit * imgAz
 image azimuth
QLineEdit * cloudPct
 percentage cloud cover
QLineEdit * sunAz
 sun azimuth
QLineEdit * sunElev
 sun elevation
QLineEdit * instAz
 instrument azimuth
QLineEdit * instZen
 instrument zenith
QLineEdit * proj
 projection
QPushButtoncheckLe
 validates date/time stamp

Constructor & Destructor Documentation

ImageInfDlg::ImageInfDlg ( ImageInf imginf  ) 


Member Function Documentation

bool ImageInfDlg::validIso8601DateTime ( QString &  str  )  [protected]

Do the characters in the input string represent a complete and valid ISO 8601 date/time string? This function does not do a very stringent test, just simply checks that there are the correct range of characters in each slot and there's a sufficient number of digits to create a valid date/time string.

See http://www.w3.org/TR/NOTE-datetime

Todo:
2006-01-21 dls - Make this function more stringent and robust. Invalid dates (e.g. 2006-19-32) should return false.

Definition at line 407 of file imageinfdlg.cpp.

References mImgInf, and ImageInf::validIso8601DateTime().

Referenced by aquCompleted().

Here is the call graph for this function:

void ImageInfDlg::loadData (  ) 

string ImageInfDlg::getAquiDate (  )  [inline]

Definition at line 105 of file imageinfdlg.h.

References ImageInf::mAquiDateTime, and mImgInf.

void ImageInfDlg::aquchanged ( const QString &  str  )  [slot]

Image aquisition date/time changed.

Definition at line 240 of file imageinfdlg.cpp.

References ImageInf::mAquiDateTime, and mImgInf.

Referenced by ImageInfDlg().

void ImageInfDlg::aquCompleted (  )  [slot]

Image aquisition date/time completed.

Definition at line 386 of file imageinfdlg.cpp.

References le, and validIso8601DateTime().

Referenced by ImageInfDlg().

void ImageInfDlg::fnchanged ( const QString &  str  )  [slot]

Image filename changed.

Definition at line 251 of file imageinfdlg.cpp.

References mImgInf, and ImageInf::mLocURL.

Referenced by ImageInfDlg().

void ImageInfDlg::instIdChanged ( const QString &  str  )  [slot]

Image ID changed.

History:
2006-01-08 dls - Added new function
Instrument ID changed
History:
2006-01-08 dls - Added new function

Definition at line 265 of file imageinfdlg.cpp.

References mImgInf, and ImageInf::mInstID.

Referenced by ImageInfDlg().

void ImageInfDlg::origIdChanged ( const QString &  str  )  [slot]

Origin ID changed.

History:
2006-01-08 dls - Added new function

Definition at line 270 of file imageinfdlg.cpp.

References mImgInf, and ImageInf::mOrigID.

Referenced by ImageInfDlg().

void ImageInfDlg::cLatChanged ( const QString &  str  )  [slot]

Center latitude changed.

History:
2006-01-08 dls - Added new function

Definition at line 275 of file imageinfdlg.cpp.

References ImageInf::mCenterLat, and mImgInf.

Referenced by ImageInfDlg().

void ImageInfDlg::cLonChanged ( const QString &  str  )  [slot]

Center longitude changed.

History:
2006-01-08 dls - Added new function

Definition at line 280 of file imageinfdlg.cpp.

References ImageInf::mCenterLon, and mImgInf.

Referenced by ImageInfDlg().

void ImageInfDlg::cLatUncChanged ( const QString &  str  )  [slot]

Center latitude uncertainty changed.

History:
2006-01-08 dls - Added new function

Definition at line 285 of file imageinfdlg.cpp.

References ImageInf::mCenterLatUnc, and mImgInf.

Referenced by ImageInfDlg().

void ImageInfDlg::cLonUncChanged ( const QString &  str  )  [slot]

Center longitude uncertainty changed.

History:
2006-01-08 dls - Added new function

Definition at line 290 of file imageinfdlg.cpp.

References ImageInf::mCenterLonUnc, and mImgInf.

Referenced by ImageInfDlg().

void ImageInfDlg::imgAzChanged ( const QString &  str  )  [slot]

Image azimuth changed.

History:
2006-01-08 dls - Added new function

Definition at line 295 of file imageinfdlg.cpp.

References ImageInf::mImageAzim, and mImgInf.

Referenced by ImageInfDlg().

void ImageInfDlg::cloudPctChanged ( const QString &  str  )  [slot]

Percentage cloud cover changed.

History:
2006-01-08 dls - Added new function

Definition at line 300 of file imageinfdlg.cpp.

References ImageInf::mCloudPct, and mImgInf.

Referenced by ImageInfDlg().

void ImageInfDlg::sunAzChanged ( const QString &  str  )  [slot]

Sun azimuth changed.

History:
2006-01-08 dls - Added new function

Definition at line 305 of file imageinfdlg.cpp.

References mImgInf, and ImageInf::mSunAzim.

Referenced by ImageInfDlg().

void ImageInfDlg::sunElevChanged ( const QString &  str  )  [slot]

Sun elevation changed.

History:
2006-01-08 dls - Added new function

Definition at line 310 of file imageinfdlg.cpp.

References mImgInf, and ImageInf::mSunElev.

Referenced by ImageInfDlg().

void ImageInfDlg::instAzChanged ( const QString &  str  )  [slot]

Instrument azimuth changed.

History:
2006-01-08 dls - Added new function

Definition at line 315 of file imageinfdlg.cpp.

References mImgInf, and ImageInf::mInstrument_azimuth.

Referenced by ImageInfDlg().

void ImageInfDlg::instZenChanged ( const QString &  str  )  [slot]

Instrument zenith changed.

History:
2006-01-08 dls - Added new function

Definition at line 320 of file imageinfdlg.cpp.

References mImgInf, and ImageInf::mInstrument_zenith.

Referenced by ImageInfDlg().

void ImageInfDlg::projChanged ( const QString &  str  )  [slot]

Image projection information changed.

History:
2006-01-08 dls - Added new function

Definition at line 325 of file imageinfdlg.cpp.

References mImgInf, and ImageInf::mProjection.

Referenced by ImageInfDlg().


Member Data Documentation

QLineEdit* ImageInfDlg::fne [protected]

image filename (or image location)

Definition at line 64 of file imageinfdlg.h.

Referenced by ImageInfDlg(), and loadData().

QLineEdit* ImageInfDlg::le [protected]

image acquisition date/time

Definition at line 65 of file imageinfdlg.h.

Referenced by aquCompleted(), ImageInfDlg(), and loadData().

QLineEdit* ImageInfDlg::instID [protected]

instrument identifier

Definition at line 67 of file imageinfdlg.h.

Referenced by ImageInfDlg(), and loadData().

QLineEdit* ImageInfDlg::origID [protected]

origin identifier

Definition at line 68 of file imageinfdlg.h.

Referenced by ImageInfDlg(), and loadData().

QLineEdit* ImageInfDlg::cLat [protected]

center latitude

Definition at line 69 of file imageinfdlg.h.

Referenced by ImageInfDlg(), and loadData().

QLineEdit* ImageInfDlg::cLon [protected]

center longitude

Definition at line 70 of file imageinfdlg.h.

Referenced by ImageInfDlg(), and loadData().

QLineEdit* ImageInfDlg::cLatUnc [protected]

center latitude UNC (?)

Definition at line 71 of file imageinfdlg.h.

Referenced by ImageInfDlg(), and loadData().

QLineEdit* ImageInfDlg::cLonUnc [protected]

center longitude UNC (?)

Definition at line 72 of file imageinfdlg.h.

Referenced by ImageInfDlg(), and loadData().

QLineEdit* ImageInfDlg::imgAz [protected]

image azimuth

Definition at line 73 of file imageinfdlg.h.

Referenced by ImageInfDlg(), and loadData().

QLineEdit* ImageInfDlg::cloudPct [protected]

percentage cloud cover

Definition at line 74 of file imageinfdlg.h.

Referenced by ImageInfDlg(), and loadData().

QLineEdit* ImageInfDlg::sunAz [protected]

sun azimuth

Definition at line 75 of file imageinfdlg.h.

Referenced by ImageInfDlg(), and loadData().

QLineEdit* ImageInfDlg::sunElev [protected]

sun elevation

Definition at line 76 of file imageinfdlg.h.

Referenced by ImageInfDlg(), and loadData().

QLineEdit* ImageInfDlg::instAz [protected]

instrument azimuth

Definition at line 77 of file imageinfdlg.h.

Referenced by ImageInfDlg(), and loadData().

QLineEdit* ImageInfDlg::instZen [protected]

instrument zenith

Definition at line 78 of file imageinfdlg.h.

Referenced by ImageInfDlg(), and loadData().

QLineEdit* ImageInfDlg::proj [protected]

projection

Definition at line 79 of file imageinfdlg.h.

Referenced by ImageInfDlg(), and loadData().

validates date/time stamp

Definition at line 81 of file imageinfdlg.h.

Referenced by ImageInfDlg().


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

Home | Search | Disclaimers & Privacy | Contact Us
GLIMSView Maintainer: dsoltesz@usgs.gov