Isis 3 Programmer Reference
AbstractImageItem.h
1#ifndef AbstractImageItem_H
2#define AbstractImageItem_H
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include "AbstractTreeItem.h"
13
14class QString;
15class QVariant;
16
17namespace Isis {
18 class ControlNet;
19
34 class AbstractImageItem : public virtual AbstractTreeItem {
35 public:
36 AbstractImageItem(QString imageSerial, ControlNet *net,
37 int avgCharWidth, AbstractTreeItem *parent = 0);
38 virtual ~AbstractImageItem();
39
40 QVariant getData() const;
41 QVariant getData(QString columnTitle) const;
42 void setData(QString const &columnTitle, QString const &newData);
43 bool isDataEditable(QString columnTitle) const;
44 void deleteSource();
45 InternalPointerType getPointerType() const;
46 void *getPointer() const;
47 bool hasImage(QString imageSerial) const;
48
49
50 protected:
51 virtual void sourceDeleted();
52
53 private: // disable copying of this class
55 const AbstractImageItem &operator=(const AbstractImageItem &other);
56
57
58 private:
59 QPair<QString, ControlNet *> *m_imageAndNet;
60 };
61}
62
63#endif
Base class for an image item in the tree.
virtual void sourceDeleted()
This method is required to be implemented by the parent AbstractTreeItem class, but for this it's a N...
Base class for an item in the tree.
a control network
Definition ControlNet.h:258
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16