QGIS API Documentation  master-3f58142
QgsVectorRandomColorRampV2 Class Reference

#include <qgsvectorcolorrampv2.h>

+ Inheritance diagram for QgsVectorRandomColorRampV2:
+ Collaboration diagram for QgsVectorRandomColorRampV2:

List of all members.

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
virtual QColor color (double value) const
int count () const
int hueMax () const
int hueMin () const
virtual QgsStringMap properties () const
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
void updateColors ()
int valMax () const
int valMin () const
virtual double value (int index) const

Static Public Member Functions

static QgsVectorColorRampV2create (const QgsStringMap &properties=QgsStringMap())

Protected Attributes

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

Detailed Description

Definition at line 109 of file qgsvectorcolorrampv2.h.


Constructor & Destructor Documentation

Definition at line 225 of file qgsvectorcolorrampv2.cpp.

References updateColors().

Referenced by clone(), and create().


Member Function Documentation

QColor QgsVectorRandomColorRampV2::color ( double  value) const [virtual]

Implements QgsVectorColorRampV2.

Definition at line 257 of file qgsvectorcolorrampv2.cpp.

References mColors.

void QgsVectorRandomColorRampV2::setCount ( int  val) [inline]

Definition at line 139 of file qgsvectorcolorrampv2.h.

Referenced by QgsVectorRandomColorRampV2Dialog::setCount().

void QgsVectorRandomColorRampV2::setHueMax ( int  val) [inline]

Definition at line 141 of file qgsvectorcolorrampv2.h.

Referenced by QgsVectorRandomColorRampV2Dialog::setHue2().

void QgsVectorRandomColorRampV2::setHueMin ( int  val) [inline]

Definition at line 140 of file qgsvectorcolorrampv2.h.

Referenced by QgsVectorRandomColorRampV2Dialog::setHue1().

void QgsVectorRandomColorRampV2::setSatMax ( int  val) [inline]

Definition at line 143 of file qgsvectorcolorrampv2.h.

Referenced by QgsVectorRandomColorRampV2Dialog::setSat2().

void QgsVectorRandomColorRampV2::setSatMin ( int  val) [inline]

Definition at line 142 of file qgsvectorcolorrampv2.h.

Referenced by QgsVectorRandomColorRampV2Dialog::setSat1().

void QgsVectorRandomColorRampV2::setValMax ( int  val) [inline]

Definition at line 145 of file qgsvectorcolorrampv2.h.

Referenced by QgsVectorRandomColorRampV2Dialog::setVal2().

void QgsVectorRandomColorRampV2::setValMin ( int  val) [inline]

Definition at line 144 of file qgsvectorcolorrampv2.h.

Referenced by QgsVectorRandomColorRampV2Dialog::setVal1().

virtual QString QgsVectorRandomColorRampV2::type ( ) const [inline, virtual]

Implements QgsVectorColorRampV2.

Definition at line 123 of file qgsvectorcolorrampv2.h.

double QgsVectorRandomColorRampV2::value ( int  index) const [virtual]

Implements QgsVectorColorRampV2.

Definition at line 251 of file qgsvectorcolorrampv2.cpp.

References mColors.


Member Data Documentation

QList<QColor> QgsVectorRandomColorRampV2::mColors [protected]

Definition at line 150 of file qgsvectorcolorrampv2.h.

Referenced by color(), updateColors(), and value().

Definition at line 148 of file qgsvectorcolorrampv2.h.

Referenced by clone(), properties(), and updateColors().

Definition at line 149 of file qgsvectorcolorrampv2.h.

Referenced by clone(), properties(), and updateColors().

Definition at line 149 of file qgsvectorcolorrampv2.h.

Referenced by clone(), properties(), and updateColors().

Definition at line 149 of file qgsvectorcolorrampv2.h.

Referenced by clone(), properties(), and updateColors().

Definition at line 149 of file qgsvectorcolorrampv2.h.

Referenced by clone(), properties(), and updateColors().

Definition at line 149 of file qgsvectorcolorrampv2.h.

Referenced by clone(), properties(), and updateColors().

Definition at line 149 of file qgsvectorcolorrampv2.h.

Referenced by clone(), properties(), and updateColors().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines