INET Framework for OMNeT++/OMNEST
inet::visualizer::NetworkNodeVisualizerBase Class Reference

#include <NetworkNodeVisualizerBase.h>

Inheritance diagram for inet::visualizer::NetworkNodeVisualizerBase:
inet::visualizer::VisualizerBase inet::visualizer::NetworkNodeCanvasVisualizer inet::visualizer::NetworkNodeOsgVisualizer

Protected Member Functions

virtual void initialize (int stage) override
 
virtual void handleParameterChange (const char *name) override
 
- Protected Member Functions inherited from inet::visualizer::VisualizerBase
virtual int numInitStages () const override
 
virtual Coord getPosition (const cModule *networkNode) const
 
virtual Coord getContactPosition (const cModule *networkNode, const Coord &fromPosition, const char *contactMode, double contactSpacing) const
 
virtual InterfaceEntrygetInterfaceEntry (cModule *networkNode, cModule *module) const
 

Protected Attributes

NetworkNodeFilter nodeFilter
 
double annotationSpacing
 
double displacementPenalty
 
- Protected Attributes inherited from inet::visualizer::VisualizerBase
cModule * visualizerTargetModule = nullptr
 
const char * tags = nullptr
 

Member Function Documentation

void inet::visualizer::NetworkNodeVisualizerBase::handleParameterChange ( const char *  name)
overrideprotectedvirtual
37 {
38  if (name != nullptr) {
39  if (!strcmp(name, "nodeFilter"))
40  nodeFilter.setPattern(par("nodeFilter"));
41  // TODO:
42  }
43 }
void setPattern(const char *pattern)
Definition: NetworkNodeFilter.cc:24
NetworkNodeFilter nodeFilter
Definition: NetworkNodeVisualizerBase.h:31
void inet::visualizer::NetworkNodeVisualizerBase::initialize ( int  stage)
overrideprotectedvirtual

Reimplemented from inet::visualizer::VisualizerBase.

Reimplemented in inet::visualizer::NetworkNodeCanvasVisualizer.

Referenced by inet::visualizer::NetworkNodeCanvasVisualizer::initialize().

26 {
28  if (!hasGUI()) return;
29  if (stage == INITSTAGE_LOCAL) {
30  nodeFilter.setPattern(par("nodeFilter"));
31  annotationSpacing = par("annotationSpacing");
32  displacementPenalty = par("displacementPenalty");
33  }
34 }
void setPattern(const char *pattern)
Definition: NetworkNodeFilter.cc:24
double displacementPenalty
Definition: NetworkNodeVisualizerBase.h:33
virtual void initialize(int stage) override
Definition: VisualizerBase.cc:29
Local initializations.
Definition: InitStages.h:35
NetworkNodeFilter nodeFilter
Definition: NetworkNodeVisualizerBase.h:31
double annotationSpacing
Definition: NetworkNodeVisualizerBase.h:32

Member Data Documentation

double inet::visualizer::NetworkNodeVisualizerBase::annotationSpacing
protected
double inet::visualizer::NetworkNodeVisualizerBase::displacementPenalty
protected
NetworkNodeFilter inet::visualizer::NetworkNodeVisualizerBase::nodeFilter
protected

The documentation for this class was generated from the following files: