Package mapnik :: Module _mapnik :: Class ColorizerStop

Class ColorizerStop

 object --+    
          |    
??.instance --+
              |
             ColorizerStop

Instance Methods
 
__eq__(...)
__eq__( (ColorizerStop)arg1, (ColorizerStop)arg2) -> object :
 
__init__(...)
__init__( (object)arg1, (float)arg2, (ColorizerMode)arg3, (Color)arg4) -> None : A Colorizer Stop object.
 
__reduce__(...)
helper for pickle
 
__str__(...)
__str__( (ColorizerStop)arg1) -> str :

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables
  __instance_size__ = 40
Properties
  color
The stop color (mapnik.Color).
  label
The stop label.
  mode
The stop mode (mapnik.ColorizerMode).
  value
The stop value.

Inherited from object: __class__

Method Details

__eq__(...)
(Equality operator)

 

__eq__( (ColorizerStop)arg1, (ColorizerStop)arg2) -> object :

    C++ signature :
        _object* __eq__(mapnik::colorizer_stop {lvalue},mapnik::colorizer_stop)

__init__(...)
(Constructor)

 

__init__( (object)arg1, (float)arg2, (ColorizerMode)arg3, (Color)arg4) -> None :
    A Colorizer Stop object.
    Create with a value, ColorizerMode, and Color
    
    Usage:>>> color = mapnik.Color("#fff000")
    >>> stop= mapnik.ColorizerStop(42.42, mapnik.COLORIZER_LINEAR, color)
    

    C++ signature :
        void __init__(_object*,float,mapnik::colorizer_mode_enum,mapnik::color)

Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

__str__(...)
(Informal representation operator)

 

__str__( (ColorizerStop)arg1) -> str :

    C++ signature :
        std::string __str__(mapnik::colorizer_stop {lvalue})

Overrides: object.__str__

Property Details

color

The stop color (mapnik.Color).

Get Method:
unreachable(...)
Set Method:
unreachable(...)

label

The stop label.

Get Method:
unreachable(...)
Set Method:
unreachable(...)

mode

The stop mode (mapnik.ColorizerMode).

If this is COLORIZER_INHERIT then it will inherit the default mode
 from the RasterColorizer it is added to.

Get Method:
unreachable(...)
Set Method:
unreachable(...)

value

The stop value.

Get Method:
unreachable(...)
Set Method:
unreachable(...)