Isis 3 Programmer Reference
AbstractMeasureItem.h
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,
42  Obsolete_Eccentricity = 8,
43  GoodnessOfFit = 9,
44  MinPixelZScore = 10,
45  MaxPixelZScore = 11,
46  SampleShift = 12,
47  LineShift = 13,
48  SampleSigma = 14,
49  LineSigma = 15,
50  APrioriSample = 16,
51  APrioriLine = 17,
52  Diameter = 18,
53  JigsawRejected = 19,
54  ResidualSample = 20,
55  ResidualLine = 21,
56  ResidualMagnitude = 22
57  };
58  static const int COLS = 23;
59 
60  static QString getColumnName(Column);
61  static Column getColumn(QString);
62  static TableColumnList *createColumns();
63 
64 
65  public:
66  AbstractMeasureItem(ControlMeasure *cm, int avgCharWidth,
67  AbstractTreeItem *parent = 0);
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
Base class for a measure item in the tree.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
a control measurement
Base class for an item in the tree.