All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Brief description of class still missing. More...
#include <CoordinateConvert.h>
Public Types | |
enum | Projection { Local, UniversalTransverseMercator } |
Signals | |
void | copyReference () |
Public Member Functions | |
CoordinateConvert (QWidget *parent=0) | |
void | popupCopyMenu (QMenu *m) |
Projection | projection () const |
Point2D | reference () const |
void | saveReference () const |
void | setReference (const Point2D &p) |
void | setUtmZone (const QPoint &z) |
QPoint | utmZone () |
~CoordinateConvert () |
Brief description of class still missing.
Full description of class still missing
QGpGuiTools::CoordinateConvert::CoordinateConvert | ( | QWidget * | parent = 0 | ) |
Description of constructor still missing
References copyReference(), and TRACE.
: QWidget(parent) { TRACE; _copyMenu=0; setupUi(this); connect(copyButton, SIGNAL(pressed()), this, SIGNAL(copyReference())); }
void QGpGuiTools::CoordinateConvert::copyReference | ( | ) | [signal] |
Referenced by CoordinateConvert().
void QGpGuiTools::CoordinateConvert::popupCopyMenu | ( | QMenu * | m | ) |
References Local, TRACE, and UniversalTransverseMercator.
{ TRACE; if(localProjection->isChecked()) { return Local; } else { return UniversalTransverseMercator; } }
Point2D QGpGuiTools::CoordinateConvert::reference | ( | ) | const |
{
return ref->reference();
}
void QGpGuiTools::CoordinateConvert::saveReference | ( | ) | const |
{
return ref->save();
}
void QGpGuiTools::CoordinateConvert::setReference | ( | const Point2D & | p | ) |
void QGpGuiTools::CoordinateConvert::setUtmZone | ( | const QPoint & | z | ) |
{ utmLongZone->setValue(z.x()); utmLatZone->setCurrentIndex(z.y()); }
QPoint QGpGuiTools::CoordinateConvert::utmZone | ( | ) |
{
QPoint z;
z.setX(utmLongZone->value());
z.setY(utmLatZone->currentIndex());
return z;
}