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
40 class AbstractPointItem : public virtual AbstractTreeItem {
41 public:
42 // If a column is added or removed then make sure you also update
43 // the COLS constant that immediately follows this enum.
70 static const int COLS = 24;
71
72 static QString getColumnName(Column);
73 static Column getColumn(QString);
75
76
77 public:
78 AbstractPointItem(ControlPoint *cp, int avgCharWidth,
80 virtual ~AbstractPointItem();
81
82 QVariant getData() const;
83 QVariant getData(QString columnTitle) const;
84 void setData(QString const &columnTitle, QString const &newData);
85 bool isDataEditable(QString columnTitle) const;
86 void deleteSource();
88 void *getPointer() const;
89 bool hasPoint(ControlPoint *) const;
90
91
92 protected:
93 virtual void sourceDeleted();
94
95
96 private:
98 const AbstractPointItem &operator=(const AbstractPointItem &other);
99
100 SurfacePoint prepareSigmas(Distance, SurfacePoint);
101 SurfacePoint prepareSurfacePoint(Latitude, SurfacePoint);
102 SurfacePoint prepareSurfacePoint(Longitude, SurfacePoint);
103 SurfacePoint prepareSurfacePoint(Distance, SurfacePoint);
104 SurfacePoint prepareSurfacePoint(SurfacePoint);
105
106
107 private:
108 ControlPoint *m_point;
109 };
110}
111
112#endif
Base class for a point item in the tree.
Definition AbstractPointItem.h:40
virtual void sourceDeleted()
Definition AbstractPointItem.cpp:475
InternalPointerType getPointerType() const
Definition AbstractPointItem.cpp:461
void setData(QString const &columnTitle, QString const &newData)
Definition AbstractPointItem.cpp:267
void deleteSource()
Definition AbstractPointItem.cpp:441
QVariant getData() const
Definition AbstractPointItem.cpp:167
virtual ~AbstractPointItem()
Definition AbstractPointItem.cpp:162
static const int COLS
Definition AbstractPointItem.h:70
static TableColumnList * createColumns()
Definition AbstractPointItem.cpp:96
bool hasPoint(ControlPoint *) const
Definition AbstractPointItem.cpp:471
void * getPointer() const
Definition AbstractPointItem.cpp:466
static QString getColumnName(Column)
Definition AbstractPointItem.cpp:28
Column
Definition AbstractPointItem.h:44
@ APrioriSPLonSigma
Definition AbstractPointItem.h:62
@ Reference
Definition AbstractPointItem.h:51
@ APrioriSPLon
Definition AbstractPointItem.h:59
@ APrioriRadiusSourceFile
Definition AbstractPointItem.h:67
@ APrioriSPSourceFile
Definition AbstractPointItem.h:65
@ Id
Definition AbstractPointItem.h:45
@ AdjustedSPLonSigma
Definition AbstractPointItem.h:56
@ APrioriSPLat
Definition AbstractPointItem.h:58
@ AdjustedSPRadius
Definition AbstractPointItem.h:54
@ EditLock
Definition AbstractPointItem.h:49
@ AdjustedSPLon
Definition AbstractPointItem.h:53
@ APrioriSPLatSigma
Definition AbstractPointItem.h:61
@ APrioriSPSource
Definition AbstractPointItem.h:64
@ AdjustedSPRadiusSigma
Definition AbstractPointItem.h:57
@ JigsawRejected
Definition AbstractPointItem.h:68
@ APrioriRadiusSource
Definition AbstractPointItem.h:66
@ Ignored
Definition AbstractPointItem.h:50
@ DateTime
Definition AbstractPointItem.h:48
@ ChooserName
Definition AbstractPointItem.h:47
@ AdjustedSPLatSigma
Definition AbstractPointItem.h:55
@ APrioriSPRadius
Definition AbstractPointItem.h:60
@ AdjustedSPLat
Definition AbstractPointItem.h:52
@ APrioriSPRadiusSigma
Definition AbstractPointItem.h:63
AbstractPointItem(ControlPoint *cp, int avgCharWidth, AbstractTreeItem *parent=0)
Definition AbstractPointItem.cpp:151
bool isDataEditable(QString columnTitle) const
Definition AbstractPointItem.cpp:427
static Column getColumn(QString)
Definition AbstractPointItem.cpp:84
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