From 0a1711adecd8ec20535b41c55115239e856dc722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Mon, 11 Mar 2013 07:36:05 +0000 Subject: [PATCH] Scripting function to set emissive color of an object git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16500 383ad7c9-94d9-4d36-a494-682f7c89f535 --- ColorPlugin.cc | 5 +++++ ColorPlugin.hh | 6 ++---- VsiMetadata/color.xml | 22 ++++++++++++++++++++++ 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/ColorPlugin.cc b/ColorPlugin.cc index 4b41b1c..15682c4 100644 --- a/ColorPlugin.cc +++ b/ColorPlugin.cc @@ -291,6 +291,11 @@ void ColorPlugin::setBackgroundColor( Vector _color ) { //----------------------------------------------------------------------------- +/** Sets the emissive color of an object + * + * @param _objectId Id of an Object + * @param _color Color to be set + */ void ColorPlugin::setObjectEmissiveColor(int _objectId , Vector4 _color) { BaseObjectData* object; diff --git a/ColorPlugin.hh b/ColorPlugin.hh index 03d333f..d6ef99f 100644 --- a/ColorPlugin.hh +++ b/ColorPlugin.hh @@ -181,10 +181,8 @@ class ColorPlugin : public QObject, BaseInterface, MenuInterface, ScriptInterfac */ void setBackgroundColor( Vector _color ); - /** Sets the emissive color of an object - * - * @param _objectId Id of an Object - * @param _color Color to be set + /** + * Sets the emissive color of an object */ void setObjectEmissiveColor(int _objectId , Vector4 _color); diff --git a/VsiMetadata/color.xml b/VsiMetadata/color.xml index f4dea8b..3e84c3e 100644 --- a/VsiMetadata/color.xml +++ b/VsiMetadata/color.xml @@ -16,4 +16,26 @@ + + + Colors + Emissive Color + Set Emissive Color of an object + true + + + ID + ID of an object + + + Color + Desired emissive color + 0.00001 + + + + colorplugin.setObjectEmissiveColor([input="obj"],[input="color"]) + + + -- 2.22.0