Package mapnik :: Module _mapnik :: Class Stroke

Class Stroke

 object --+    
          |    
??.instance --+
              |
             Stroke

Instance Methods
 
__getinitargs__(...)
__getinitargs__( (Stroke)arg1) -> tuple :
 
__getstate__(...)
__getstate__( (Stroke)arg1) -> tuple :
 
__init__(...)
__init__( (object)arg1) -> None : Creates a new default black stroke with the width of 1.
 
__reduce__(...)
helper for pickle
 
__setstate__(...)
__setstate__( (Stroke)arg1, (tuple)arg2) -> None :
 
add_dash(...)
add_dash( (Stroke)arg1, (float)length, (float)gap) -> None : Adds a dash segment to the dash patterns of this stroke.
 
get_dashes(...)
get_dashes( (Stroke)arg1) -> list : Returns the list of dash segments for this stroke.

Inherited from unreachable.instance: __new__

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

Class Variables
  __instance_size__ = 88
  __safe_for_unpickling__ = True
Properties
  color
Gets or sets the stroke color.
  dash_offset
Gets or sets dash offset of this stroke.
  gamma
Gets or sets the gamma of this stroke.
  line_cap
Gets or sets the line cap of this stroke.
  line_join
Returns the line join mode of this stroke.
  opacity
Gets or sets the opacity of this stroke.
  width
Gets or sets the stroke width in pixels.

Inherited from object: __class__

Method Details

__getinitargs__(...)

 

__getinitargs__( (Stroke)arg1) -> tuple :

    C++ signature :
        boost::python::tuple __getinitargs__(mapnik::stroke)

__getstate__(...)

 

__getstate__( (Stroke)arg1) -> tuple :

    C++ signature :
        boost::python::tuple __getstate__(mapnik::stroke)

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :
    Creates a new default black stroke with the width of 1.
    

    C++ signature :
        void __init__(_object*)

__init__( (object)arg1, (Color)color, (float)width) -> None :
    Creates a new stroke object with a specified color and width.
    

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

Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

__setstate__(...)

 

__setstate__( (Stroke)arg1, (tuple)arg2) -> None :

    C++ signature :
        void __setstate__(mapnik::stroke {lvalue},boost::python::tuple)

add_dash(...)

 

add_dash( (Stroke)arg1, (float)length, (float)gap) -> None :
    Adds a dash segment to the dash patterns of this stroke.
    

    C++ signature :
        void add_dash(mapnik::stroke {lvalue},double,double)

get_dashes(...)

 

get_dashes( (Stroke)arg1) -> list :
    Returns the list of dash segments for this stroke.
    

    C++ signature :
        boost::python::list get_dashes(mapnik::stroke)


Property Details

color

Gets or sets the stroke color. Returns a new Color object on retrieval.

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

dash_offset

Gets or sets dash offset of this stroke.

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

gamma

Gets or sets the gamma of this stroke. The value is a float between 0 and 1.

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

line_cap

Gets or sets the line cap of this stroke.

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

line_join

Returns the line join mode of this stroke.

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

opacity

Gets or sets the opacity of this stroke. The value is a float between 0 and 1.

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

width

Gets or sets the stroke width in pixels.

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