Isis Developer Reference
AbstractMeasureItem.h
Go to the documentation of this file.
1#ifndef AbstractMeasureItem_H
2#define AbstractMeasureItem_H
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12
13#include "AbstractTreeItem.h"
14
15
16class QString;
17class QVariant;
18
19
20namespace Isis {
21 class ControlMeasure;
22 class TableColumnList;
23
37 class AbstractMeasureItem : public virtual AbstractTreeItem {
38 public:
39 // If a column is added or removed then make sure you also update
40 // the COLS constant that immediately follows this enum.
66 static const int COLS = 23;
67
68 static QString getColumnName(Column);
69 static Column getColumn(QString);
71
72
73 public:
74 AbstractMeasureItem(ControlMeasure *cm, int avgCharWidth,
76 virtual ~AbstractMeasureItem();
77
78 virtual QVariant getData() const;
79 virtual QVariant getData(QString columnTitle) const;
80 virtual void setData(QString const &columnTitle,
81 QString const &newData);
82 bool isDataEditable(QString columnTitle) const;
83 virtual void deleteSource();
84 virtual InternalPointerType getPointerType() const;
85 virtual void *getPointer() const;
86 virtual bool hasMeasure(ControlMeasure *) const;
87
88
89 protected:
90 virtual void sourceDeleted();
91
92
93 private: // disable copying of this class
95 const AbstractMeasureItem &operator=(
96 const AbstractMeasureItem &other);
97
98
99 private:
100 static void setLogData(ControlMeasure *, int, const QString &);
101
102
103 private:
104 ControlMeasure *m_measure;
105 };
106}
107
108#endif
Base class for a measure item in the tree.
Definition AbstractMeasureItem.h:37
virtual QVariant getData() const
Definition AbstractMeasureItem.cpp:157
virtual void * getPointer() const
Definition AbstractMeasureItem.cpp:392
static QString getColumnName(Column)
Definition AbstractMeasureItem.cpp:27
virtual void deleteSource()
Definition AbstractMeasureItem.cpp:357
virtual InternalPointerType getPointerType() const
Definition AbstractMeasureItem.cpp:386
virtual void setData(QString const &columnTitle, QString const &newData)
Definition AbstractMeasureItem.cpp:243
Column
Definition AbstractMeasureItem.h:41
@ SampleShift
Definition AbstractMeasureItem.h:54
@ ImageId
Definition AbstractMeasureItem.h:43
@ Obsolete_Eccentricity
Definition AbstractMeasureItem.h:50
@ Line
Definition AbstractMeasureItem.h:45
@ SampleSigma
Definition AbstractMeasureItem.h:56
@ LineSigma
Definition AbstractMeasureItem.h:57
@ APrioriLine
Definition AbstractMeasureItem.h:59
@ GoodnessOfFit
Definition AbstractMeasureItem.h:51
@ Reference
Definition AbstractMeasureItem.h:48
@ EditLock
Definition AbstractMeasureItem.h:46
@ MinPixelZScore
Definition AbstractMeasureItem.h:52
@ APrioriSample
Definition AbstractMeasureItem.h:58
@ Sample
Definition AbstractMeasureItem.h:44
@ JigsawRejected
Definition AbstractMeasureItem.h:61
@ Ignored
Definition AbstractMeasureItem.h:47
@ ResidualSample
Definition AbstractMeasureItem.h:62
@ PointId
Definition AbstractMeasureItem.h:42
@ ResidualLine
Definition AbstractMeasureItem.h:63
@ LineShift
Definition AbstractMeasureItem.h:55
@ ResidualMagnitude
Definition AbstractMeasureItem.h:64
@ Diameter
Definition AbstractMeasureItem.h:60
@ MaxPixelZScore
Definition AbstractMeasureItem.h:53
static Column getColumn(QString)
Definition AbstractMeasureItem.cpp:81
static const int COLS
Definition AbstractMeasureItem.h:66
virtual void sourceDeleted()
Definition AbstractMeasureItem.cpp:402
virtual bool hasMeasure(ControlMeasure *) const
Definition AbstractMeasureItem.cpp:397
AbstractMeasureItem(ControlMeasure *cm, int avgCharWidth, AbstractTreeItem *parent=0)
Definition AbstractMeasureItem.cpp:141
virtual ~AbstractMeasureItem()
Definition AbstractMeasureItem.cpp:152
bool isDataEditable(QString columnTitle) const
Definition AbstractMeasureItem.cpp:344
static TableColumnList * createColumns()
Definition AbstractMeasureItem.cpp:94
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 control measurement
Definition ControlMeasure.h:175
Definition TableColumnList.h:30
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16