62 #ifndef SPLATCLOUDRENDERINGCONTROLPLUGIN_HH
63 #define SPLATCLOUDRENDERINGCONTROLPLUGIN_HH
94 #if QT_VERSION >= 0x050000
95 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-SplatCloudRenderingControl")
101 void updatedObject(
int _objectId,
const UpdateType &_type );
104 void addToolbox( QString _name, QWidget *_widget, QIcon *_icon );
110 void defineViewModeToolboxes ( QString _mode, QStringList _usedWidgets );
111 void defineViewModeToolbars ( QString _mode, QStringList _usedToolbars );
112 void defineViewModeContextMenus( QString _mode, QStringList _usedContextMenus );
113 void defineViewModeIcon ( QString _mode, QString _iconName );
116 void log( QString _message );
117 void log(
Logtype _type, QString _message );
124 QString
name() {
return QString(
"SplatCloud Rendering Control Plugin" ); }
125 QString
description() {
return QString(
"Control over rendering of SplatClouds" ); }
130 QDoubleSpinBox *toolboxPointsizeScale_;
131 QSpinBox *toolboxDefaultColorR_;
132 QSpinBox *toolboxDefaultColorG_;
133 QSpinBox *toolboxDefaultColorB_;
134 QDoubleSpinBox *toolboxDefaultNormalX_;
135 QDoubleSpinBox *toolboxDefaultNormalY_;
136 QDoubleSpinBox *toolboxDefaultNormalZ_;
137 QDoubleSpinBox *toolboxDefaultPointsize_;
140 QAction *contextScaleAction_;
141 QAction *contextCullingAction_;
142 QAction *contextDefaultsAction_;
143 QAction *contextReloadShadersAction_;
144 QAction *contextRebuildVBOAction_;
147 QWidget *contextScaleWidget_;
148 QDoubleSpinBox *contextScaleWidgetPointsizeScale_;
151 QWidget *contextDefaultsWidget_;
152 QSpinBox *contextDefaultsWidgetDefaultColorR_;
153 QSpinBox *contextDefaultsWidgetDefaultColorG_;
154 QSpinBox *contextDefaultsWidgetDefaultColorB_;
155 QDoubleSpinBox *contextDefaultsWidgetDefaultNormalX_;
156 QDoubleSpinBox *contextDefaultsWidgetDefaultNormalY_;
157 QDoubleSpinBox *contextDefaultsWidgetDefaultNormalZ_;
158 QDoubleSpinBox *contextDefaultsWidgetDefaultPointsize_;
163 void initializePlugin();
166 void addedEmptyObject(
int _objectId );
169 void slotUpdateContextMenu(
int _objectId );
172 void slotToolboxPointsizeScaleValueChanged();
173 void slotToolboxDefaultColorValueChanged();
174 void slotToolboxDefaultNormalValueChanged();
175 void slotToolboxDefaultPointsizeValueChanged();
178 void slotToolboxEnableBackfaceCullingButtonClicked();
179 void slotToolboxDisableBackfaceCullingButtonClicked();
180 void slotToolboxReloadShadersButtonClicked();
181 void slotToolboxRebuildVBOsButtonClicked();
184 void slotContextScaleActionTriggered();
185 void slotContextCullingActionTriggered();
186 void slotContextReloadShadersActionTriggered();
187 void slotContextRebuildVBOActionTriggered();
188 void slotContextDefaultsActionTriggered();
191 void slotContextScaleWidgetPointsizeScaleValueChanged();
194 void slotContextDefaultsWidgetDefaultColorValueChanged();
195 void slotContextDefaultsWidgetDefaultNormalValueChanged();
196 void slotContextDefaultsWidgetDefaultPointsizeValueChanged();
201 QString version() {
return QString(
"1.0" ); }
208 #endif // SPLATCLOUDRENDERINGCONTROLPLUGIN_HH
Interface class from which all plugins have to be created.
Logtype
Log types for Message Window.
Interface for all Plugins which do logging to the logging window of the framework.
Interface for all plugins which want to Load or Save files and create Objects.
QString description()
Return a description of what the plugin is doing.
QString name()
Return a name for the plugin.
Interface class for creating custom context menus.
Plugins can add its own toolbox to the main widget's toolbox area by using this interface.
Interface class for adding view modes to the ui.