|
vizkit3d
|
#include <QtCore>#include <QtGui>#include <osg/NodeCallback>#include <osg/Group>#include <osg/PositionAttitudeTransform>#include <boost/thread/mutex.hpp>Go to the source code of this file.
Classes | |
| class | vizkit3d::VizPluginRubyAdapterBase |
| class | vizkit3d::VizPluginRubyAdapterCollection |
| class | vizkit3d::VizPluginBase |
| class | vizkit3d::Vizkit3DPlugin< T > |
| class | vizkit3d::VizPluginAddType< T > |
| class | vizkit3d::Vizkit3DPlugin< T > |
| class | vizkit3d::VizkitPluginFactory |
| class | vizkit3d::VizPluginAdapter< T > |
Namespaces | |
| vizkit3d | |
Macros | |
| #define | VizPluginRubyAdapterCommon(pluginName, dataType, methodName, rubyMethodName) |
| #define | VizPluginRubyAdapter(pluginName, dataType, typeName) VizPluginRubyAdapterCommon(pluginName, dataType, updateData, update##typeName) |
| #define | VizPluginRubyMethod(pluginName, dataType, methodName) VizPluginRubyAdapterCommon(pluginName, dataType, methodName, methodName) |
| #define | VizPluginRubyConfig(pluginName, dataType, methodName) VizPluginRubyAdapterCommon(pluginName, dataType, methodName, methodName) |
| #define | VizkitQtPlugin(pluginName) |
| #define VizkitQtPlugin | ( | pluginName | ) |
Macro that exports a Vizkit3D plugin so that it can be dynamically loaded by vizkit3d
Example:
class WaypointVisualization : public vizkit3d::Vizkit3DPlugin {..}; VizkitQtPlugin(WaypointVisualization)
This works if your shared library exports only one plugin. To export multiple plugins, you need to create a subclass of vizkit3d::VizkitPluginFactory which handles the plugins, and export it with
Q_EXPORT_PLUGIN2(FactoryClass, FactoryClass)
| #define VizPluginRubyAdapter | ( | pluginName, | |
| dataType, | |||
| typeName | |||
| ) | VizPluginRubyAdapterCommon(pluginName, dataType, updateData, update##typeName) |
| #define VizPluginRubyAdapterCommon | ( | pluginName, | |
| dataType, | |||
| methodName, | |||
| rubyMethodName | |||
| ) |
Macro that adds a type-specific ruby adapter, provided by the plugin. Use this if you want to provide ruby adapters:
Pluginname::Pluginname() { //there will be a updateWaypoint method in ruby VizPluginRubyAdapter(Pluginname, base::Waypoint, Waypoint)
//if you want to call any other method of your plugin in ruby VizPluginRubyConfig(Pluginname, bool, enableSomething) }
| #define VizPluginRubyConfig | ( | pluginName, | |
| dataType, | |||
| methodName | |||
| ) | VizPluginRubyAdapterCommon(pluginName, dataType, methodName, methodName) |
| #define VizPluginRubyMethod | ( | pluginName, | |
| dataType, | |||
| methodName | |||
| ) | VizPluginRubyAdapterCommon(pluginName, dataType, methodName, methodName) |
1.8.6