QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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 double value (int index) const
 
virtual QColor color (double value) const
 
virtual QString type () const
 
virtual QgsVectorColorRampV2clone () const
 
virtual QgsStringMap properties () const
 
void updateColors ()
 
int count () const
 
int hueMin () const
 
int hueMax () const
 
int satMin () const
 
int satMax () const
 
int valMin () const
 
int valMax () const
 
void setCount (int val)
 
void setHueMin (int val)
 
void setHueMax (int val)
 
void setSatMin (int val)
 
void setSatMax (int val)
 
void setValMin (int val)
 
void setValMax (int val)
 
- 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 More...
 

Protected Attributes

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

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 
)

Member Function Documentation

QgsVectorColorRampV2 * QgsVectorRandomColorRampV2::clone ( ) const
virtual

Implements QgsVectorColorRampV2.

QColor QgsVectorRandomColorRampV2::color ( double  value) const
virtual

Implements QgsVectorColorRampV2.

int QgsVectorRandomColorRampV2::count ( ) const
inlinevirtual

Implements QgsVectorColorRampV2.

QgsVectorColorRampV2 * QgsVectorRandomColorRampV2::create ( const QgsStringMap properties = QgsStringMap())
static
int QgsVectorRandomColorRampV2::hueMax ( ) const
inline
int QgsVectorRandomColorRampV2::hueMin ( ) const
inline
QgsStringMap QgsVectorRandomColorRampV2::properties ( ) const
virtual

Implements QgsVectorColorRampV2.

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
int QgsVectorRandomColorRampV2::satMax ( ) const
inline
int QgsVectorRandomColorRampV2::satMin ( ) const
inline
void QgsVectorRandomColorRampV2::setCount ( int  val)
inline
void QgsVectorRandomColorRampV2::setHueMax ( int  val)
inline
void QgsVectorRandomColorRampV2::setHueMin ( int  val)
inline
void QgsVectorRandomColorRampV2::setSatMax ( int  val)
inline
void QgsVectorRandomColorRampV2::setSatMin ( int  val)
inline
void QgsVectorRandomColorRampV2::setValMax ( int  val)
inline
void QgsVectorRandomColorRampV2::setValMin ( int  val)
inline
virtual QString QgsVectorRandomColorRampV2::type ( ) const
inlinevirtual

Implements QgsVectorColorRampV2.

void QgsVectorRandomColorRampV2::updateColors ( )
int QgsVectorRandomColorRampV2::valMax ( ) const
inline
int QgsVectorRandomColorRampV2::valMin ( ) const
inline
double QgsVectorRandomColorRampV2::value ( int  index) const
virtual

Implements QgsVectorColorRampV2.

Member Data Documentation

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

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