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

#include <qgsvectorcolorrampv2.h>

Inheritance diagram for QgsVectorRandomColorRampV2:
Inheritance graph
[legend]

Public Member Functions

 QgsVectorRandomColorRampV2 (int count=DEFAULT_RANDOM_COUNT, int hueMin=DEFAULT_RANDOM_HUE_MIN, int hueMax=DEFAULT_RANDOM_HUE_MAX, int satMin=DEFAULT_RANDOM_SAT_MIN, int satMax=DEFAULT_RANDOM_SAT_MAX, int valMin=DEFAULT_RANDOM_VAL_MIN, int valMax=DEFAULT_RANDOM_VAL_MAX)
virtual QgsVectorColorRampV2clone () const override
virtual QColor color (double value) const override
int count () const override
int hueMax () const
int hueMin () const
virtual QgsStringMap properties () const override
int satMax () const
int satMin () const
void setCount (int val)
void setHueMax (int val)
void setHueMin (int val)
void setSatMax (int val)
void setSatMin (int val)
void setValMax (int val)
void setValMin (int val)
virtual QString type () const override
void updateColors ()
int valMax () const
int valMin () const
virtual double value (int index) const override
- Public Member Functions inherited from QgsVectorColorRampV2
virtual ~QgsVectorColorRampV2 ()

Static Public Member Functions

static QgsVectorColorRampV2create (const QgsStringMap &properties=QgsStringMap())
static QList< QColor > randomColors (int count, int hueMax=DEFAULT_RANDOM_HUE_MAX, int hueMin=DEFAULT_RANDOM_HUE_MIN, int satMax=DEFAULT_RANDOM_SAT_MAX, int satMin=DEFAULT_RANDOM_SAT_MIN, int valMax=DEFAULT_RANDOM_VAL_MAX, int valMin=DEFAULT_RANDOM_VAL_MIN)
 get a list of random colors

Protected Attributes

QList< QColor > mColors
int mCount
int mHueMax
int mHueMin
int mSatMax
int mSatMin
int mValMax
int mValMin

Detailed Description

Definition at line 115 of file qgsvectorcolorrampv2.h.

Constructor & Destructor Documentation

QgsVectorRandomColorRampV2::QgsVectorRandomColorRampV2 ( int  count = DEFAULT_RANDOM_COUNT,
int  hueMin = DEFAULT_RANDOM_HUE_MIN,
int  hueMax = DEFAULT_RANDOM_HUE_MAX,
int  satMin = DEFAULT_RANDOM_SAT_MIN,
int  satMax = DEFAULT_RANDOM_SAT_MAX,
int  valMin = DEFAULT_RANDOM_VAL_MIN,
int  valMax = DEFAULT_RANDOM_VAL_MAX 
)

Definition at line 263 of file qgsvectorcolorrampv2.cpp.

Member Function Documentation

QgsVectorColorRampV2 * QgsVectorRandomColorRampV2::clone ( ) const
overridevirtual

Implements QgsVectorColorRampV2.

Definition at line 306 of file qgsvectorcolorrampv2.cpp.

QColor QgsVectorRandomColorRampV2::color ( double  value) const
overridevirtual

Implements QgsVectorColorRampV2.

Definition at line 295 of file qgsvectorcolorrampv2.cpp.

int QgsVectorRandomColorRampV2::count ( ) const
inlineoverridevirtual

Implements QgsVectorColorRampV2.

Definition at line 143 of file qgsvectorcolorrampv2.h.

QgsVectorColorRampV2 * QgsVectorRandomColorRampV2::create ( const QgsStringMap properties = QgsStringMap())
static

Definition at line 271 of file qgsvectorcolorrampv2.cpp.

int QgsVectorRandomColorRampV2::hueMax ( ) const
inline

Definition at line 145 of file qgsvectorcolorrampv2.h.

int QgsVectorRandomColorRampV2::hueMin ( ) const
inline

Definition at line 144 of file qgsvectorcolorrampv2.h.

QgsStringMap QgsVectorRandomColorRampV2::properties ( ) const
overridevirtual

Implements QgsVectorColorRampV2.

Definition at line 311 of file qgsvectorcolorrampv2.cpp.

QList< QColor > QgsVectorRandomColorRampV2::randomColors ( int  count,
int  hueMax = DEFAULT_RANDOM_HUE_MAX,
int  hueMin = DEFAULT_RANDOM_HUE_MIN,
int  satMax = DEFAULT_RANDOM_SAT_MAX,
int  satMin = DEFAULT_RANDOM_SAT_MIN,
int  valMax = DEFAULT_RANDOM_VAL_MAX,
int  valMin = DEFAULT_RANDOM_VAL_MIN 
)
static

get a list of random colors

Note
added in 2.4

Definition at line 324 of file qgsvectorcolorrampv2.cpp.

int QgsVectorRandomColorRampV2::satMax ( ) const
inline

Definition at line 147 of file qgsvectorcolorrampv2.h.

int QgsVectorRandomColorRampV2::satMin ( ) const
inline

Definition at line 146 of file qgsvectorcolorrampv2.h.

void QgsVectorRandomColorRampV2::setCount ( int  val)
inline

Definition at line 151 of file qgsvectorcolorrampv2.h.

void QgsVectorRandomColorRampV2::setHueMax ( int  val)
inline

Definition at line 153 of file qgsvectorcolorrampv2.h.

void QgsVectorRandomColorRampV2::setHueMin ( int  val)
inline

Definition at line 152 of file qgsvectorcolorrampv2.h.

void QgsVectorRandomColorRampV2::setSatMax ( int  val)
inline

Definition at line 155 of file qgsvectorcolorrampv2.h.

void QgsVectorRandomColorRampV2::setSatMin ( int  val)
inline

Definition at line 154 of file qgsvectorcolorrampv2.h.

void QgsVectorRandomColorRampV2::setValMax ( int  val)
inline

Definition at line 157 of file qgsvectorcolorrampv2.h.

void QgsVectorRandomColorRampV2::setValMin ( int  val)
inline

Definition at line 156 of file qgsvectorcolorrampv2.h.

virtual QString QgsVectorRandomColorRampV2::type ( ) const
inlineoverridevirtual

Implements QgsVectorColorRampV2.

Definition at line 129 of file qgsvectorcolorrampv2.h.

void QgsVectorRandomColorRampV2::updateColors ( )

Definition at line 356 of file qgsvectorcolorrampv2.cpp.

int QgsVectorRandomColorRampV2::valMax ( ) const
inline

Definition at line 149 of file qgsvectorcolorrampv2.h.

int QgsVectorRandomColorRampV2::valMin ( ) const
inline

Definition at line 148 of file qgsvectorcolorrampv2.h.

double QgsVectorRandomColorRampV2::value ( int  index) const
overridevirtual

Implements QgsVectorColorRampV2.

Definition at line 289 of file qgsvectorcolorrampv2.cpp.

Member Data Documentation

QList<QColor> QgsVectorRandomColorRampV2::mColors
protected

Definition at line 162 of file qgsvectorcolorrampv2.h.

int QgsVectorRandomColorRampV2::mCount
protected

Definition at line 160 of file qgsvectorcolorrampv2.h.

int QgsVectorRandomColorRampV2::mHueMax
protected

Definition at line 161 of file qgsvectorcolorrampv2.h.

int QgsVectorRandomColorRampV2::mHueMin
protected

Definition at line 161 of file qgsvectorcolorrampv2.h.

int QgsVectorRandomColorRampV2::mSatMax
protected

Definition at line 161 of file qgsvectorcolorrampv2.h.

int QgsVectorRandomColorRampV2::mSatMin
protected

Definition at line 161 of file qgsvectorcolorrampv2.h.

int QgsVectorRandomColorRampV2::mValMax
protected

Definition at line 161 of file qgsvectorcolorrampv2.h.

int QgsVectorRandomColorRampV2::mValMin
protected

Definition at line 161 of file qgsvectorcolorrampv2.h.


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