|
Pol
Rev 533
|
#include <mapserver.h>
Inheritance diagram for MapServer:
Collaboration diagram for MapServer:Public Member Functions | |
| virtual | ~MapServer () |
| virtual MAPCELL | GetMapCell (unsigned short x, unsigned short y) const =0 |
| void | GetMapShapes (MapShapeList &list, unsigned short x, unsigned short y, unsigned int anyflags) const |
Static Public Member Functions | |
| static MapServer * | Create (const RealmDescriptor &descriptor) |
Protected Member Functions | |
| MapServer (const RealmDescriptor &descriptor) | |
Protected Attributes | |
| RealmDescriptor | _descriptor |
Private Member Functions | |
| MapServer (const MapServer &) | |
| void | LoadFirstLevelIndex () |
| void | LoadSecondLevelIndex () |
| void | LoadSolids () |
| MapServer & | operator= (const MapServer &) |
Private Attributes | |
| vector< SOLIDX2_ELEM * > | _index1 |
| vector< SOLIDX2_ELEM > | _index2 |
| vector< SOLIDS_ELEM > | _shapedata |
Definition at line 19 of file mapserver.h.
| MapServer::~MapServer | ( | ) | [virtual] |
Definition at line 35 of file mapserver.cpp.
| MapServer::MapServer | ( | const RealmDescriptor & | descriptor | ) | [explicit, protected] |
Definition at line 24 of file mapserver.cpp.
References LoadFirstLevelIndex(), LoadSecondLevelIndex(), and LoadSolids().
Here is the call graph for this function:| MapServer::MapServer | ( | const MapServer & | ) | [private] |
| MapServer * MapServer::Create | ( | const RealmDescriptor & | descriptor | ) | [static] |
Definition at line 151 of file mapserver.cpp.
References RealmDescriptor::mapserver_type.
Referenced by mapdump().
Here is the caller graph for this function:| virtual MAPCELL MapServer::GetMapCell | ( | unsigned short | x, |
| unsigned short | y | ||
| ) | const [pure virtual] |
Implemented in FileMapServer, and InMemoryMapServer.
Referenced by GetMapShapes(), and mapdump().
Here is the caller graph for this function:| void MapServer::GetMapShapes | ( | MapShapeList & | list, |
| unsigned short | x, | ||
| unsigned short | y, | ||
| unsigned int | anyflags | ||
| ) | const |
Definition at line 108 of file mapserver.cpp.
References _descriptor, _index1, _shapedata, MapShape::flags, SOLIDS_ELEM::flags, MAPCELL::flags, GetMapCell(), MapShape::height, RealmDescriptor::height, SOLIDS_ELEM::height, FLAG::MORE_SOLIDS, passert, SOLIDX_X_CELLMASK, SOLIDX_X_SHIFT, SOLIDX_Y_CELLMASK, SOLIDX_Y_SHIFT, RealmDescriptor::width, MapShape::z, SOLIDS_ELEM::z, and MAPCELL::z.
Referenced by mapdump().
Here is the call graph for this function:
Here is the caller graph for this function:| void MapServer::LoadFirstLevelIndex | ( | ) | [private] |
Definition at line 82 of file mapserver.cpp.
References _descriptor, _index1, _index2, RealmDescriptor::height, RealmDescriptor::path(), BinaryFile::Read(), SOLIDX2_FILLER_SIZE, SOLIDX_X_SIZE, SOLIDX_Y_SIZE, and RealmDescriptor::width.
Referenced by MapServer().
Here is the call graph for this function:
Here is the caller graph for this function:| void MapServer::LoadSecondLevelIndex | ( | ) | [private] |
Definition at line 47 of file mapserver.cpp.
References _descriptor, _index2, _shapedata, SOLIDX2_ELEM::addindex, SOLIDX2_ELEM::baseindex, decint(), BinaryFile::FileSize(), filesize(), passert, RealmDescriptor::path(), BinaryFile::Read(), BinaryFile::Seek(), SOLIDX2_FILLER_SIZE, SOLIDX_X_SIZE, SOLIDX_Y_SIZE, and x.
Referenced by MapServer().
Here is the call graph for this function:
Here is the caller graph for this function:| void MapServer::LoadSolids | ( | ) | [private] |
Definition at line 39 of file mapserver.cpp.
References _descriptor, _shapedata, RealmDescriptor::path(), and BinaryFile::ReadVector().
Referenced by MapServer().
Here is the call graph for this function:
Here is the caller graph for this function:RealmDescriptor MapServer::_descriptor [protected] |
Definition at line 32 of file mapserver.h.
Referenced by FileMapServer::FileMapServer(), InMemoryMapServer::GetMapCell(), FileMapServer::GetMapCell(), GetMapShapes(), InMemoryMapServer::InMemoryMapServer(), LoadFirstLevelIndex(), LoadSecondLevelIndex(), and LoadSolids().
vector< SOLIDX2_ELEM* > MapServer::_index1 [private] |
Definition at line 36 of file mapserver.h.
Referenced by GetMapShapes(), and LoadFirstLevelIndex().
vector< SOLIDX2_ELEM > MapServer::_index2 [private] |
Definition at line 37 of file mapserver.h.
Referenced by LoadFirstLevelIndex(), and LoadSecondLevelIndex().
vector< SOLIDS_ELEM > MapServer::_shapedata [private] |
Definition at line 38 of file mapserver.h.
Referenced by GetMapShapes(), LoadSecondLevelIndex(), and LoadSolids().