|
|
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) |
| |
| 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...
|
| |
| 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) |
| |
| virtual void | addToolbar (QToolBar *_toolbar) |
| | Adds a Toolbar to the main widget. More...
|
| |
| virtual void | showStatusMessage (QString _message, int _timeout=0) |
| | Show a message in the status bar. More...
|
| |
Definition at line 61 of file ColorPlugin.hh.
◆ ColorPlugin()
| ColorPlugin::ColorPlugin |
( |
| ) |
|
ConstructorOptionsInterface.
Constructor.
Definition at line 56 of file ColorPlugin.cc.
◆ applyOptions
| void ColorPlugin::applyOptions |
( |
| ) |
|
|
privateslot |
Store the changed color presets when the apply Button was hit.
Definition at line 505 of file ColorPlugin.cc.
◆ convertColor() [1/2]
convert betweeen uint and Vec4f
convert between uint and Vec4f
- Parameters
-
| _color | given color |
| _vector | color vector to convert to |
Definition at line 532 of file ColorPlugin.cc.
◆ convertColor() [2/2]
convert betweeen uint and Vec4f
convert between uint and Vec4f
- Parameters
-
| _vector | reference to a color vector |
- Returns
- same color as uint
Definition at line 551 of file ColorPlugin.cc.
◆ description()
| QString ColorPlugin::description |
( |
| ) |
|
|
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 112 of file ColorPlugin.hh.
◆ generateIcon() [1/2]
| QIcon ColorPlugin::generateIcon |
( |
QRgb |
_color | ) |
|
|
private |
generate an icon from a given color
Generate an icon with given color.
- Parameters
-
- Returns
- the icon
Definition at line 385 of file ColorPlugin.cc.
◆ generateIcon() [2/2]
generate an icon from a given color
Generate an icon with given color.
- Parameters
-
- Returns
- an icon
Definition at line 366 of file ColorPlugin.cc.
◆ getColorDialog
| void ColorPlugin::getColorDialog |
( |
| ) |
|
|
privateslot |
display a color dialog
show a colorDialog and store the chosen value in the icon of the sender()
Definition at line 433 of file ColorPlugin.cc.
◆ getIconColor()
| QRgb ColorPlugin::getIconColor |
( |
QIcon |
_icon | ) |
|
|
private |
get the color from a given icon
Get the color of an icon.
- Parameters
-
- Returns
- its color
Definition at line 403 of file ColorPlugin.cc.
◆ initializeOptionsWidget()
| bool ColorPlugin::initializeOptionsWidget |
( |
QWidget *& |
_widget | ) |
|
|
virtual |
generate an optionsWidget to change color presets
- Parameters
-
| _widget | reference to the generated widget |
- Returns
- return true if the widget was successfully generated
Implements OptionsInterface.
Definition at line 457 of file ColorPlugin.cc.
◆ loadIniFileOptions
| void ColorPlugin::loadIniFileOptions |
( |
INIFile & |
_ini | ) |
|
|
privateslot |
read color preset from ini file
- Parameters
-
Definition at line 566 of file ColorPlugin.cc.
◆ name()
| QString ColorPlugin::name |
( |
| ) |
|
|
inlinevirtual |
Return a name for the plugin.
This Function has to return the name of the plugin.
Implements BaseInterface.
Definition at line 111 of file ColorPlugin.hh.
◆ pluginsInitialized
| void ColorPlugin::pluginsInitialized |
( |
| ) |
|
|
privateslot |
initialize the toolbar and menubar
Definition at line 83 of file ColorPlugin.cc.
◆ saveIniFileOptions
| void ColorPlugin::saveIniFileOptions |
( |
INIFile & |
_ini | ) |
|
|
privateslot |
Store current color preset to an ini file.
- Parameters
-
| _ini | file to store color presets in |
Definition at line 612 of file ColorPlugin.cc.
◆ setBackgroundColor
| void ColorPlugin::setBackgroundColor |
( |
Vector |
_color | ) |
|
|
slot |
Set the backgroundColor.
Sets the background color of the scene
- Parameters
-
Definition at line 276 of file ColorPlugin.cc.
◆ setDefaultColor
| void ColorPlugin::setDefaultColor |
( |
| ) |
|
|
slot |
set the defaultColor preset
Applies Default colors to the whole scene
Definition at line 137 of file ColorPlugin.cc.
◆ setNewColor()
set the color of a color vector to the one in the given icon
convert an icons color to a Vec4f
- Parameters
-
| _icon | an icon |
| _color | reference to a color vector |
Definition at line 418 of file ColorPlugin.cc.
◆ setObjectAmbientColor
| void ColorPlugin::setObjectAmbientColor |
( |
int |
_objectId, |
|
|
Vector4 |
_color |
|
) |
| |
|
slot |
Sets the ambient color of an object
Sets the ambient color of an object
- Parameters
-
| _objectId | Id of an Object |
| _color | Color to be set |
Definition at line 315 of file ColorPlugin.cc.
◆ setObjectDiffuseColor
| void ColorPlugin::setObjectDiffuseColor |
( |
int |
_objectId, |
|
|
Vector4 |
_color |
|
) |
| |
|
slot |
Sets the diffuse color of an object
Sets the diffuse color of an object
- Parameters
-
| _objectId | Id of an Object |
| _color | Color to be set |
Definition at line 332 of file ColorPlugin.cc.
◆ setObjectEmissiveColor
| void ColorPlugin::setObjectEmissiveColor |
( |
int |
_objectId, |
|
|
Vector4 |
_color |
|
) |
| |
|
slot |
Sets the emissive color of an object
Sets the emissive color of an object
- Parameters
-
| _objectId | Id of an Object |
| _color | Color to be set |
Definition at line 296 of file ColorPlugin.cc.
◆ setObjectSpecularColor
| void ColorPlugin::setObjectSpecularColor |
( |
int |
_objectId, |
|
|
Vector4 |
_color |
|
) |
| |
|
slot |
Sets the specular color of an object
Sets the specular color of an object
- Parameters
-
| _objectId | Id of an Object |
| _color | Color to be set |
Definition at line 349 of file ColorPlugin.cc.
◆ setPaperColor
| void ColorPlugin::setPaperColor |
( |
| ) |
|
|
slot |
set the paperColor Preset
Applies colors for papers
Definition at line 229 of file ColorPlugin.cc.
◆ setPresentationColor
| void ColorPlugin::setPresentationColor |
( |
| ) |
|
|
slot |
Set the presentation color preset.
Applies colors for presentations to the scene
Definition at line 183 of file ColorPlugin.cc.
◆ version
| QString ColorPlugin::version |
( |
| ) |
|
|
inlineslot |
The documentation for this class was generated from the following files: