Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
 All Classes Functions Enumerations Pages
coloritem.h
1 #ifndef COLORITEM_H
2 #define COLORITEM_H
3 
4 namespace Ilwis {
5 
6 #define clrUNDEF QColor()
7 
8 class ColorItem : public DomainItem
9 {
10 public:
11  ColorItem(const QColor &clr=clrUNDEF);
12 
13  //@override
14  bool isValid() const;
15 
16  //@override
17  QString name() const ;
18 
19  //@override
20  DomainItem *clone() const;
21 
22  //@override
23  IlwisTypes valueType() const;
24 
25  QColor color() const;
26  void color(const QColor clr);
27 
28 private:
29  QColor _color;
30 };
31 
32 typedef QSharedPointer<ColorItem> SPColorItem;
33 
34 
35 }
36 
37 #endif // COLORITEM_H