OMNeT++ Simulation Library
6.0.3
|
#include <osgutil.h>
An osg::Group for defining correspondence of a 3D object to an OMNeT++ object.
Using this node in an OSG scene graph associates its children (and all descendants) with a simulation object. The effect is that when a such a node is clicked in the OSG viewer, the corresponding simulation object can be inspected in the runtime GUI.
Example usage:
cModule *carModule = ... osg::Node *carModel = ... osg::Group *parent = ... cObjectOsgNode *wrapperNode = new cObjectOsgNode(); wrapperNode->setObject(carModule); wrapperNode->addChild(carModel); parent->addChild(wrapperNode);
The OMNeT++ object should exist as long as the wrapper node exists. Otherwise, clicking child nodes with the mouse is likely to result in a crash.
Inherits Group.