INET Framework for OMNeT++/OMNEST
|
#include <LineManager.h>
Classes | |
class | CacheEntry |
class | ModuleLine |
class | ModulePath |
Public Member Functions | |
void | addModuleLine (const ModuleLine *moduleLine) |
void | removeModuleLine (const ModuleLine *moduleLine) |
void | addModulePath (const ModulePath *modulePath) |
void | removeModulePath (const ModulePath *modulePath) |
Coord | getLineShift (int sourceModuleId, int destinationModuleId, const Coord &sourcePosition, const Coord &destinationPosition, const char *shiftMode, int shiftOffset) |
Static Public Member Functions | |
static LineManager * | getLineManager (const cCanvas *canvas) |
Protected Member Functions | |
std::pair< int, int > | getKey (int fromModuleId, int toModuleId) |
void | updateOffsets (int fromModuleId, int toModuleId) |
void | updateOffsets (const ModuleLine *moduleLine) |
void | updateOffsets (const ModulePath *modulePath) |
Static Protected Member Functions | |
static bool | compareModuleLines (const ModuleLine *moduleLine1, const ModuleLine *moduleLine2) |
static bool | compareModulePaths (std::pair< const ModulePath *, int > element1, std::pair< const ModulePath *, int > element2) |
Protected Attributes | |
std::map< std::pair< int, int >, CacheEntry > | cacheEntries |
Static Protected Attributes | |
static std::map< const cCanvas *, LineManager > | lineManagers |
void inet::visualizer::LineManager::addModuleLine | ( | const ModuleLine * | moduleLine | ) |
Referenced by inet::visualizer::LinkCanvasVisualizerBase::addLinkVisualization(), and inet::visualizer::RoutingTableCanvasVisualizer::addRouteVisualization().
void inet::visualizer::LineManager::addModulePath | ( | const ModulePath * | modulePath | ) |
Referenced by inet::visualizer::PathCanvasVisualizerBase::addPathVisualization().
|
staticprotected |
Referenced by updateOffsets().
|
staticprotected |
Referenced by updateOffsets().
|
inlineprotected |
Referenced by addModuleLine(), addModulePath(), getLineShift(), removeModuleLine(), removeModulePath(), and updateOffsets().
|
static |
Referenced by inet::visualizer::RoutingTableVisualizerBase::initialize(), inet::visualizer::LinkVisualizerBase::initialize(), and inet::visualizer::PathVisualizerBase::initialize().
Coord inet::visualizer::LineManager::getLineShift | ( | int | sourceModuleId, |
int | destinationModuleId, | ||
const Coord & | sourcePosition, | ||
const Coord & | destinationPosition, | ||
const char * | shiftMode, | ||
int | shiftOffset | ||
) |
Referenced by inet::visualizer::LinkCanvasVisualizerBase::refreshDisplay(), inet::visualizer::RoutingTableCanvasVisualizer::refreshDisplay(), and inet::visualizer::PathCanvasVisualizerBase::refreshDisplay().
void inet::visualizer::LineManager::removeModuleLine | ( | const ModuleLine * | moduleLine | ) |
Referenced by inet::visualizer::LinkCanvasVisualizerBase::removeLinkVisualization(), and inet::visualizer::RoutingTableCanvasVisualizer::removeRouteVisualization().
void inet::visualizer::LineManager::removeModulePath | ( | const ModulePath * | modulePath | ) |
Referenced by inet::visualizer::PathCanvasVisualizerBase::removePathVisualization().
|
protected |
Referenced by addModuleLine(), addModulePath(), removeModuleLine(), removeModulePath(), and updateOffsets().
|
protected |
|
protected |
|
protected |
Referenced by addModuleLine(), addModulePath(), getLineShift(), removeModuleLine(), removeModulePath(), and updateOffsets().
|
staticprotected |
Referenced by getLineManager().