|
|
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.
|
| |
| 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.
|
| |
| virtual void | scriptInfo (QString _functionWithParameters) |
| | Emit this signal if a scriptable function is executed.
|
| |
| virtual void | getScriptingEngine (QScriptEngine *&_engine) |
| |
| virtual void | executeFileScript (QString _filename) |
| |
| virtual void | getAvailableFunctions (QStringList &_functions) |
| |
| virtual void | addToolbar (QToolBar *_toolbar) |
| | Adds a Toolbar to the main widget.
|
| |
| virtual void | showStatusMessage (QString _message, int _timeout=0) |
| | Show a message in the status bar.
|
| |
| virtual void | executePythonScript (QString _script) |
| |
|
| bool | initializeOptionsWidget (QWidget *&_widget) |
| | generate an optionsWidget to change color presets
|
| |
| QString | name () |
| | Return a name for the plugin.
|
| |
| QString | description () |
| | Return a description of what the plugin is doing.
|
| |
| | ColorPlugin () |
| | ConstructorOptionsInterface.
|
| |
Definition at line 62 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 503 of file ColorPlugin.cc.
◆ convertColor() [1/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 549 of file ColorPlugin.cc.
◆ convertColor() [2/2]
convert betweeen uint and Vec4f
convert between uint and Vec4f
- Parameters
-
| _color | given color |
| _vector | color vector to convert to |
Definition at line 530 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 114 of file ColorPlugin.hh.
◆ generateIcon() [1/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.
◆ generateIcon() [2/2]
| QIcon ColorPlugin::generateIcon |
( |
QColor |
_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.
◆ 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 431 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 401 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 455 of file ColorPlugin.cc.
◆ loadIniFileOptions
| void ColorPlugin::loadIniFileOptions |
( |
INIFile & |
_ini | ) |
|
|
privateslot |
read color preset from ini file
- Parameters
-
Definition at line 564 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 113 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 610 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 416 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 |
◆ backgroundColorDefault_
◆ backgroundColorPaper_
◆ backgroundColorPresentation_
◆ baseColorDefault_
◆ baseColorPaper_
◆ baseColorPresentation_
◆ lineWidthDefault_
| double ColorPlugin::lineWidthDefault_ |
|
private |
◆ lineWidthPaper_
| double ColorPlugin::lineWidthPaper_ |
|
private |
◆ lineWidthPresentation_
| double ColorPlugin::lineWidthPresentation_ |
|
private |
◆ materialColorDefault_
◆ materialColorPaper_
◆ materialColorPresentation_
◆ optionsWidget_
The documentation for this class was generated from the following files: