|
| | QgsCptCityColorRamp (const QString &schemeName, const QStringList &variantList, const QString &variantName=QString(), bool inverted=false, bool doLoadFile=true) |
| | Constructor for QgsCptCityColorRamp.
|
| | QgsCptCityColorRamp (const QString &schemeName=DEFAULT_CPTCITY_SCHEMENAME, const QString &variantName=DEFAULT_CPTCITY_VARIANTNAME, bool inverted=false, bool doLoadFile=true) |
| | Constructor for QgsCptCityColorRamp.
|
| QgsCptCityColorRamp * | clone () const override |
| | Creates a clone of the color ramp.
|
| QgsGradientColorRamp * | cloneGradientRamp () const |
| void | copy (const QgsCptCityColorRamp *other) |
| QString | copyingFileName () const |
| QgsStringMap | copyingInfo () const |
| QString | descFileName () const |
| bool | fileLoaded () const |
| QString | fileName () const |
| bool | hasMultiStops () const |
| void | invert () override |
| | Inverts the ordering of the color ramp.
|
| bool | loadFile () |
| void | loadPalette () |
| QVariantMap | properties () const override |
| | Returns a string map containing all the color ramp's properties.
|
| QString | schemeName () const |
| void | setName (const QString &schemeName, const QString &variantName=QString(), const QStringList &variantList=QStringList()) |
| void | setSchemeName (const QString &schemeName) |
| void | setVariantList (const QStringList &variantList) |
| void | setVariantName (const QString &variantName) |
| QString | type () const override |
| | Returns a string representing the color ramp type.
|
| QStringList | variantList () const |
| QString | variantName () const |
| | QgsGradientColorRamp (const QColor &color1=DEFAULT_GRADIENT_COLOR1, const QColor &color2=DEFAULT_GRADIENT_COLOR2, bool discrete=false, const QgsGradientStopsList &stops=QgsGradientStopsList()) |
| | Constructor for QgsGradientColorRamp.
|
| void | addStopsToGradient (QGradient *gradient, double opacity=1) const |
| | Copy color ramp stops to a QGradient.
|
| QgsGradientColorRamp * | clone () const override |
| | Creates a clone of the color ramp.
|
| QColor | color (double value) const override |
| | Returns the color corresponding to a specified value.
|
| QColor | color1 () const |
| | Returns the gradient start color.
|
| QColor | color2 () const |
| | Returns the gradient end color.
|
| QColor::Spec | colorSpec () const |
| | Returns the color specification in which the color component interpolation will occur.
|
| void | convertToDiscrete (bool discrete) |
| | Converts a gradient with existing color stops to or from discrete interpolation.
|
| int | count () const override |
| | Returns number of defined colors, or -1 if undefined.
|
| Qgis::AngularDirection | direction () const |
| | Returns the direction to traverse the color wheel using when interpolating hue-based color specifications.
|
| QgsStringMap | info () const |
| | Returns any additional info attached to the gradient ramp (e.g., authorship notes).
|
| void | invert () override |
| | Inverts the ordering of the color ramp.
|
| bool | isDiscrete () const |
| | Returns true if the gradient is using discrete interpolation, rather than smoothly interpolating between colors.
|
| QVariantMap | properties () const override |
| | Returns a string map containing all the color ramp's properties.
|
| void | setColor1 (const QColor &color) |
| | Sets the gradient start color.
|
| void | setColor2 (const QColor &color) |
| | Sets the gradient end color.
|
| void | setColorSpec (QColor::Spec spec) |
| | Sets the color specification in which the color component interpolation will occur.
|
| void | setDirection (Qgis::AngularDirection direction) |
| | Sets the direction to traverse the color wheel using when interpolating hue-based color specifications.
|
| void | setDiscrete (bool discrete) |
| | Sets whether the gradient should use discrete interpolation, rather than smoothly interpolating between colors.
|
| void | setInfo (const QgsStringMap &info) |
| | Sets additional info to attach to the gradient ramp (e.g., authorship notes).
|
| void | setStops (const QgsGradientStopsList &stops) |
| | Sets the list of intermediate gradient stops for the ramp.
|
| QgsGradientStopsList | stops () const |
| | Returns the list of intermediate gradient stops for the ramp.
|
| QString | type () const override |
| | Returns a string representing the color ramp type.
|
| double | value (int index) const override |
| | Returns relative value between [0,1] of color at specified index.
|
| virtual | ~QgsColorRamp () |
|
| static std::unique_ptr< QgsColorRamp > | create (const QVariantMap &properties=QVariantMap()) |
| | Creates the symbol layer.
|
| static QString | fileNameForVariant (const QString &schema, const QString &variant) |
| | Returns the source file name for a CPT schema and variant.
|
| static QString | typeString () |
| | Returns the string identifier for QgsCptCityColorRamp.
|
| static std::unique_ptr< QgsColorRamp > | create (const QVariantMap &properties=QVariantMap()) |
| | Creates a new QgsColorRamp from a map of properties.
|
| static QString | typeString () |
| | Returns the string identifier for QgsGradientColorRamp.
|
| static QList< QPair< QString, QString > > | rampTypes () |
| | Returns a list of available ramp types, where the first value in each item is the QgsColorRamp::type() string and the second is a user friendly, translated name for the color ramp type.
|
A color ramp from the CPT City collection.
Definition at line 710 of file qgscolorrampimpl.h.