50 #ifndef COLORPLUGIN_HH 51 #define COLORPLUGIN_HH 60 #include "OpenFlipper/BasePlugin/INIInterface.hh" 64 #include "ColorPlugin.hh" 66 #include "ColorOptions.hh" 68 #include "OpenFlipper/INIFile/INIFile.hh" 83 #if QT_VERSION >= 0x050000 84 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-Color")
92 void scriptInfo( QString _functionName );
95 void addMenubarAction(QAction* _action, QString _type );
98 void addToolbar(QToolBar* _toolbar);
99 void removeToolbar(QToolBar* _toolbar);
102 void showStatusMessage(QString _message,
int _timeout = 0);
122 QString
name() {
return (QString(
"Color Plugin")); };
123 QString
description( ) {
return (tr(
"Sets the Default colors e.g. for slides, paper,... snapshots")); };
232 #endif //COLORPLUGIN_HH
Options Dialog interface.
double lineWidthPresentation_
the options widget to set colors
void pluginsInitialized()
initialize the toolbar and menubar
OpenMesh::Vec4f baseColorPresentation_
the options widget to set colors
void saveIniFileOptions(INIFile &_ini)
Store current color preset to an ini file.
Control OpenFlippers status bar.
OpenMesh::Vec4f materialColorDefault_
the options widget to set colors
double lineWidthDefault_
the options widget to set colors
OpenMesh::Vec4f backgroundColorPresentation_
the options widget to set colors
double lineWidthPaper_
the options widget to set colors
OpenMesh::Vec4f materialColorPresentation_
the options widget to set colors
void setPresentationColor()
Set the presentation color preset.
void setPaperColor()
set the paperColor Preset
ColorOptions * optionsWidget_
the options widget to set colors
void setObjectAmbientColor(int _objectId, Vector4 _color)
Interface for all Plugins which provide scriptable Functions.
Interface class for Plugins which have to store information in ini files.
Interface class from which all plugins have to be created.
void convertColor(uint _color, OpenMesh::Vec4f &_vector)
convert betweeen uint and Vec4f
void getColorDialog()
display a color dialog
bool initializeOptionsWidget(QWidget *&_widget)
generate an optionsWidget to change color presets
void setNewColor(QIcon _icon, OpenMesh::Vec4f &_color)
set the color of a color vector to the one in the given icon
OpenMesh::Vec4f backgroundColorPaper_
the options widget to set colors
Interface for all plugins which provide entries to the main menubar.
ColorPlugin()
ConstructorOptionsInterface.
void applyOptions()
Store the changed color presets when the apply Button was hit.
Class for the handling of simple configuration files.
void setDefaultColor()
set the defaultColor preset
OpenMesh::Vec4f backgroundColorDefault_
the options widget to set colors
void loadIniFileOptions(INIFile &_ini)
read color preset from ini file
QRgb getIconColor(QIcon _icon)
get the color from a given icon
QIcon generateIcon(QRgb _color)
generate an icon from a given color
void setObjectDiffuseColor(int _objectId, Vector4 _color)
void setObjectEmissiveColor(int _objectId, Vector4 _color)
OpenMesh::Vec4f materialColorPaper_
the options widget to set colors
QString name()
Return a name for the plugin.
OpenMesh::Vec4f baseColorPaper_
the options widget to set colors
OpenMesh::Vec4f baseColorDefault_
the options widget to set colors
QString description()
Return a description of what the plugin is doing.
void setBackgroundColor(Vector _color)
Set the backgroundColor.
Add a toolbox to OpenFlipper.
void setObjectSpecularColor(int _objectId, Vector4 _color)