Advanced Strategic Command
Public Member Functions | Public Attributes | List of all members
WholeMapRenderer Class Reference

#include <mapimageexport.h>

Inheritance diagram for WholeMapRenderer:
Inheritance graph
[legend]

Public Member Functions

 WholeMapRenderer (GameMap *actmap)
 
void render ()
 
void writePCX (const ASCString &filename)
 
void writePNG (const ASCString &filename)
 
void renderVisibility ()
 

Public Attributes

Surface surface
 

Additional Inherited Members

- Protected Member Functions inherited from MapRenderer
 MapRenderer ()
 
void paintUnitOntoField (const MapRenderer::FieldRenderInfo &fieldInfo, int binaryUnitHeight, const SPoint &pos, Vehicle *vehicle)
 
int getFieldPosX (int x, int y)
 
int getFieldPosY (int x, int y)
 
SPoint getFieldPos (int x, int y)
 
SPoint getFieldPos2 (const MapCoordinate &pos)
 
void paintSingleField (const MapRenderer::FieldRenderInfo &fieldInfo, int layer, const SPoint &pos)
 
void paintTerrain (Surface &surf, GameMap *actmap, int playerView, const ViewPort &viewPort, const MapCoordinate &offset)
 
void paintBackground (Surface &surf, const ViewPort &viewPort)
 
void paintBackgroundField (Surface &surf, SPoint pos)
 
int bitmappedHeight2pass (int height)
 
void addMapLayer (MapLayer *mapLayer)
 
- Protected Attributes inherited from MapRenderer
sigc::signal< void, Surface
&, int > 
additionalItemDisplayHook
 
- Static Protected Attributes inherited from MapRenderer
static const int surfaceBorder = 90
 

Detailed Description

Definition at line 26 of file mapimageexport.h.

Constructor & Destructor Documentation

WholeMapRenderer::WholeMapRenderer ( GameMap actmap)

Member Function Documentation

void WholeMapRenderer::render ( )

Definition at line 47 of file mapimageexport.cpp.

References GameMap::getPlayerView(), MapRenderer::paintTerrain(), and surface.

Referenced by writemaptopcx(), and writemaptostream().

void WholeMapRenderer::renderVisibility ( )
void WholeMapRenderer::writePCX ( const ASCString filename)
void WholeMapRenderer::writePNG ( const ASCString filename)

Member Data Documentation

Surface WholeMapRenderer::surface

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