Isis 3 Developer Reference
AbstractPointItem.h
Go to the documentation of this file.
1 #ifndef AbstractPointItem_H
2 #define AbstractPointItem_H
3 
4 #include "AbstractTreeItem.h"
5 
6 
7 class QString;
8 class QVariant;
9 
10 
11 namespace Isis {
12  class ControlPoint;
13  class Distance;
14  class Latitude;
15  class Longitude;
16  class SurfacePoint;
17  class TableColumnList;
18 
32  class AbstractPointItem : public virtual AbstractTreeItem {
33  public:
34  // If a column is added or removed then make sure you also update
35  // the COLS constant that immediately follows this enum.
36  enum Column {
37  Id = 0,
38  PointType = 1,
40  DateTime = 3,
41  EditLock = 4,
42  Ignored = 5,
43  Reference = 6,
61  };
62  static const int COLS = 24;
63 
64  static QString getColumnName(Column);
65  static Column getColumn(QString);
67 
68 
69  public:
70  AbstractPointItem(ControlPoint *cp, int avgCharWidth,
72  virtual ~AbstractPointItem();
73 
74  QVariant getData() const;
75  QVariant getData(QString columnTitle) const;
76  void setData(QString const &columnTitle, QString const &newData);
77  bool isDataEditable(QString columnTitle) const;
78  void deleteSource();
80  void *getPointer() const;
81  bool hasPoint(ControlPoint *) const;
82 
83 
84  protected:
85  virtual void sourceDeleted();
86 
87 
88  private:
90  const AbstractPointItem &operator=(const AbstractPointItem &other);
91 
92  SurfacePoint prepareSigmas(Distance, SurfacePoint);
93  SurfacePoint prepareSurfacePoint(Latitude, SurfacePoint);
94  SurfacePoint prepareSurfacePoint(Longitude, SurfacePoint);
95  SurfacePoint prepareSurfacePoint(Distance, SurfacePoint);
96  SurfacePoint prepareSurfacePoint(SurfacePoint);
97 
98 
99  private:
100  ControlPoint *m_point;
101  };
102 }
103 
104 #endif
This class defines a body-fixed surface point.
Definition: SurfacePoint.h:148
Definition: AbstractPointItem.h:44
Definition: AbstractPointItem.h:42
Definition: AbstractPointItem.h:41
bool isDataEditable(QString columnTitle) const
Definition: AbstractPointItem.cpp:423
Definition: AbstractPointItem.h:37
AbstractPointItem(ControlPoint *cp, int avgCharWidth, AbstractTreeItem *parent=0)
Definition: AbstractPointItem.cpp:146
Definition: AbstractPointItem.h:39
Base class for a point item in the tree.
Definition: AbstractPointItem.h:32
Definition: AbstractPointItem.h:40
void setData(QString const &columnTitle, QString const &newData)
Definition: AbstractPointItem.cpp:262
Definition: AbstractPointItem.h:49
InternalPointerType
Definition: AbstractTreeItem.h:36
virtual ~AbstractPointItem()
Definition: AbstractPointItem.cpp:157
AbstractTreeItem * parent() const
Definition: AbstractTreeItem.cpp:38
This class is designed to encapsulate the concept of a Latitude.
Definition: Latitude.h:63
bool hasPoint(ControlPoint *) const
Definition: AbstractPointItem.cpp:467
static TableColumnList * createColumns()
Definition: AbstractPointItem.cpp:91
static QString getColumnName(Column)
Definition: AbstractPointItem.cpp:22
InternalPointerType getPointerType() const
Definition: AbstractPointItem.cpp:457
Distance measurement, usually in meters.
Definition: Distance.h:47
Definition: AbstractPointItem.h:55
Definition: AbstractPointItem.h:50
Definition: AbstractPointItem.h:59
QVariant getData() const
Definition: AbstractPointItem.cpp:162
Definition: AbstractPointItem.h:47
static Column getColumn(QString)
Definition: AbstractPointItem.cpp:79
This class is designed to encapsulate the concept of a Longitude.
Definition: Longitude.h:52
Definition: AbstractPointItem.h:58
Definition: AbstractPointItem.h:51
Definition: AbstractPointItem.h:45
void * getPointer() const
Definition: AbstractPointItem.cpp:462
Definition: AbstractPointItem.h:38
Definition: TableColumnList.h:22
A single control point.
Definition: ControlPoint.h:369
void deleteSource()
Definition: AbstractPointItem.cpp:437
static const int COLS
Definition: AbstractPointItem.h:62
Definition: AbstractPointItem.h:48
Definition: AbstractPointItem.h:54
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Column
Definition: AbstractPointItem.h:36
Base class for an item in the tree.
Definition: AbstractTreeItem.h:31
Definition: AbstractPointItem.h:52
Definition: AbstractPointItem.h:53
virtual void sourceDeleted()
Definition: AbstractPointItem.cpp:471
Definition: AbstractPointItem.h:46
Definition: AbstractPointItem.h:43
Definition: AbstractPointItem.h:60
Definition: AbstractPointItem.h:56
Definition: AbstractPointItem.h:57