Subgroup: Cpt
Class: QgsCptCityColorRamp¶
-
class
qgis.core.
QgsCptCityColorRamp
(schemeName: str = '', variantName: str = '', inverted: bool = False, doLoadFile: bool = True)¶ Bases:
qgis._core.QgsGradientColorRamp
Constructor for QgsCptCityColorRamp
Parameters: - schemeName – cpt-city scheme name
- variantName – cpt-city variant name
- inverted – invert ramp ordering
- doLoadFile – load cpt-city ramp from file
QgsCptCityColorRamp(schemeName: str, variantList: Iterable[str], variantName: str = ‘’, inverted: bool = False, doLoadFile: bool = True) Constructor for QgsCptCityColorRamp
Parameters: - schemeName – cpt-city scheme name
- variantList – cpt-city variant list
- variantName – cpt-city variant name
- inverted – invert ramp ordering
- doLoadFile – load cpt-city ramp from file
QgsCptCityColorRamp(QgsCptCityColorRamp)
Methods
addStopsToGradient
Copy color ramp stops to a QGradient clone
cloneGradientRamp
color
color1
Returns the gradient start color. color2
Returns the gradient end color. convertToDiscrete
Converts a gradient with existing color stops to or from discrete interpolation. copy
copyingFileName
copyingInfo
count
create
descFileName
fileLoaded
fileName
hasMultiStops
info
Returns any additional info attached to the gradient ramp (e.g., authorship notes) invert
isDiscrete
Returns true if the gradient is using discrete interpolation, rather than smoothly interpolating between colors. loadFile
loadPalette
properties
schemeName
setColor1
Sets the gradient start color. setColor2
Sets the gradient end color. setDiscrete
Sets whether the gradient should use discrete interpolation, rather than smoothly interpolating between colors. setInfo
Sets additional info to attach to the gradient ramp (e.g., authorship notes) setName
setSchemeName
setStops
Sets the list of intermediate gradient stops for the ramp. setVariantList
setVariantName
stops
Returns the list of intermediate gradient stops for the ramp. type
value
variantList
variantName
Attributes
-
clone
(self) → QgsCptCityColorRamp¶
-
cloneGradientRamp
(self) → QgsGradientColorRamp¶
-
copy
(self, other: QgsCptCityColorRamp)¶
-
copyingFileName
(self) → str¶
-
copyingInfo
(self) → Dict[str, str]¶
-
create
(properties: Dict[str, str] = {}) → QgsColorRamp¶
-
descFileName
(self) → str¶
-
fileLoaded
(self) → bool¶
-
fileName
(self) → str¶
-
hasMultiStops
(self) → bool¶
-
invert
(self)¶
-
loadFile
(self) → bool¶
-
loadPalette
(self)¶
-
properties
(self) → Dict[str, str]¶
-
schemeName
(self) → str¶
-
setName
(self, schemeName: str, variantName: str = '', variantList: Iterable[str] = [])¶
-
setSchemeName
(self, schemeName: str)¶
-
setVariantList
(self, variantList: Iterable[str])¶
-
setVariantName
(self, variantName: str)¶
-
type
(self) → str¶
-
variantList
(self) → List[str]¶
-
variantName
(self) → str¶