16 #ifndef __OMNETPP_OSGUTIL_H 17 #define __OMNETPP_OSGUTIL_H 71 const cObject *getObject()
const;
72 void setObject(
const cObject *obj);
75 inline cObjectOsgNode::cObjectOsgNode(
const cObjectOsgNode& node,
const osg::CopyOp& copyop) : Group(node, copyop)
77 componentId = node.componentId;
81 inline const cObject *cObjectOsgNode::getObject()
const 86 inline void cObjectOsgNode::setObject(
const cObject *obj)
90 if (
const cComponent *component = dynamic_cast<const cComponent*>(obj)) {
91 componentId = component->getId();
Common base for module and channel classes.
Definition: ccomponent.h:48
Root of the OMNeT++ class hierarchy. cObject is a lightweight class without any data members...
Definition: cobject.h:58
Definition: cabstracthistogram.h:21
cComponent * getComponent(int id) const
Definition: csimulation.h:209
An osg::Group for defining correspondence of a 3D object to an OMNeT++ object.
Definition: osgutil.h:56
cSimulation * getSimulation()
Returns the currently active simulation, or nullptr if there is none.
Definition: csimulation.h:575