Isis 3 Developer Reference
AbstractImageItem.h
Go to the documentation of this file.
1 #ifndef AbstractImageItem_H
2 #define AbstractImageItem_H
3 
4 
5 #include "AbstractTreeItem.h"
6 
7 class QString;
8 class QVariant;
9 
10 namespace Isis {
11  class ControlNet;
12 
27  class AbstractImageItem : public virtual AbstractTreeItem {
28  public:
29  AbstractImageItem(QString imageSerial, ControlNet *net,
30  int avgCharWidth, AbstractTreeItem *parent = 0);
31  virtual ~AbstractImageItem();
32 
33  QVariant getData() const;
34  QVariant getData(QString columnTitle) const;
35  void setData(QString const &columnTitle, QString const &newData);
36  bool isDataEditable(QString columnTitle) const;
37  void deleteSource();
39  void *getPointer() const;
40  bool hasImage(QString imageSerial) const;
41 
42 
43  protected:
44  virtual void sourceDeleted();
45 
46  private: // disable copying of this class
48  const AbstractImageItem &operator=(const AbstractImageItem &other);
49 
50 
51  private:
52  QPair<QString, ControlNet *> *m_imageAndNet;
53  };
54 }
55 
56 #endif
void setData(QString const &columnTitle, QString const &newData)
Definition: AbstractImageItem.cpp:44
bool isDataEditable(QString columnTitle) const
Definition: AbstractImageItem.cpp:49
InternalPointerType
Definition: AbstractTreeItem.h:36
AbstractTreeItem * parent() const
Definition: AbstractTreeItem.cpp:38
virtual ~AbstractImageItem()
Definition: AbstractImageItem.cpp:23
bool hasImage(QString imageSerial) const
Definition: AbstractImageItem.cpp:67
a control network
Definition: ControlNet.h:271
InternalPointerType getPointerType() const
Definition: AbstractImageItem.cpp:57
QVariant getData() const
Definition: AbstractImageItem.cpp:31
AbstractImageItem(QString imageSerial, ControlNet *net, int avgCharWidth, AbstractTreeItem *parent=0)
Definition: AbstractImageItem.cpp:15
void * getPointer() const
Definition: AbstractImageItem.cpp:62
virtual void sourceDeleted()
This method is required to be implemented by the parent AbstractTreeItem class, but for this it&#39;s a N...
Definition: AbstractImageItem.cpp:80
Base class for an image item in the tree.
Definition: AbstractImageItem.h:27
void deleteSource()
Definition: AbstractImageItem.cpp:54
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Base class for an item in the tree.
Definition: AbstractTreeItem.h:31
Definition: CubeIoHandler.h:39