|
Developer Documentation
|
Public Slots | |
Scriptable functions to set colors | |
| void | setDefaultColor () |
| set the defaultColor preset More... | |
| void | setPresentationColor () |
| Set the presentation color preset. More... | |
| void | setPaperColor () |
| set the paperColor Preset More... | |
| void | setBackgroundColor (Vector _color) |
| Set the backgroundColor. More... | |
| void | setObjectEmissiveColor (int _objectId, Vector4 _color) |
| void | setObjectAmbientColor (int _objectId, Vector4 _color) |
| void | setObjectDiffuseColor (int _objectId, Vector4 _color) |
| void | setObjectSpecularColor (int _objectId, Vector4 _color) |
Other scriptable functions | |
| QString | version () |
Signals | |
| void | updateView () |
| void | scriptInfo (QString _functionName) |
| void | addMenubarAction (QAction *_action, QString _type) |
| void | addToolbar (QToolBar *_toolbar) |
| void | removeToolbar (QToolBar *_toolbar) |
| void | showStatusMessage (QString _message, int _timeout=0) |
Signals inherited from BaseInterface | |
| virtual void | updateView () |
| Update current view in Main Application. More... | |
| virtual void | setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions) |
| Set a description for a public slot. More... | |
| virtual void | setRenderer (unsigned int _viewer, QString _rendererName) |
| Set a renderer for the given viewer. More... | |
Signals inherited from MenuInterface | |
| virtual void | getMenubarMenu (QString _name, QMenu *&_menu, bool _create) |
| Get a existing top level menu pointer or create a new one. More... | |
Signals inherited from ScriptInterface | |
| virtual void | scriptInfo (QString _functionWithParameters) |
| Emit this signal if a scriptable function is executed. More... | |
| virtual void | getScriptingEngine (QScriptEngine *&_engine) |
| virtual void | executeScript (QString _script) |
| virtual void | getAvailableFunctions (QStringList &_functions) |
Signals inherited from ToolbarInterface | |
| virtual void | addToolbar (QToolBar *_toolbar) |
| Adds a Toolbar to the main widget. More... | |
Signals inherited from StatusbarInterface | |
| virtual void | showStatusMessage (QString _message, int _timeout=0) |
| Show a message in the status bar. More... | |
Public Member Functions | |
| bool | initializeOptionsWidget (QWidget *&_widget) |
| generate an optionsWidget to change color presets More... | |
| QString | name () |
| Return a name for the plugin. More... | |
| QString | description () |
| Return a description of what the plugin is doing. More... | |
| ColorPlugin () | |
| ConstructorOptionsInterface. More... | |
Private Slots | |
| void | pluginsInitialized () |
| initialize the toolbar and menubar More... | |
| void | applyOptions () |
| Store the changed color presets when the apply Button was hit. More... | |
| void | loadIniFileOptions (INIFile &_ini) |
| read color preset from ini file More... | |
| void | saveIniFileOptions (INIFile &_ini) |
| Store current color preset to an ini file. More... | |
Show Colors in Options and Store them in INI files | |
| ColorOptions * | optionsWidget_ |
| the options widget to set colors | |
| OpenMesh::Vec4f | backgroundColorDefault_ |
| the options widget to set colors | |
| OpenMesh::Vec4f | backgroundColorPaper_ |
| the options widget to set colors | |
| OpenMesh::Vec4f | backgroundColorPresentation_ |
| the options widget to set colors | |
| OpenMesh::Vec4f | baseColorDefault_ |
| the options widget to set colors | |
| OpenMesh::Vec4f | baseColorPaper_ |
| the options widget to set colors | |
| OpenMesh::Vec4f | baseColorPresentation_ |
| the options widget to set colors | |
| OpenMesh::Vec4f | materialColorDefault_ |
| the options widget to set colors | |
| OpenMesh::Vec4f | materialColorPaper_ |
| the options widget to set colors | |
| OpenMesh::Vec4f | materialColorPresentation_ |
| the options widget to set colors | |
| double | lineWidthDefault_ |
| the options widget to set colors | |
| double | lineWidthPaper_ |
| the options widget to set colors | |
| double | lineWidthPresentation_ |
| the options widget to set colors | |
| void | getColorDialog () |
| display a color dialog More... | |
| QIcon | generateIcon (QRgb _color) |
| generate an icon from a given color More... | |
| QIcon | generateIcon (OpenMesh::Vec4f _color) |
| generate an icon from a given color More... | |
| QRgb | getIconColor (QIcon _icon) |
| get the color from a given icon More... | |
| void | setNewColor (QIcon _icon, OpenMesh::Vec4f &_color) |
| set the color of a color vector to the one in the given icon More... | |
| void | convertColor (uint _color, OpenMesh::Vec4f &_vector) |
| convert betweeen uint and Vec4f More... | |
| uint | convertColor (OpenMesh::Vec4f &_vector) |
| convert betweeen uint and Vec4f More... | |
Additional Inherited Members | |
Private Member Functions inherited from BaseInterface | |
| virtual void | noguiSupported () |
| virtual | ~BaseInterface () |
| Destructor. | |
| virtual void | blockScenegraphUpdates (bool _block) |
| Tell the core to prevent scenegraph updates. More... | |
| virtual void | updatedObject (int _objectId) |
| An object has been changed or added by this plugin. More... | |
| virtual void | updatedObject (int _identifier, const UpdateType &_type) |
| An object has been changed or added by this plugin. More... | |
| virtual void | nodeVisibilityChanged (int _identifier) |
| A scenegraph node has been shown or hidden. More... | |
| virtual void | getCurrentRenderer (unsigned int _viewer, QString &_rendererName) |
| Get the current renderer for the given viewer. More... | |
Private Member Functions inherited from MenuInterface | |
| virtual | ~MenuInterface () |
| Destructor. | |
| virtual void | addMenubarAction (QAction *_action, QString _name) |
| Adds an action to the menubar. More... | |
| virtual void | addMenubarActions (std::vector< QAction * > &_actions, QString _name) |
| Add multiple actions to the menu bar. More... | |
Private Member Functions inherited from ScriptInterface | |
| virtual | ~ScriptInterface () |
| Destructor. | |
| virtual void | executeFileScript (QString _filename) |
| virtual void | getDescription (QString _function, QString &_description, QStringList &_parameters, QStringList &_descriptions) |
Private Member Functions inherited from ToolbarInterface | |
| virtual | ~ToolbarInterface () |
| Destructor. | |
| virtual void | removeToolbar (QToolBar *_toolbar) |
| Remove a Toolbar from the main widget. More... | |
| virtual void | getToolBar (QString _name, QToolBar *&_toolbar) |
| Get a pointer to a Toolbar of the given name or 0 if it does not exist. More... | |
Private Member Functions inherited from StatusbarInterface | |
| virtual | ~StatusbarInterface () |
| Destructor. | |
| void | setStatus (ApplicationStatus::applicationStatus _status) |
| Sets the status icon of the StatusBar. More... | |
| void | clearStatusMessage () |
| Removes the current message from the statusBar. More... | |
| void | addWidgetToStatusbar (QWidget *_widget) |
| Add a widget on the right side of the statusBar. More... | |
Private Member Functions inherited from OptionsInterface | |
| virtual | ~OptionsInterface () |
| Destructor. | |
| virtual void | applyOptions ()=0 |
| Apply changes to options. More... | |
Private Member Functions inherited from INIInterface | |
| virtual | ~INIInterface () |
| Destructor. | |
Definition at line 70 of file ColorPlugin.hh.
| ColorPlugin::ColorPlugin | ( | ) |
|
privateslot |
Store the changed color presets when the apply Button was hit.
Definition at line 515 of file ColorPlugin.cc.
|
private |
convert betweeen uint and Vec4f
convert between uint and Vec4f
| _color | given color |
| _vector | color vector to convert to |
Definition at line 542 of file ColorPlugin.cc.
|
private |
convert betweeen uint and Vec4f
convert between uint and Vec4f
| _vector | reference to a color vector |
Definition at line 561 of file ColorPlugin.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 123 of file ColorPlugin.hh.
|
private |
generate an icon from a given color
Generate an icon with given color.
| _color | a color |
Definition at line 395 of file ColorPlugin.cc.
|
private |
generate an icon from a given color
Generate an icon with given color.
| _color | a color vector |
Definition at line 376 of file ColorPlugin.cc.
|
privateslot |
display a color dialog
show a colorDialog and store the chosen value in the icon of the sender()
Definition at line 443 of file ColorPlugin.cc.
|
private |
get the color from a given icon
Get the color of an icon.
| _icon | an icon |
Definition at line 413 of file ColorPlugin.cc.
|
virtual |
generate an optionsWidget to change color presets
| _widget | reference to the generated widget |
Implements OptionsInterface.
Definition at line 467 of file ColorPlugin.cc.
|
privateslot |
read color preset from ini file
| _ini | file to read from |
Definition at line 576 of file ColorPlugin.cc.
|
inlinevirtual |
Return a name for the plugin.
This Function has to return the name of the plugin.
Implements BaseInterface.
Definition at line 122 of file ColorPlugin.hh.
|
privateslot |
initialize the toolbar and menubar
Definition at line 93 of file ColorPlugin.cc.
|
privateslot |
Store current color preset to an ini file.
| _ini | file to store color presets in |
Definition at line 622 of file ColorPlugin.cc.
|
slot |
Set the backgroundColor.
Sets the background color of the scene
| _color | a color |
Definition at line 286 of file ColorPlugin.cc.
|
slot |
set the defaultColor preset
Applies Default colors to the whole scene
Definition at line 147 of file ColorPlugin.cc.
|
private |
set the color of a color vector to the one in the given icon
convert an icons color to a Vec4f
| _icon | an icon |
| _color | reference to a color vector |
Definition at line 428 of file ColorPlugin.cc.
|
slot |
Sets the ambient color of an object
Sets the ambient color of an object
| _objectId | Id of an Object |
| _color | Color to be set |
Definition at line 325 of file ColorPlugin.cc.
|
slot |
Sets the diffuse color of an object
Sets the diffuse color of an object
| _objectId | Id of an Object |
| _color | Color to be set |
Definition at line 342 of file ColorPlugin.cc.
|
slot |
Sets the emissive color of an object
Sets the emissive color of an object
| _objectId | Id of an Object |
| _color | Color to be set |
Definition at line 306 of file ColorPlugin.cc.
|
slot |
Sets the specular color of an object
Sets the specular color of an object
| _objectId | Id of an Object |
| _color | Color to be set |
Definition at line 359 of file ColorPlugin.cc.
|
slot |
|
slot |
Set the presentation color preset.
Applies colors for presentations to the scene
Definition at line 193 of file ColorPlugin.cc.
|
inlineslot |
Version info of the color plugin
Definition at line 227 of file ColorPlugin.hh.