Isis 3.0 Programmer Reference
Back | Home
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 
15  namespace CnetViz {
16  class TableColumnList;
17 
30  class AbstractMeasureItem : public virtual AbstractTreeItem {
31  public:
32  // If a column is added or removed then make sure you also update
33  // the COLS constant that immediately follows this enum.
34  enum Column {
35  PointId = 0,
36  ImageId = 1,
37  Sample = 2,
38  Line = 3,
39  EditLock = 4,
40  Ignored = 5,
41  Reference = 6,
42  Type = 7,
43  Obsolete_Eccentricity = 8,
44  GoodnessOfFit = 9,
45  MinPixelZScore = 10,
46  MaxPixelZScore = 11,
47  SampleShift = 12,
48  LineShift = 13,
49  SampleSigma = 14,
50  LineSigma = 15,
51  APrioriSample = 16,
52  APrioriLine = 17,
53  Diameter = 18,
54  JigsawRejected = 19,
55  ResidualSample = 20,
56  ResidualLine = 21,
57  ResidualMagnitude = 22
58  };
59  static const int COLS = 23;
60 
61  static QString getColumnName(Column);
62  static Column getColumn(QString);
63  static TableColumnList *createColumns();
64 
65 
66  public:
67  AbstractMeasureItem(ControlMeasure *cm, int avgCharWidth,
68  AbstractTreeItem *parent = 0);
69  virtual ~AbstractMeasureItem();
70 
71  virtual QVariant getData() const;
72  virtual QVariant getData(QString columnTitle) const;
73  virtual void setData(QString const &columnTitle,
74  QString const &newData);
75  bool isDataEditable(QString columnTitle) const;
76  virtual void deleteSource();
77  virtual InternalPointerType getPointerType() const;
78  virtual void *getPointer() const;
79  virtual bool hasMeasure(ControlMeasure *) const;
80 
81 
82  protected:
83  virtual void sourceDeleted();
84 
85 
86  private: // disable copying of this class
88  const AbstractMeasureItem &operator=(
89  const AbstractMeasureItem &other);
90 
91 
92  private:
93  static void setLogData(ControlMeasure *, int, const QString &);
94 
95 
96  private:
97  ControlMeasure *m_measure;
98  };
99  }
100 }
101 
102 #endif
Base class for an item in the tree.
a control measurement
Base class for a measure item in the tree.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:13:38