QGIS API Documentation  2.7.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
QgsVectorGradientColorRampV2 Class Reference

#include <qgsvectorcolorrampv2.h>

Inheritance diagram for QgsVectorGradientColorRampV2:
Inheritance graph
[legend]

Public Member Functions

 QgsVectorGradientColorRampV2 (QColor color1=DEFAULT_GRADIENT_COLOR1, QColor color2=DEFAULT_GRADIENT_COLOR2, bool discrete=false, QgsGradientStopsList stops=QgsGradientStopsList())
 
void addStopsToGradient (QGradient *gradient, double alpha=1)
 copy color ramp stops to a QGradient More...
 
virtual QgsVectorColorRampV2clone () const
 
virtual QColor color (double value) const
 
QColor color1 () const
 
QColor color2 () const
 
void convertToDiscrete (bool discrete)
 
virtual int count () const
 
QgsStringMap info () const
 
bool isDiscrete () const
 
virtual QgsStringMap properties () const
 
void setColor1 (QColor color)
 
void setColor2 (QColor color)
 
void setDiscrete (bool discrete)
 
void setInfo (const QgsStringMap &info)
 
void setStops (const QgsGradientStopsList &stops)
 
const QgsGradientStopsListstops () const
 
virtual QString type () const
 
virtual double value (int index) const
 
- Public Member Functions inherited from QgsVectorColorRampV2
virtual ~QgsVectorColorRampV2 ()
 

Static Public Member Functions

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

Protected Attributes

QColor mColor1
 
QColor mColor2
 
bool mDiscrete
 
QgsStringMap mInfo
 
QgsGradientStopsList mStops
 

Detailed Description

Definition at line 59 of file qgsvectorcolorrampv2.h.

Constructor & Destructor Documentation

QgsVectorGradientColorRampV2::QgsVectorGradientColorRampV2 ( QColor  color1 = DEFAULT_GRADIENT_COLOR1,
QColor  color2 = DEFAULT_GRADIENT_COLOR2,
bool  discrete = false,
QgsGradientStopsList  stops = QgsGradientStopsList() 
)

Definition at line 44 of file qgsvectorcolorrampv2.cpp.

Member Function Documentation

void QgsVectorGradientColorRampV2::addStopsToGradient ( QGradient *  gradient,
double  alpha = 1 
)

copy color ramp stops to a QGradient

Note
added in 2.1

Definition at line 225 of file qgsvectorcolorrampv2.cpp.

QgsVectorColorRampV2 * QgsVectorGradientColorRampV2::clone ( ) const
virtual

Implements QgsVectorColorRampV2.

Reimplemented in QgsCptCityColorRampV2.

Definition at line 150 of file qgsvectorcolorrampv2.cpp.

QColor QgsVectorGradientColorRampV2::color ( double  value) const
virtual

Implements QgsVectorColorRampV2.

Definition at line 113 of file qgsvectorcolorrampv2.cpp.

QColor QgsVectorGradientColorRampV2::color1 ( ) const
inline

Definition at line 81 of file qgsvectorcolorrampv2.h.

QColor QgsVectorGradientColorRampV2::color2 ( ) const
inline

Definition at line 82 of file qgsvectorcolorrampv2.h.

void QgsVectorGradientColorRampV2::convertToDiscrete ( bool  discrete)

Definition at line 183 of file qgsvectorcolorrampv2.cpp.

virtual int QgsVectorGradientColorRampV2::count ( ) const
inlinevirtual

Implements QgsVectorColorRampV2.

Definition at line 69 of file qgsvectorcolorrampv2.h.

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

Definition at line 50 of file qgsvectorcolorrampv2.cpp.

QgsStringMap QgsVectorGradientColorRampV2::info ( ) const
inline

Definition at line 93 of file qgsvectorcolorrampv2.h.

bool QgsVectorGradientColorRampV2::isDiscrete ( ) const
inline

Definition at line 86 of file qgsvectorcolorrampv2.h.

QgsStringMap QgsVectorGradientColorRampV2::properties ( ) const
virtual

Implements QgsVectorColorRampV2.

Reimplemented in QgsCptCityColorRampV2.

Definition at line 158 of file qgsvectorcolorrampv2.cpp.

void QgsVectorGradientColorRampV2::setColor1 ( QColor  color)
inline

Definition at line 83 of file qgsvectorcolorrampv2.h.

void QgsVectorGradientColorRampV2::setColor2 ( QColor  color)
inline

Definition at line 84 of file qgsvectorcolorrampv2.h.

void QgsVectorGradientColorRampV2::setDiscrete ( bool  discrete)
inline

Definition at line 87 of file qgsvectorcolorrampv2.h.

void QgsVectorGradientColorRampV2::setInfo ( const QgsStringMap info)
inline

Definition at line 94 of file qgsvectorcolorrampv2.h.

void QgsVectorGradientColorRampV2::setStops ( const QgsGradientStopsList stops)
inline

Definition at line 90 of file qgsvectorcolorrampv2.h.

const QgsGradientStopsList& QgsVectorGradientColorRampV2::stops ( ) const
inline

Definition at line 91 of file qgsvectorcolorrampv2.h.

virtual QString QgsVectorGradientColorRampV2::type ( ) const
inlinevirtual

Implements QgsVectorColorRampV2.

Reimplemented in QgsCptCityColorRampV2.

Definition at line 75 of file qgsvectorcolorrampv2.h.

double QgsVectorGradientColorRampV2::value ( int  index) const
virtual

Implements QgsVectorColorRampV2.

Definition at line 97 of file qgsvectorcolorrampv2.cpp.

Member Data Documentation

QColor QgsVectorGradientColorRampV2::mColor1
protected

Definition at line 101 of file qgsvectorcolorrampv2.h.

QColor QgsVectorGradientColorRampV2::mColor2
protected

Definition at line 101 of file qgsvectorcolorrampv2.h.

bool QgsVectorGradientColorRampV2::mDiscrete
protected

Definition at line 102 of file qgsvectorcolorrampv2.h.

QgsStringMap QgsVectorGradientColorRampV2::mInfo
protected

Definition at line 104 of file qgsvectorcolorrampv2.h.

QgsGradientStopsList QgsVectorGradientColorRampV2::mStops
protected

Definition at line 103 of file qgsvectorcolorrampv2.h.


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