Isis Developer Reference
AbstractPointItem.h
Go to the documentation of this file.
1#ifndef AbstractPointItem_H
2#define AbstractPointItem_H
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include "AbstractTreeItem.h"
13
14
15class QString;
16class QVariant;
17
18
19namespace Isis {
20 class ControlPoint;
21 class Distance;
22 class Latitude;
23 class Longitude;
24 class SurfacePoint;
25 class TableColumnList;
26
50 class AbstractPointItem : public virtual AbstractTreeItem {
51 public:
52 // If a column is added or removed then make sure you also update
53 // the COLS constant that immediately follows this enum.
80 static const int COLS = 24;
81
82 static QString getColumnName(Column);
83 static Column getColumn(QString);
85 static void resetColumnHeaders(TableColumnList *columns);
86
87
88 public:
89 AbstractPointItem(ControlPoint *cp, int avgCharWidth,
91 virtual ~AbstractPointItem();
92
93 QVariant getData() const;
94 QVariant getData(QString columnTitle) const;
95 void setData(QString const &columnTitle, QString const &newData);
96 bool isDataEditable(QString columnTitle) const;
97 void deleteSource();
99 void *getPointer() const;
100 bool hasPoint(ControlPoint *) const;
101
102
103 protected:
104 virtual void sourceDeleted();
105
106
107 private:
109 const AbstractPointItem &operator=(const AbstractPointItem &other);
110
111 SurfacePoint prepareSigmas(Distance, SurfacePoint);
112 SurfacePoint prepareXYZSigmas(Distance, SurfacePoint);
113 SurfacePoint prepareSurfacePoint(Latitude, SurfacePoint);
114 SurfacePoint prepareSurfacePoint(Longitude, SurfacePoint);
115 SurfacePoint prepareSurfacePoint(Distance, SurfacePoint);
116 SurfacePoint prepareSurfacePoint(SurfacePoint);
117
118
119 private:
120 ControlPoint *m_point;
121 };
122}
123
124#endif
Base class for a point item in the tree.
Definition AbstractPointItem.h:50
virtual void sourceDeleted()
Definition AbstractPointItem.cpp:751
InternalPointerType getPointerType() const
Definition AbstractPointItem.cpp:737
void setData(QString const &columnTitle, QString const &newData)
Definition AbstractPointItem.cpp:418
void deleteSource()
Definition AbstractPointItem.cpp:717
QVariant getData() const
Definition AbstractPointItem.cpp:233
virtual ~AbstractPointItem()
Definition AbstractPointItem.cpp:228
static const int COLS
Definition AbstractPointItem.h:80
static TableColumnList * createColumns()
Definition AbstractPointItem.cpp:162
bool hasPoint(ControlPoint *) const
Definition AbstractPointItem.cpp:747
void * getPointer() const
Definition AbstractPointItem.cpp:742
static void resetColumnHeaders(TableColumnList *columns)
Resets pertinent point table column headers based on the active point coordinate display type (Lat/Lo...
Definition AbstractPointItem.cpp:243
static QString getColumnName(Column)
Definition AbstractPointItem.cpp:28
Column
Definition AbstractPointItem.h:54
@ APrioriSPCoord1Sigma
Definition AbstractPointItem.h:71
@ Reference
Definition AbstractPointItem.h:61
@ APrioriRadiusSourceFile
Definition AbstractPointItem.h:77
@ APrioriSPSourceFile
Definition AbstractPointItem.h:75
@ APrioriSPCoord2
Definition AbstractPointItem.h:69
@ Id
Definition AbstractPointItem.h:55
@ AdjustedSPCoord3
Definition AbstractPointItem.h:64
@ AdjustedSPCoord3Sigma
Definition AbstractPointItem.h:67
@ AdjustedSPCoord1
Definition AbstractPointItem.h:62
@ EditLock
Definition AbstractPointItem.h:59
@ APrioriSPCoord3
Definition AbstractPointItem.h:70
@ APrioriSPCoord1
Definition AbstractPointItem.h:68
@ APrioriSPSource
Definition AbstractPointItem.h:74
@ AdjustedSPCoord1Sigma
Definition AbstractPointItem.h:65
@ JigsawRejected
Definition AbstractPointItem.h:78
@ APrioriRadiusSource
Definition AbstractPointItem.h:76
@ Ignored
Definition AbstractPointItem.h:60
@ DateTime
Definition AbstractPointItem.h:58
@ ChooserName
Definition AbstractPointItem.h:57
@ AdjustedSPCoord2
Definition AbstractPointItem.h:63
@ APrioriSPCoord3Sigma
Definition AbstractPointItem.h:73
@ AdjustedSPCoord2Sigma
Definition AbstractPointItem.h:66
@ APrioriSPCoord2Sigma
Definition AbstractPointItem.h:72
AbstractPointItem(ControlPoint *cp, int avgCharWidth, AbstractTreeItem *parent=0)
Definition AbstractPointItem.cpp:217
bool isDataEditable(QString columnTitle) const
Definition AbstractPointItem.cpp:703
static Column getColumn(QString)
Definition AbstractPointItem.cpp:150
Base class for an item in the tree.
Definition AbstractTreeItem.h:39
AbstractTreeItem * parent() const
Definition AbstractTreeItem.cpp:43
InternalPointerType
Definition AbstractTreeItem.h:44
A single control point.
Definition ControlPoint.h:356
Distance measurement, usually in meters.
Definition Distance.h:34
This class is designed to encapsulate the concept of a Latitude.
Definition Latitude.h:51
This class is designed to encapsulate the concept of a Longitude.
Definition Longitude.h:40
This class defines a body-fixed surface point.
Definition SurfacePoint.h:132
Definition TableColumnList.h:30
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16