|
Developer Documentation
|
Public Slots | |
| bool | selectionVisible (int _id) |
| For meshes returns if the selection for this object is visible. | |
| void | showSelection (int _id, bool _state) |
| Allows to enable/disable visualization of the objects selection for meshes. | |
| bool | modelingAreasVisible (int _id) |
| For meshes returns if the modeling areas for this object is visible. | |
| void | showModelingAreas (int _id, bool _state) |
| Allows to enable/disable visualization of the objects modeling area for meshes. | |
| void | setSelectionLineWidth (int _id, double _width) |
| Set the line width of the selections. | |
| void | setFeatureLineWidth (int _id, double _width) |
| Set the line width of the features. | |
| void | disableShader (int _objectId, ACG::SceneGraph::DrawModes::DrawMode _drawMode, ShaderInfo *_shader=0) |
| void | setShader (int _id, ACG::SceneGraph::DrawModes::DrawMode _drawMode, ShaderInfo _shader) |
| void | setShader (int _id, QString _drawMode, QString _name) |
| QStringList | getUniforms (QString _shader) |
| get information about available uniforms for a given shader | |
| QString | getUniformType (QString _shader, QString _uniform) |
| QString | getUniformDefault (QString _shader, QString _uniform) |
| QString | getUniformMin (QString _shader, QString _uniform) |
| QString | getUniformMax (QString _shader, QString _uniform) |
| void | setUniform (int _objID, ACG::SceneGraph::DrawModes::DrawMode _drawMode, QString _shader, QString _uniform, QString _value) |
| set the value of a uniform in a shader for a specific drawMode | |
| void | setViewingDirection (Vector _direction, Vector _upvector, int _viewer=PluginFunctions::ALL_VIEWERS) |
| Set the viewing direction. | |
| void | setSceneRadius (double _radius, int _viewer=PluginFunctions::ALL_VIEWERS) |
| Set scene radius. | |
| void | rotate (Vector _axis, double _angle, Vector _center, int _viewer=PluginFunctions::ALL_VIEWERS) |
| Rotate Scene. | |
| void | translate (Vector _vec, int _viewer=PluginFunctions::ALL_VIEWERS) |
| translate Scene | |
| void | setDrawMode (QString _mode, int _viewer=PluginFunctions::ALL_VIEWERS) |
| Set the draw mode for a viewer. | |
| void | setObjectDrawMode (QString _mode, int _objectID, bool _force=true) |
| Set the draw mode for an object. | |
| Vector | viewingDirection (int _viewer=PluginFunctions::ACTIVE_VIEWER) |
| Get a viewers viewing direction. | |
| Vector | upVector (int _viewer=PluginFunctions::ACTIVE_VIEWER) |
| get a viewers up vector | |
| Vector | eyePosition (int _viewer=PluginFunctions::ACTIVE_VIEWER) |
| get a viewers eye Position | |
| Vector | sceneCenter (int _viewer=PluginFunctions::ACTIVE_VIEWER) |
| Get the scene center. | |
| void | setSceneCenter (Vector _center, int _viewer=PluginFunctions::ALL_VIEWERS) |
| Set the scene center. | |
| void | enableBackfaceCulling (bool _state, int _viewer=PluginFunctions::ALL_VIEWERS) |
| Enable or disable Backface culling. | |
| void | setEyePosition (Vector _eye) |
| void | viewAll () |
| Change View on all viewers to view whole scene. | |
| void | viewAll (int _viewer) |
| Change View on given Viewer to view whole scene. | |
| void | viewHome () |
| Change View on given Viewer to view home position. | |
| void | viewHome (int _viewer) |
| Change View on all Viewers to view home position. | |
| void | orthographicProjection () |
| Change Viewer to orthographicProjection. | |
| void | orthographicProjection (int _viewer) |
| Change all Viewers to orthographicProjection. | |
| void | perspectiveProjection () |
| Change Viewer to perspectiveProjection. | |
| void | perspectiveProjection (int _viewer) |
| Change all Viewers to perspectiveProjection. | |
| void | setFOVY (double _fovy) |
| Set fovy angle of projection. | |
| void | setCoordsysProjection (bool _orthogonal) |
| void | setTwoSidedLighting (bool _enabled) |
| ACG::Vec3d | project (ACG::Vec3d _point, int _viewerId=0) |
| Use the projection matrix of the given viewer to project the point. | |
Signals | |
| void | updateView () |
| void | addHiddenPickMode (const std::string &_mode) |
| void | log (Logtype _type, QString _message) |
| void | log (QString _message) |
| void | addToolbar (QToolBar *_toolbar) |
| void | getToolBar (QString _name, QToolBar *&_toolbar) |
| void | addContextMenuItem (QAction *_action, ContextMenuType _type) |
| void | addContextMenuItem (QAction *_action, DataType _objectType, ContextMenuType _type) |
| void | hideContextMenu () |
| void | setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions) |
Signals inherited from BaseInterface | |
| virtual void | updateView () |
| Update current view in Main Application. | |
| virtual void | setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions) |
| Set a description for a public slot. | |
| virtual void | setRenderer (unsigned int _viewer, QString _rendererName) |
| Set a renderer for the given viewer. | |
Signals inherited from PickingInterface | |
| virtual void | addPickMode (const std::string &_mode) |
| Add a new picking mode to the examiner. | |
Signals inherited from LoggingInterface | |
| virtual void | log (Logtype _type, QString _message)=0 |
| virtual void | log (QString _message)=0 |
Signals inherited from ToolbarInterface | |
| virtual void | addToolbar (QToolBar *_toolbar) |
| Adds a Toolbar to the main widget. | |
Signals inherited from ContextMenuInterface | |
| virtual void | addContextMenuItem (QAction *_action, ContextMenuType _type) |
| Add an entry for a context Menu. | |
Signals inherited from PythonInterface | |
| virtual void | executePythonScript (QString _script) |
Public Member Functions | |
| QString | name () |
| Return a name for the plugin. | |
| QString | description () |
| Return a description of what the plugin is doing. | |
Private Slots | |
| void | pluginsInitialized () |
| void | contextMenuTriggered (QAction *_action) |
| void | slotUpdateContextMenu (int _objectId) |
| QString | version () |
Private Slots inherited from BaseInterface | |
| virtual void | exit () |
| virtual QString | version () |
| Return a version string for your plugin. | |
Private Member Functions | |
| void | slotDrawModeSelected (QAction *_action) |
| void | slotShaderClicked (QListWidgetItem *_item) |
| void | slotShaderDoubleClicked (QListWidgetItem *_item) |
| void | slotSetShader () |
| void | itemChanged (QTableWidgetItem *item) |
| void | setView (int _mode, int _viewer=PluginFunctions::ACTIVE_VIEWER) |
| void | setView (QAction *_action) |
| void | updateShaderList () |
| void | initShaderWidget () |
| void | setDescriptions () |
| bool | areasVisible (StatusBits _bits, int _id) |
| Return of all of the given modeling areas are visible. | |
| void | showAreas (StatusBits _bits, int _id, bool _state) |
| Show or hide modeling areas. | |
Private Member Functions inherited from BaseInterface | |
| virtual void | noguiSupported () |
| virtual | ~BaseInterface () |
| Destructor. | |
| virtual void | blockScenegraphUpdates (bool _block) |
| Tell the core to prevent scenegraph updates. | |
| virtual void | updatedObject (int _objectId) |
| An object has been changed or added by this plugin. | |
| virtual void | updatedObject (int _identifier, const UpdateType &_type) |
| An object has been changed or added by this plugin. | |
| virtual void | nodeVisibilityChanged (int _identifier) |
| A scenegraph node has been shown or hidden. | |
| virtual void | getCurrentRenderer (unsigned int _viewer, QString &_rendererName) |
| Get the current renderer for the given viewer. | |
Private Member Functions inherited from PickingInterface | |
| virtual void | addHiddenPickMode (const std::string &_mode) |
| Add a new picking mode to the examiner which will be invisible. | |
| virtual void | setPickModeCursor (const std::string &_mode, QCursor _cursor) |
| Set the cursor of the given PickMode. | |
| virtual void | setPickModeMouseTracking (const std::string &_mode, bool _mouseTracking) |
| Set mouse tracking for the given PickMode. | |
| virtual void | setPickModeToolbar (const std::string &_mode, QToolBar *_toolbar) |
| Set the additional toolbar of the given PickMode. | |
| virtual void | removePickModeToolbar (const std::string &_mode) |
| Removes the additional toolbar of the given PickMode. | |
| virtual | ~PickingInterface () |
| Destructor. | |
Private Member Functions inherited from LoggingInterface | |
| virtual | ~LoggingInterface () |
| Destructor. | |
Private Member Functions inherited from ToolbarInterface | |
| virtual | ~ToolbarInterface () |
| Destructor. | |
| virtual void | removeToolbar (QToolBar *_toolbar) |
| Remove a Toolbar from the main widget. | |
| virtual void | getToolBar (QString _name, QToolBar *&_toolbar) |
| Get a pointer to a Toolbar of the given name or 0 if it does not exist. | |
Private Member Functions inherited from ContextMenuInterface | |
| virtual | ~ContextMenuInterface () |
| Destructor. | |
| virtual void | addContextMenuItem (QAction *_action, DataType _objectType, ContextMenuType _type) |
| Add an entry for a context Menu. | |
| virtual void | hideContextMenu () |
| hide the main context menu | |
Private Member Functions inherited from PythonInterface | |
| virtual void | openPythonScriptInEditor (QString _script) |
| virtual | ~PythonInterface () |
| Destructor. | |
Private Attributes | |
| QMenu * | viewControlMenu_ |
| int | lastObjectId_ |
| ACG::SceneGraph::DrawModes::DrawMode | activeDrawModes_ |
| ACG::SceneGraph::DrawModes::DrawMode | availDrawModes_ |
| ShaderWidget * | shaderWidget_ |
| std::vector< ShaderInfo > | shaderList_ |
| QToolBar * | toolbar_ |
| QActionGroup * | toolbarViewingDirections_ |
| QAction * | viewTop_ |
| QAction * | viewBottom_ |
| QAction * | viewLeft_ |
| QAction * | viewRight_ |
| QAction * | viewFront_ |
| QAction * | viewBack_ |
| std::map< QCheckBox *, ACG::SceneGraph::DrawModes::DrawMode > | activeCheckboxes |
Definition at line 83 of file ViewControlPlugin.hh.
| ViewControlPlugin::ViewControlPlugin | ( | ) |
Definition at line 66 of file ViewControlPlugin.cc.
|
inline |
Definition at line 129 of file ViewControlPlugin.hh.
|
private |
Return of all of the given modeling areas are visible.
| _bits | Which areas to test |
| _id | Id of the object |
Definition at line 492 of file ViewControlPlugin.cc.
|
privateslot |
Definition at line 294 of file ViewControlPlugin.cc.
|
inlinevirtual |
Return a description of what the plugin is doing.
This function has to return a basic description of the plugin
Implements BaseInterface.
Definition at line 133 of file ViewControlPlugin.hh.
|
slot |
Disable the given shader for a given object and draw mode.
| _objectId | ID of the object for which to disable the shader |
| _drawMode | _drawMode for which the shader is disabled |
| _shader | Shader which is disabled. If this shader is not currently active for the given _drawMode, nothing will be disabled. In order to disable all shaders for the given _drawMode, use _shader=0 (default). |
Definition at line 1121 of file ViewControlPlugin.cc.
|
slot |
Enable or disable Backface culling.
Definition at line 1389 of file ViewControlPlugin.cc.
|
slot |
get a viewers eye Position
Definition at line 1456 of file ViewControlPlugin.cc.
|
slot |
Definition at line 1276 of file ViewControlPlugin.cc.
|
slot |
Definition at line 1302 of file ViewControlPlugin.cc.
|
slot |
Definition at line 1289 of file ViewControlPlugin.cc.
|
slot |
get information about available uniforms for a given shader
Definition at line 1255 of file ViewControlPlugin.cc.
|
slot |
Definition at line 1263 of file ViewControlPlugin.cc.
|
private |
Definition at line 935 of file ViewControlPlugin.cc.
|
private |
Definition at line 1048 of file ViewControlPlugin.cc.
|
slot |
For meshes returns if the modeling areas for this object is visible.
Definition at line 518 of file ViewControlPlugin.cc.
|
inlinevirtual |
Return a name for the plugin.
This Function has to return the name of the plugin.
Implements BaseInterface.
Definition at line 132 of file ViewControlPlugin.hh.
|
slot |
Change Viewer to orthographicProjection.
Definition at line 1538 of file ViewControlPlugin.cc.
|
slot |
Change all Viewers to orthographicProjection.
Definition at line 1542 of file ViewControlPlugin.cc.
|
slot |
Change Viewer to perspectiveProjection.
Definition at line 1547 of file ViewControlPlugin.cc.
|
slot |
Change all Viewers to perspectiveProjection.
Definition at line 1551 of file ViewControlPlugin.cc.
|
privateslot |
Definition at line 82 of file ViewControlPlugin.cc.
|
slot |
Use the projection matrix of the given viewer to project the point.
Definition at line 1590 of file ViewControlPlugin.cc.
|
slot |
Rotate Scene.
Definition at line 1378 of file ViewControlPlugin.cc.
|
slot |
Get the scene center.
Definition at line 1464 of file ViewControlPlugin.cc.
|
slot |
For meshes returns if the selection for this object is visible.
Definition at line 469 of file ViewControlPlugin.cc.
|
slot |
Set the mode for the coordinate system Perspective or orthogonal
Definition at line 1561 of file ViewControlPlugin.cc.
|
private |
Definition at line 1595 of file ViewControlPlugin.cc.
|
slot |
Set the draw mode for a viewer.
Definition at line 1406 of file ViewControlPlugin.cc.
|
slot |
Definition at line 1514 of file ViewControlPlugin.cc.
|
slot |
Set the line width of the features.
Definition at line 573 of file ViewControlPlugin.cc.
|
slot |
Set fovy angle of projection.
Definition at line 1555 of file ViewControlPlugin.cc.
|
slot |
Set the draw mode for an object.
This function can be used to set the drawmode for an object.
| _mode | DrawMode as String ( can be a list of drawmodes which will be combined to a new mode ) |
| _objectID | Id of the object to set the draw mode |
| _force | Set the draw mode even if its not directly supported by the objects nodes |
Definition at line 1425 of file ViewControlPlugin.cc.
|
slot |
Set the scene center.
Definition at line 1460 of file ViewControlPlugin.cc.
|
slot |
Set scene radius.
Definition at line 1372 of file ViewControlPlugin.cc.
|
slot |
Set the line width of the selections.
Definition at line 549 of file ViewControlPlugin.cc.
|
slot |
Sets a shader for the object and the given drawMode( can be a combination of draw modes )
| _id | Object Id |
| _drawMode | ; separated list of drawmodes used by the shader |
| _shader | Shader information |
Definition at line 1145 of file ViewControlPlugin.cc.
|
slot |
Sets a Shader for a specific draw mode
| _id | Object id that should use the shader |
| _drawMode | Draw mode where this shader will be active |
| _name | Name of the shader that should be used |
Definition at line 1226 of file ViewControlPlugin.cc.
|
slot |
Definition at line 1586 of file ViewControlPlugin.cc.
|
slot |
set the value of a uniform in a shader for a specific drawMode
Definition at line 1318 of file ViewControlPlugin.cc.
|
private |
Definition at line 1470 of file ViewControlPlugin.cc.
|
private |
Definition at line 1501 of file ViewControlPlugin.cc.
|
slot |
Set the viewing direction.
Definition at line 1366 of file ViewControlPlugin.cc.
|
private |
Show or hide modeling areas.
| _bits | Which areas to test |
| _id | Id of the object |
| _state | Show or hide? |
Definition at line 522 of file ViewControlPlugin.cc.
|
slot |
Allows to enable/disable visualization of the objects modeling area for meshes.
Definition at line 545 of file ViewControlPlugin.cc.
|
slot |
Allows to enable/disable visualization of the objects selection for meshes.
Definition at line 598 of file ViewControlPlugin.cc.
|
private |
Definition at line 827 of file ViewControlPlugin.cc.
|
private |
Definition at line 1090 of file ViewControlPlugin.cc.
|
private |
Definition at line 952 of file ViewControlPlugin.cc.
|
private |
Definition at line 1044 of file ViewControlPlugin.cc.
|
privateslot |
Definition at line 621 of file ViewControlPlugin.cc.
|
slot |
translate Scene
Definition at line 1384 of file ViewControlPlugin.cc.
|
private |
Definition at line 133 of file ViewControlPlugin.cc.
|
slot |
get a viewers up vector
Definition at line 1452 of file ViewControlPlugin.cc.
|
inlineprivateslot |
Definition at line 169 of file ViewControlPlugin.hh.
|
slot |
Change View on all viewers to view whole scene.
Definition at line 1522 of file ViewControlPlugin.cc.
|
slot |
Change View on given Viewer to view whole scene.
Definition at line 1526 of file ViewControlPlugin.cc.
|
slot |
Change View on given Viewer to view home position.
Definition at line 1530 of file ViewControlPlugin.cc.
|
slot |
Change View on all Viewers to view home position.
Definition at line 1534 of file ViewControlPlugin.cc.
|
slot |
Get a viewers viewing direction.
Definition at line 1448 of file ViewControlPlugin.cc.
|
private |
Definition at line 166 of file ViewControlPlugin.hh.
|
private |
Active draw Modes for the last clicked object and its children
Definition at line 145 of file ViewControlPlugin.hh.
|
private |
Available draw Modes for the last clicked object and its children
Definition at line 149 of file ViewControlPlugin.hh.
|
private |
Last object id for context menu. Is -1 if no object was selected
Definition at line 141 of file ViewControlPlugin.hh.
|
private |
List of available shaders
Definition at line 155 of file ViewControlPlugin.hh.
|
private |
Definition at line 151 of file ViewControlPlugin.hh.
|
private |
Definition at line 157 of file ViewControlPlugin.hh.
|
private |
Definition at line 158 of file ViewControlPlugin.hh.
|
private |
Definition at line 164 of file ViewControlPlugin.hh.
|
private |
Definition at line 160 of file ViewControlPlugin.hh.
|
private |
Definition at line 137 of file ViewControlPlugin.hh.
|
private |
Definition at line 163 of file ViewControlPlugin.hh.
|
private |
Definition at line 161 of file ViewControlPlugin.hh.
|
private |
Definition at line 162 of file ViewControlPlugin.hh.
|
private |
Definition at line 159 of file ViewControlPlugin.hh.