|
Developer Documentation
|
Public Member Functions | |
| virtual QWidget * | getWidget (SceneGraph::BaseNode *_node) |
| Get a widget for this Node. | |
| virtual bool | canHandle (std::string _className) |
| returns if the widgets can handle the given class | |
| virtual std::string | handles () |
| return the type this generator handles | |
| virtual QString | contextMenuName () |
| Return a name for your widget in the context menu. | |
Protected Attributes | |
| QMap< SceneGraph::BaseNode *, QWidget * > | widgetMap_ |
Definition at line 81 of file QtSceneGraphWidget.hh.
| ACG::QtWidgets::SceneGraphWidgetGenerator::SceneGraphWidgetGenerator | ( | ) |
Definition at line 83 of file QtSceneGraphWidget.cc.
|
inlinevirtual |
Definition at line 88 of file QtSceneGraphWidget.hh.
|
virtual |
returns if the widgets can handle the given class
This function has to check if the given classname is supported
Reimplemented in LightWidgetGenerator.
Definition at line 92 of file QtSceneGraphWidget.cc.
|
virtual |
Return a name for your widget in the context menu.
This name will be the same for all passed in nodes
Reimplemented in LightWidgetGenerator.
Definition at line 104 of file QtSceneGraphWidget.cc.
|
virtual |
Get a widget for this Node.
Derive from this class to get a widget for the given node you have to overload this function. First check, if your widget can handle nodes of the given type (check for _node->className() ) Then generate your widget and handle the _node inside it. Return 0 if you can not handle it and check if the map already contains a widget for this node so that you generate one widget per node.
Reimplemented in LightWidgetGenerator.
Definition at line 86 of file QtSceneGraphWidget.cc.
|
virtual |
return the type this generator handles
return the classname of the node this generator can handle
Reimplemented in LightWidgetGenerator.
Definition at line 98 of file QtSceneGraphWidget.cc.
|
protected |
Definition at line 121 of file QtSceneGraphWidget.hh.