Isis Developer Reference
AbstractImageItem.h
Go to the documentation of this file.
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();
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.
Definition AbstractImageItem.h:34
void * getPointer() const
Definition AbstractImageItem.cpp:68
InternalPointerType getPointerType() const
Definition AbstractImageItem.cpp:63
virtual void sourceDeleted()
This method is required to be implemented by the parent AbstractTreeItem class, but for this it's a N...
Definition AbstractImageItem.cpp:86
bool isDataEditable(QString columnTitle) const
Definition AbstractImageItem.cpp:55
virtual ~AbstractImageItem()
Definition AbstractImageItem.cpp:29
void deleteSource()
Definition AbstractImageItem.cpp:60
bool hasImage(QString imageSerial) const
Definition AbstractImageItem.cpp:73
AbstractImageItem(QString imageSerial, ControlNet *net, int avgCharWidth, AbstractTreeItem *parent=0)
Definition AbstractImageItem.cpp:21
QVariant getData() const
Definition AbstractImageItem.cpp:37
void setData(QString const &columnTitle, QString const &newData)
Definition AbstractImageItem.cpp:50
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 network
Definition ControlNet.h:258
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16