QGIS API Documentation  2.8.6-Wien
Public Member Functions | Protected Attributes | List of all members
QgsRandomColorsV2 Class Reference

#include <qgsvectorcolorrampv2.h>

Inheritance diagram for QgsRandomColorsV2:
Inheritance graph
[legend]

Public Member Functions

 QgsRandomColorsV2 ()
 
 ~QgsRandomColorsV2 ()
 
QgsVectorColorRampV2clone () const override
 
QColor color (double value) const override
 
int count () const override
 Returns number of defined colors, or -1 if undefined. More...
 
QgsStringMap properties () const override
 
virtual void setTotalColorCount (const int colorCount)
 
QString type () const override
 
double value (int index) const override
 Returns relative value between [0,1] of color at specified index. More...
 
- Public Member Functions inherited from QgsVectorColorRampV2
virtual ~QgsVectorColorRampV2 ()
 

Protected Attributes

QList< QColor > mPrecalculatedColors
 
int mTotalColorCount
 

Detailed Description

Definition at line 167 of file qgsvectorcolorrampv2.h.

Constructor & Destructor Documentation

QgsRandomColorsV2::QgsRandomColorsV2 ( )

Definition at line 363 of file qgsvectorcolorrampv2.cpp.

QgsRandomColorsV2::~QgsRandomColorsV2 ( )

Definition at line 368 of file qgsvectorcolorrampv2.cpp.

Member Function Documentation

QgsVectorColorRampV2 * QgsRandomColorsV2::clone ( ) const
overridevirtual

Implements QgsVectorColorRampV2.

Definition at line 441 of file qgsvectorcolorrampv2.cpp.

QColor QgsRandomColorsV2::color ( double  value) const
overridevirtual

Implements QgsVectorColorRampV2.

Definition at line 384 of file qgsvectorcolorrampv2.cpp.

int QgsRandomColorsV2::count ( ) const
overridevirtual

Returns number of defined colors, or -1 if undefined.

Implements QgsVectorColorRampV2.

Definition at line 373 of file qgsvectorcolorrampv2.cpp.

QgsStringMap QgsRandomColorsV2::properties ( ) const
overridevirtual

Implements QgsVectorColorRampV2.

Definition at line 446 of file qgsvectorcolorrampv2.cpp.

void QgsRandomColorsV2::setTotalColorCount ( const int  colorCount)
virtual

Definition at line 404 of file qgsvectorcolorrampv2.cpp.

QString QgsRandomColorsV2::type ( ) const
overridevirtual

Implements QgsVectorColorRampV2.

Definition at line 436 of file qgsvectorcolorrampv2.cpp.

double QgsRandomColorsV2::value ( int  index) const
overridevirtual

Returns relative value between [0,1] of color at specified index.

Implements QgsVectorColorRampV2.

Definition at line 378 of file qgsvectorcolorrampv2.cpp.

Member Data Documentation

QList<QColor> QgsRandomColorsV2::mPrecalculatedColors
protected

Definition at line 196 of file qgsvectorcolorrampv2.h.

int QgsRandomColorsV2::mTotalColorCount
protected

Definition at line 195 of file qgsvectorcolorrampv2.h.


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