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

#include <PhysicalEnvironmentVisualizerBase.h>

Inheritance diagram for inet::visualizer::PhysicalEnvironmentVisualizerBase:
inet::visualizer::VisualizerBase inet::visualizer::PhysicalEnvironmentCanvasVisualizer inet::visualizer::PhysicalEnvironmentOsgVisualizer

Protected Member Functions

virtual void initialize (int stage) 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

Parameters
const IPhysicalEnvironmentphysicalEnvironment = nullptr
 
bool displayObjects = false
 
- Protected Attributes inherited from inet::visualizer::VisualizerBase
cModule * visualizerTargetModule = nullptr
 
const char * tags = nullptr
 

Member Function Documentation

void inet::visualizer::PhysicalEnvironmentVisualizerBase::initialize ( int  stage)
overrideprotectedvirtual

Reimplemented from inet::visualizer::VisualizerBase.

Reimplemented in inet::visualizer::PhysicalEnvironmentCanvasVisualizer.

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

26 {
28  if (!hasGUI()) return;
29  if (stage == INITSTAGE_LOCAL) {
30  physicalEnvironment = dynamic_cast<IPhysicalEnvironment *>(getModuleByPath(par("physicalEnvironmentModule")));
31  displayObjects = par("displayObjects");
32  }
33 }
const IPhysicalEnvironment * physicalEnvironment
Definition: PhysicalEnvironmentVisualizerBase.h:35
bool displayObjects
Definition: PhysicalEnvironmentVisualizerBase.h:36
virtual void initialize(int stage) override
Definition: VisualizerBase.cc:29
Local initializations.
Definition: InitStages.h:35

Member Data Documentation

bool inet::visualizer::PhysicalEnvironmentVisualizerBase::displayObjects = false
protected
const IPhysicalEnvironment* inet::visualizer::PhysicalEnvironmentVisualizerBase::physicalEnvironment = nullptr
protected

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