rendering

package
v0.0.0-...-518b87e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2015 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathSymbolizer

type PathSymbolizer struct {
	query.Filter
	// contains filtered or unexported fields
}

func (*PathSymbolizer) Draw

func (ps *PathSymbolizer) Draw(gc draw2d.GraphicContext, shape geom.Shape)

type PolygonSymbolizer

type PolygonSymbolizer struct {
	query.Filter
	// contains filtered or unexported fields
}

func (*PolygonSymbolizer) Draw

func (ps *PolygonSymbolizer) Draw(gc draw2d.GraphicContext, shape geom.Shape)

type Renderer

type Renderer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewRenderer

func NewRenderer(m *mapping.Map, width, height int) *Renderer

func (*Renderer) ClipTo

func (r *Renderer) ClipTo(lng0, lat0, lng1, lat1 float64)

func (*Renderer) ClipToMap

func (r *Renderer) ClipToMap() error

func (*Renderer) Draw

func (r *Renderer) Draw() image.Image

func (*Renderer) DrawAdjustedToFile

func (r *Renderer) DrawAdjustedToFile(filename string) error

func (*Renderer) DrawToFile

func (r *Renderer) DrawToFile(filename string) error

type SubImage

type SubImage interface {
	SubImage(r image.Rectangle) image.Image
}

type Symbolizer

type Symbolizer interface {
	Applies(shape geom.Shape) bool
	Draw(gc draw2d.GraphicContext, shape geom.Shape)
}

type TextSymbolizer

type TextSymbolizer struct {
	query.Filter
	// contains filtered or unexported fields
}

func (*TextSymbolizer) Draw

func (ts *TextSymbolizer) Draw(gc draw2d.GraphicContext, shape geom.Shape)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL