QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
QgsComposerRasterSymbolItem Class Reference

#include <qgscomposerlegenditem.h>

Inheritance diagram for QgsComposerRasterSymbolItem:
Inheritance graph
[legend]

Public Member Functions

 QgsComposerRasterSymbolItem ()
 QgsComposerRasterSymbolItem (const QString &text)
 QgsComposerRasterSymbolItem (const QIcon &icon, const QString &text)
virtual ~QgsComposerRasterSymbolItem ()
virtual QStandardItem * clone () const override
QColor color () const
ItemType itemType () const override
QString layerID () const
virtual void readXML (const QDomElement &itemElem, bool xServerAvailable=true) override
 Read item content from xml.
void setColor (const QColor &c)
void setLayerID (const QString &id)
virtual void writeXML (QDomElement &elem, QDomDocument &doc) const override
- Public Member Functions inherited from QgsComposerLegendItem
 QgsComposerLegendItem (QgsComposerLegendStyle::Style s=QgsComposerLegendStyle::Undefined)
 QgsComposerLegendItem (const QString &text, QgsComposerLegendStyle::Style s=QgsComposerLegendStyle::Undefined)
 QgsComposerLegendItem (const QIcon &icon, const QString &text, QgsComposerLegendStyle::Style s=QgsComposerLegendStyle::Undefined)
virtual ~QgsComposerLegendItem ()
void setStyle (QgsComposerLegendStyle::Style style)
virtual void setUserText (const QString &text)
QgsComposerLegendStyle::Style style () const
virtual QString userText () const

Additional Inherited Members

- Public Types inherited from QgsComposerLegendItem
enum  ItemType {
  GroupItem = QStandardItem::UserType, LayerItem, SymbologyV2Item, RasterSymbolItem,
  StyleItem
}
- Protected Member Functions inherited from QgsComposerLegendItem
void writeXMLChildren (QDomElement &elem, QDomDocument &doc) const
- Protected Attributes inherited from QgsComposerLegendItem
QgsComposerLegendStyle::Style mStyle
QString mUserText

Detailed Description

Definition at line 97 of file qgscomposerlegenditem.h.

Constructor & Destructor Documentation

QgsComposerRasterSymbolItem::QgsComposerRasterSymbolItem ( )

Definition at line 150 of file qgscomposerlegenditem.cpp.

QgsComposerRasterSymbolItem::QgsComposerRasterSymbolItem ( const QString &  text)

Definition at line 154 of file qgscomposerlegenditem.cpp.

QgsComposerRasterSymbolItem::QgsComposerRasterSymbolItem ( const QIcon &  icon,
const QString &  text 
)

Definition at line 158 of file qgscomposerlegenditem.cpp.

QgsComposerRasterSymbolItem::~QgsComposerRasterSymbolItem ( )
virtual

Definition at line 162 of file qgscomposerlegenditem.cpp.

Member Function Documentation

QStandardItem * QgsComposerRasterSymbolItem::clone ( ) const
overridevirtual

Implements QgsComposerLegendItem.

Definition at line 166 of file qgscomposerlegenditem.cpp.

QColor QgsComposerRasterSymbolItem::color ( void  ) const
inline

Definition at line 115 of file qgscomposerlegenditem.h.

ItemType QgsComposerRasterSymbolItem::itemType ( ) const
inlineoverridevirtual

Implements QgsComposerLegendItem.

Definition at line 112 of file qgscomposerlegenditem.h.

QString QgsComposerRasterSymbolItem::layerID ( ) const
inline

Definition at line 111 of file qgscomposerlegenditem.h.

void QgsComposerRasterSymbolItem::readXML ( const QDomElement &  itemElem,
bool  xServerAvailable = true 
)
overridevirtual

Read item content from xml.

Parameters
itemElemitem to read from
xServerAvailableRead item icons if true (QIcon needs x-server)

Implements QgsComposerLegendItem.

Definition at line 184 of file qgscomposerlegenditem.cpp.

void QgsComposerRasterSymbolItem::setColor ( const QColor &  c)
inline

Definition at line 114 of file qgscomposerlegenditem.h.

void QgsComposerRasterSymbolItem::setLayerID ( const QString &  id)
inline

Definition at line 110 of file qgscomposerlegenditem.h.

void QgsComposerRasterSymbolItem::writeXML ( QDomElement &  elem,
QDomDocument &  doc 
) const
overridevirtual

Implements QgsComposerLegendItem.

Definition at line 174 of file qgscomposerlegenditem.cpp.


The documentation for this class was generated from the following files: