alaCarte Maps
Renderer for OpenStreetMap tiles
PNGRenderCanvas Class Reference

This file is part of alaCarte. More...

Inheritance diagram for PNGRenderCanvas:
RenderCanvas

Public Member Functions

 PNGRenderCanvas ()
 
 PNGRenderCanvas (unsigned int layerWidth, unsigned int layerHeight, unsigned int sliceWidth, unsigned int sliceHeight)
 
virtual ~PNGRenderCanvas ()=default
 
virtual void clear ()
 Clears every layer. Should always be called before use. More...
 
virtual CairoLayergetImageLayers ()
 Layers to paint the MetaTile onto. More...
 
virtual CairoLayergetSliceLayer ()
 Get layer that is the size of a final tile for slicing. More...
 
virtual Tile::ImageType copySliceImage ()
 Returns the rendered slice. More...
 
- Public Member Functions inherited from RenderCanvas
virtual ~RenderCanvas ()=default
 

Private Attributes

CairoLayer layers [LAYER_NUM]
 
CairoLayer slice
 

Additional Inherited Members

- Public Types inherited from RenderCanvas
enum  {
  LAYER_FILL = 0, LAYER_CASING, LAYER_STROKE, LAYER_ICONS,
  LAYER_LABELS, LAYER_NUM
}
 Layers contained in a canvas, used as index for CairoLayer vector. More...
 

Detailed Description

This file is part of alaCarte.

alaCarte is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

alaCarte is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with alaCarte. If not, see http://www.gnu.org/licenses/.

Copyright alaCarte 2012-2013 Simon Dreher, Florian Jacob, Tobias Kahlert, Patrick Niklaus, Bernhard Scheirle, Lisa Winter Maintainer: Patrick Niklaus

Definition at line 45 of file render_canvas.cpp.

Constructor & Destructor Documentation

PNGRenderCanvas::PNGRenderCanvas ( )
inline

Definition at line 52 of file render_canvas.cpp.

PNGRenderCanvas::PNGRenderCanvas ( unsigned int  layerWidth,
unsigned int  layerHeight,
unsigned int  sliceWidth,
unsigned int  sliceHeight 
)

Definition at line 118 of file render_canvas.cpp.

virtual PNGRenderCanvas::~PNGRenderCanvas ( )
virtualdefault

Member Function Documentation

void PNGRenderCanvas::clear ( )
virtual

Clears every layer. Should always be called before use.

Implements RenderCanvas.

Definition at line 140 of file render_canvas.cpp.

Tile::ImageType PNGRenderCanvas::copySliceImage ( )
virtual

Returns the rendered slice.

Implements RenderCanvas.

Definition at line 148 of file render_canvas.cpp.

virtual CairoLayer* PNGRenderCanvas::getImageLayers ( )
inlinevirtual

Layers to paint the MetaTile onto.

Implements RenderCanvas.

Definition at line 64 of file render_canvas.cpp.

virtual CairoLayer& PNGRenderCanvas::getSliceLayer ( )
inlinevirtual

Get layer that is the size of a final tile for slicing.

Implements RenderCanvas.

Definition at line 65 of file render_canvas.cpp.

Member Data Documentation

CairoLayer PNGRenderCanvas::layers[LAYER_NUM]
private

Definition at line 48 of file render_canvas.cpp.

CairoLayer PNGRenderCanvas::slice
private

Definition at line 49 of file render_canvas.cpp.


The documentation for this class was generated from the following file: