OverviewMapPanel Class Reference

#include <overviewmappanel.h>

Inheritance diagram for OverviewMapPanel:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 OverviewMapPanel (PG_Widget *parent, const PG_Rect &r, MapDisplayPG *mapDisplay, const ASCString &widgetName)

Protected Member Functions

void painter (const PG_Rect &src, const ASCString &name, const PG_Rect &dst)
void redraw ()
bool mouseButtonDown (const SDL_MouseButtonEvent *button)
bool mouseMotion (const SDL_MouseMotionEvent *motion)
bool mouseClick (SPoint pos)

Detailed Description

Definition at line 32 of file overviewmappanel.h.


Constructor & Destructor Documentation

OverviewMapPanel::OverviewMapPanel ( PG_Widget *  parent,
const PG_Rect &  r,
MapDisplayPG mapDisplay,
const ASCString widgetName 
)

Definition at line 28 of file overviewmappanel.cpp.

References SpecialDisplayWidget::display, OverviewMapHolder::generationComplete, lockMapdisplay, mouseButtonDown(), mouseMotion(), painter(), redraw(), unlockMapdisplay, and viewChanged.


Member Function Documentation

void OverviewMapPanel::painter ( const PG_Rect &  src,
const ASCString name,
const PG_Rect &  dst 
) [protected]

Definition at line 72 of file overviewmappanel.cpp.

References actmap, MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::blit(), OverviewMapHolder::getOverviewMap(), MapDisplayPG::lowerRightCorner(), OverviewMapImage::map2surface(), GameMap::overviewMapHolder, screen, MapDisplayPG::upperLeftCorner(), and Surface::Wrap().

Referenced by OverviewMapPanel().

void OverviewMapPanel::redraw ( void   )  [inline, protected]

Definition at line 41 of file overviewmappanel.h.

Referenced by OverviewMapPanel().

bool OverviewMapPanel::mouseButtonDown ( const SDL_MouseButtonEvent *  button  )  [protected]

Definition at line 134 of file overviewmappanel.cpp.

References mouseClick().

Referenced by OverviewMapPanel().

bool OverviewMapPanel::mouseMotion ( const SDL_MouseMotionEvent *  motion  )  [protected]

Definition at line 145 of file overviewmappanel.cpp.

References mouseClick().

Referenced by OverviewMapPanel().

bool OverviewMapPanel::mouseClick ( SPoint  pos  )  [protected]

Definition at line 121 of file overviewmappanel.cpp.

References actmap, MapDisplayPG::centerOnField(), OverviewMapImage::surface2map(), MapCoordinate::valid(), MapCoordinate::x, GameMap::xsize, MapCoordinate::y, and GameMap::ysize.

Referenced by mouseButtonDown(), and mouseMotion().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:10 2012 for Advanced Strategic Command by  doxygen 1.5.1