#include <mapdisplay.h>
Inheritance diagram for MapRenderer:

Protected Member Functions | |
| MapRenderer () | |
| 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 | |
| SigC::Signal2< void, Surface &, int > | additionalItemDisplayHook |
Static Protected Attributes | |
| static const int | surfaceBorder = 90 |
Classes | |
| class | FieldRenderInfo |
| struct | Icons |
| struct | ViewPort |
Definition at line 35 of file mapdisplay.h.
| MapRenderer::MapRenderer | ( | ) | [protected] |
Definition at line 378 of file mapdisplay.cpp.
| int MapRenderer::getFieldPosX | ( | int | x, | |
| int | y | |||
| ) | [inline, protected] |
Definition at line 74 of file mapdisplay.h.
References fielddisthalfx, fielddistx, and surfaceBorder.
Referenced by MapDisplayPG::displayMovementStep(), getFieldPos(), getFieldPos2(), MapDisplayPG::MapDisplayPG(), and MapDisplayPG::widgetPos2mapPos().
| int MapRenderer::getFieldPosY | ( | int | x, | |
| int | y | |||
| ) | [inline, protected] |
Definition at line 82 of file mapdisplay.h.
References fielddisty, and surfaceBorder.
Referenced by MapDisplayPG::displayMovementStep(), getFieldPos(), getFieldPos2(), MapDisplayPG::MapDisplayPG(), and MapDisplayPG::widgetPos2mapPos().
| SPoint MapRenderer::getFieldPos | ( | int | x, | |
| int | y | |||
| ) | [inline, protected] |
Definition at line 86 of file mapdisplay.h.
References getFieldPosX(), and getFieldPosY().
Referenced by MapDisplayPG::mapGlobalPos2internalPos(), MapDisplayPG::mapViewPos2internalPos(), paintBackground(), paintTerrain(), and WholeMapRenderer::renderVisibility().
| SPoint MapRenderer::getFieldPos2 | ( | const MapCoordinate & | pos | ) | [inline, protected] |
Definition at line 89 of file mapdisplay.h.
References getFieldPosX(), getFieldPosY(), MapCoordinate::x, and MapCoordinate::y.
Referenced by MapDisplayPG::initMovementStructure().
| void MapRenderer::paintSingleField | ( | const MapRenderer::FieldRenderInfo & | fieldInfo, | |
| int | layer, | |||
| const SPoint & | pos | |||
| ) | [protected] |
Definition at line 425 of file mapdisplay.cpp.
References MapField::a, MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::blit(), MapField::building, chhochfliegend, chschwimmend, MapRenderer::FieldRenderInfo::fld, Building::getLocalCoordinate(), ContainerBase::getOwner(), MapField::getWeather(), Vehicle::height, ContainerBaseType::height, MapField::mines, MapField::objects, Vehicle::paint(), TerrainType::Weather::paint(), Building::paintSingleField(), MapRenderer::FieldRenderInfo::playerView, MapRenderer::FieldRenderInfo::pos, MapRenderer::FieldRenderInfo::surface, tempsvisible, Building::typ, MapField::typ, MapField::vehicle, MapRenderer::FieldRenderInfo::visibility, Building::visible, visible_ago, visible_all, and visible_not.
Referenced by MapDisplayPG::displayMovementStep(), and paintTerrain().
| void MapRenderer::paintTerrain | ( | Surface & | surf, | |
| GameMap * | actmap, | |||
| int | playerView, | |||
| const ViewPort & | viewPort, | |||
| const MapCoordinate & | offset | |||
| ) | [protected] |
Definition at line 547 of file mapdisplay.cpp.
References actmap, additionalItemDisplayHook, fieldVisibility(), MapRenderer::FieldRenderInfo::fld, GameMap::getField(), getFieldPos(), GameMap::graphicset, paintBackgroundField(), paintSingleField(), MapRenderer::FieldRenderInfo::playerView, MapRenderer::FieldRenderInfo::pos, MapRenderer::FieldRenderInfo::visibility, MapCoordinate::x, MapRenderer::ViewPort::x1, MapRenderer::ViewPort::x2, MapCoordinate::y, MapRenderer::ViewPort::y1, and MapRenderer::ViewPort::y2.
Referenced by MapDisplayPG::fillSurface(), and WholeMapRenderer::render().
Definition at line 533 of file mapdisplay.cpp.
References getFieldPos(), paintBackgroundField(), MapRenderer::ViewPort::x1, MapRenderer::ViewPort::x2, MapRenderer::ViewPort::y1, and MapRenderer::ViewPort::y2.
Referenced by MapDisplayPG::paintBackground().
| int MapRenderer::bitmappedHeight2pass | ( | int | height | ) | [protected] |
Definition at line 419 of file mapdisplay.cpp.
References getFirstBit().
Referenced by MapDisplayPG::displayAddons().
| void MapRenderer::addMapLayer | ( | MapLayer * | mapLayer | ) | [inline, protected] |
const int MapRenderer::surfaceBorder = 90 [static, protected] |
Definition at line 65 of file mapdisplay.h.
Referenced by MapDisplayPG::createMovementBufferSurface(), getFieldPosX(), getFieldPosY(), MapDisplayPG::internal2widget(), MapDisplayPG::setNewZoom(), MapDisplayPG::widgetPos2mapPos(), WholeMapRenderer::writePCX(), and WholeMapRenderer::writePNG().
SigC::Signal2<void,Surface&,int> MapRenderer::additionalItemDisplayHook [protected] |
Definition at line 100 of file mapdisplay.h.
Referenced by MapDisplayPG::MapDisplayPG(), and paintTerrain().
1.5.1