#include <QueueVisualizerBase.h>
void inet::visualizer::QueueVisualizerBase::addQueueVisualization |
( |
const QueueVisualization * |
queueVisualization | ) |
|
|
protectedvirtual |
void inet::visualizer::QueueVisualizerBase::addQueueVisualizations |
( |
| ) |
|
|
protectedvirtual |
Referenced by handleParameterChange(), and initialize().
83 auto simulation = getSimulation();
84 QueueVisitor queueVisitor;
85 simulation->getSystemModule()->forEachChild(&queueVisitor);
86 for (
auto queue : queueVisitor.queues) {
virtual void addQueueVisualization(const QueueVisualization *queueVisualization)
Definition: QueueVisualizerBase.cc:71
bool matches(const PacketQueue *queue) const
Definition: QueueFilter.cc:29
QueueFilter queueFilter
Definition: QueueVisualizerBase.h:57
virtual QueueVisualization * createQueueVisualization(PacketQueue *queue) const =0
void inet::visualizer::QueueVisualizerBase::handleParameterChange |
( |
const char * |
name | ) |
|
|
overrideprotectedvirtual |
59 if (name !=
nullptr) {
virtual void removeAllQueueVisualizations()
Definition: QueueVisualizerBase.cc:92
virtual void addQueueVisualizations()
Definition: QueueVisualizerBase.cc:81
void inet::visualizer::QueueVisualizerBase::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::visualizer::VisualizerBase.
Reimplemented in inet::visualizer::QueueOsgVisualizer, and inet::visualizer::QueueCanvasVisualizer.
Referenced by inet::visualizer::QueueCanvasVisualizer::initialize().
40 if (!hasGUI())
return;
44 color = cFigure::parseColor(par(
"color"));
double width
Definition: QueueVisualizerBase.h:59
double spacing
Definition: QueueVisualizerBase.h:61
cFigure::Color color
Definition: QueueVisualizerBase.h:58
double displacementPriority
Definition: QueueVisualizerBase.h:63
Operations that no other initializations can depend on, e.g.
Definition: InitStages.h:111
virtual void initialize(int stage) override
Definition: VisualizerBase.cc:29
Displacement parseDisplacement(const char *s)
Definition: Displacement.cc:24
Local initializations.
Definition: InitStages.h:35
Displacement displacementHint
Definition: QueueVisualizerBase.h:62
virtual void addQueueVisualizations()
Definition: QueueVisualizerBase.cc:81
QueueFilter queueFilter
Definition: QueueVisualizerBase.h:57
void setPattern(const char *pattern)
Definition: QueueFilter.cc:24
bool displayQueues
Definition: QueueVisualizerBase.h:56
double height
Definition: QueueVisualizerBase.h:60
void inet::visualizer::QueueVisualizerBase::refreshDisplay |
( |
| ) |
const |
|
overrideprotectedvirtual |
virtual void refreshQueueVisualization(const QueueVisualization *queueVisualization) const =0
std::vector< const QueueVisualization * > queueVisualizations
Definition: QueueVisualizerBase.h:66
virtual void inet::visualizer::QueueVisualizerBase::refreshQueueVisualization |
( |
const QueueVisualization * |
queueVisualization | ) |
const |
|
protectedpure virtual |
void inet::visualizer::QueueVisualizerBase::removeAllQueueVisualizations |
( |
| ) |
|
|
protectedvirtual |
Referenced by handleParameterChange().
96 delete queueVisualization;
virtual void removeQueueVisualization(const QueueVisualization *queueVisualization)
Definition: QueueVisualizerBase.cc:76
std::vector< const QueueVisualization * > queueVisualizations
Definition: QueueVisualizerBase.h:66
void inet::visualizer::QueueVisualizerBase::removeQueueVisualization |
( |
const QueueVisualization * |
queueVisualization | ) |
|
|
protectedvirtual |
cFigure::Color inet::visualizer::QueueVisualizerBase::color |
|
protected |
Displacement inet::visualizer::QueueVisualizerBase::displacementHint |
|
protected |
double inet::visualizer::QueueVisualizerBase::displacementPriority |
|
protected |
bool inet::visualizer::QueueVisualizerBase::displayQueues = false |
|
protected |
double inet::visualizer::QueueVisualizerBase::height |
|
protected |
QueueFilter inet::visualizer::QueueVisualizerBase::queueFilter |
|
protected |
std::vector<const QueueVisualization *> inet::visualizer::QueueVisualizerBase::queueVisualizations |
|
protected |
double inet::visualizer::QueueVisualizerBase::spacing |
|
protected |
double inet::visualizer::QueueVisualizerBase::width |
|
protected |
The documentation for this class was generated from the following files: