Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
PanoramaControlPlugin.hh
1 /*===========================================================================*\
2 * *
3 * OpenFlipper *
4 * Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
5 * www.openflipper.org *
6 * *
7 *--------------------------------------------------------------------------- *
8 * This file is part of OpenFlipper. *
9 * *
10 * OpenFlipper is free software: you can redistribute it and/or modify *
11 * it under the terms of the GNU Lesser General Public License as *
12 * published by the Free Software Foundation, either version 3 of *
13 * the License, or (at your option) any later version with the *
14 * following exceptions: *
15 * *
16 * If other files instantiate templates or use macros *
17 * or inline functions from this file, or you compile this file and *
18 * link it with other files to produce an executable, this file does *
19 * not by itself cause the resulting executable to be covered by the *
20 * GNU Lesser General Public License. This exception does not however *
21 * invalidate any other reasons why the executable file might be *
22 * covered by the GNU Lesser General Public License. *
23 * *
24 * OpenFlipper is distributed in the hope that it will be useful, *
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
27 * GNU Lesser General Public License for more details. *
28 * *
29 * You should have received a copy of the GNU LesserGeneral Public *
30 * License along with OpenFlipper. If not, *
31 * see <http://www.gnu.org/licenses/>. *
32 * *
33 \*===========================================================================*/
34 
35 /*===========================================================================*\
36 * *
37 * $Revision: 13354 $ *
38 * $LastChangedBy: moebius $ *
39 * $Date: 2012-01-12 13:39:10 +0100 (Do, 12 Jan 2012) $ *
40 * *
41 \*===========================================================================*/
42 
43 #pragma once
44 
49 
50 #include "PanoramaToolbox.hh"
51 
52 #include <QObject>
53 #include <QtGui>
54 
55 
56 
58 {
59 Q_OBJECT
60 Q_INTERFACES(BaseInterface)
61 Q_INTERFACES(ToolboxInterface)
62 Q_INTERFACES(LoggingInterface)
63 Q_INTERFACES(LoadSaveInterface)
64 
65  #if QT_VERSION >= 0x050000
66  Q_PLUGIN_METADATA(IID "org.OpenFlipper.Plugins.Plugin-PanoramaControl")
67  #endif
68 
69 signals:
70 
71  //BaseInterface
72  void updateView();
73  void updatedObject(int _identifier, const UpdateType& _type);
74  void setSlotDescription(QString _slotName, QString _slotDescription,
75  QStringList _parameters, QStringList _descriptions);
76 
77  void setRenderer(unsigned int _viewer, QString _rendererName);
78 
79  //LoggingInterface:
80  void log( Logtype _type, QString _message );
81  void log( QString _message );
82 
83  // ToolboxInterface
84  void addToolbox( QString _name , QWidget* _widget , QIcon* _icon );
85 
86  // Load/Save Interface
87  void addEmptyObject (DataType _type, int& _id);
88 
89 
90 private slots:
91 
92  // BaseInterface
93  void initializePlugin();
94 
95 private slots:
96 
98  void slotLoadImage();
99 
101  void slotValuesChanged(double _unused);
102 
103 public :
105  ~PanoramaControlPlugin() {};
106 
107  QString name() { return (QString("Panorama Control Plugin")); };
108  QString description( ) { return (QString("Visualize panorama images via a sky dome")); };
109 
110 private :
111  PanoramaToolBox* tool_;
112 
113 
114 public slots:
115  QString version() { return QString("1.0"); };
116 };
117 
QString description()
Return a description of what the plugin is doing.
Interface for all plugins which want to Load or Save files and create Objects.
Plugins can add its own toolbox to the main widget's toolbox area by using this interface.
void slotValuesChanged(double _unused)
Spinboxes changed.
Interface for all Plugins which do logging to the logging window of the framework.
Update type class.
Definition: UpdateType.hh:70
Interface class from which all plugins have to be created.
Logtype
Log types for Message Window.
Predefined datatypes.
Definition: DataTypes.hh:96
QString name()
Return a name for the plugin.
void slotLoadImage()
Button slot iterating over all targets and passing them to the correct functions. ...