Package mapnik :: Module _mapnik :: Class Stroke

Class Stroke

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

Instance Methods
 
__init__(...)
__init__( (object)arg1) -> None : Creates a new default black stroke with the width of 1.
 
__reduce__(...)
helper for pickle
 
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__ = 104
Properties
  color
Gets or sets the stroke color.
  dash_offset
Gets or sets dash offset of this stroke.
  dasharray
Gets or sets dasharray string of this stroke.
  dashoffset
Gets or sets dash offset of this stroke.
  gamma
Gets or sets the gamma of this stroke.
  gamma_method
Set/get the gamma correction method of this stroke
  line_cap
Gets or sets the line cap of this stroke.
  line_join
Returns the line join mode of this stroke.
  linecap
Gets or sets the linecap of this stroke.
  linejoin
Returns the linejoin mode of this stroke.
  miterlimit
Returns the miterlimit 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

__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)

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. (alias of dashoffet)

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

dasharray

Gets or sets dasharray string of this stroke. (alternate property to add_dash/get_dashes)

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

dashoffset

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(...)

gamma_method

Set/get the gamma correction method of this stroke

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

line_cap

Gets or sets the line cap of this stroke. (alias of linecap)

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

line_join

Returns the line join mode of this stroke. (alias of linejoin)

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

linecap

Gets or sets the linecap of this stroke.

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

linejoin

Returns the linejoin mode of this stroke.

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

miterlimit

Returns the miterlimit 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(...)