Isis 3 Developer Reference
AbstractMeasureItem.h
Go to the documentation of this file.
1 #ifndef AbstractMeasureItem_H
2 #define AbstractMeasureItem_H
3 
4 
5 #include "AbstractTreeItem.h"
6 
7 
8 class QString;
9 class QVariant;
10 
11 
12 namespace Isis {
13  class ControlMeasure;
14  class TableColumnList;
15 
29  class AbstractMeasureItem : public virtual AbstractTreeItem {
30  public:
31  // If a column is added or removed then make sure you also update
32  // the COLS constant that immediately follows this enum.
33  enum Column {
34  PointId = 0,
35  ImageId = 1,
36  Sample = 2,
37  Line = 3,
38  EditLock = 4,
39  Ignored = 5,
40  Reference = 6,
41  Type = 7,
47  LineShift = 13,
49  LineSigma = 15,
52  Diameter = 18,
57  };
58  static const int COLS = 23;
59 
60  static QString getColumnName(Column);
61  static Column getColumn(QString);
63 
64 
65  public:
66  AbstractMeasureItem(ControlMeasure *cm, int avgCharWidth,
68  virtual ~AbstractMeasureItem();
69 
70  virtual QVariant getData() const;
71  virtual QVariant getData(QString columnTitle) const;
72  virtual void setData(QString const &columnTitle,
73  QString const &newData);
74  bool isDataEditable(QString columnTitle) const;
75  virtual void deleteSource();
76  virtual InternalPointerType getPointerType() const;
77  virtual void *getPointer() const;
78  virtual bool hasMeasure(ControlMeasure *) const;
79 
80 
81  protected:
82  virtual void sourceDeleted();
83 
84 
85  private: // disable copying of this class
87  const AbstractMeasureItem &operator=(
88  const AbstractMeasureItem &other);
89 
90 
91  private:
92  static void setLogData(ControlMeasure *, int, const QString &);
93 
94 
95  private:
96  ControlMeasure *m_measure;
97  };
98 }
99 
100 #endif
static const int COLS
Definition: AbstractMeasureItem.h:58
Definition: AbstractMeasureItem.h:38
Definition: AbstractMeasureItem.h:41
Definition: AbstractMeasureItem.h:35
Definition: AbstractMeasureItem.h:40
Base class for a measure item in the tree.
Definition: AbstractMeasureItem.h:29
InternalPointerType
Definition: AbstractTreeItem.h:36
Definition: AbstractMeasureItem.h:42
AbstractTreeItem * parent() const
Definition: AbstractTreeItem.cpp:38
virtual bool hasMeasure(ControlMeasure *) const
Definition: AbstractMeasureItem.cpp:392
virtual void * getPointer() const
Definition: AbstractMeasureItem.cpp:387
Definition: AbstractMeasureItem.h:48
Definition: AbstractMeasureItem.h:39
Definition: AbstractMeasureItem.h:47
Definition: AbstractMeasureItem.h:46
Definition: AbstractMeasureItem.h:55
virtual void setData(QString const &columnTitle, QString const &newData)
Definition: AbstractMeasureItem.cpp:238
virtual QVariant getData() const
Definition: AbstractMeasureItem.cpp:152
virtual void deleteSource()
Definition: AbstractMeasureItem.cpp:352
Definition: AbstractMeasureItem.h:34
Definition: AbstractMeasureItem.h:49
virtual InternalPointerType getPointerType() const
Definition: AbstractMeasureItem.cpp:381
virtual void sourceDeleted()
Definition: AbstractMeasureItem.cpp:397
Definition: TableColumnList.h:22
Definition: AbstractMeasureItem.h:43
Definition: AbstractMeasureItem.h:56
virtual ~AbstractMeasureItem()
Definition: AbstractMeasureItem.cpp:147
static QString getColumnName(Column)
Definition: AbstractMeasureItem.cpp:21
Definition: AbstractMeasureItem.h:45
AbstractMeasureItem(ControlMeasure *cm, int avgCharWidth, AbstractTreeItem *parent=0)
Definition: AbstractMeasureItem.cpp:136
static Column getColumn(QString)
Definition: AbstractMeasureItem.cpp:76
Definition: AbstractMeasureItem.h:53
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
a control measurement
Definition: ControlMeasure.h:189
bool isDataEditable(QString columnTitle) const
Definition: AbstractMeasureItem.cpp:339
Definition: AbstractMeasureItem.h:50
Definition: AbstractMeasureItem.h:36
static TableColumnList * createColumns()
Definition: AbstractMeasureItem.cpp:89
Column
Definition: AbstractMeasureItem.h:33
Definition: AbstractMeasureItem.h:51
Base class for an item in the tree.
Definition: AbstractTreeItem.h:31
Definition: AbstractMeasureItem.h:54
Definition: AbstractMeasureItem.h:44
Definition: AbstractMeasureItem.h:37
Definition: AbstractMeasureItem.h:52