Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
PoissonReconstructionPlugin.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 
45 
46 
52 
53 #include <QObject>
54 #include <QtGui>
55 
56 #include "PoissonToolbox.hh"
57 
59 {
60 Q_OBJECT
61 Q_INTERFACES(BaseInterface)
62 Q_INTERFACES(ToolboxInterface)
63 Q_INTERFACES(LoggingInterface)
64 Q_INTERFACES(LoadSaveInterface)
65 Q_INTERFACES(AboutInfoInterface)
66 
67  #if QT_VERSION >= 0x050000
68  Q_PLUGIN_METADATA(IID "org.OpenFlipper.Plugins.Plugin-PoissonReconstruction")
69  #endif
70 
71 signals:
72 
73  //BaseInterface
74  void updateView();
75  void setSlotDescription(QString _slotName, QString _slotDescription,
76  QStringList _parameters, QStringList _descriptions);
77 
78  //LoggingInterface:
79  void log( Logtype _type, QString _message );
80  void log( QString _message );
81 
82  // Load/Save Interface
83  void addEmptyObject (DataType _type, int& _id);
84  void deleteObject( int _id );
85 
86  // ToolboxInterface
87  void addToolbox( QString _name , QWidget* _widget, QIcon* _icon );
88 
89  //AboutInfoInterface
90  void addAboutInfo(QString _text, QString _tabName );
91 
92 
93 private slots:
94 
95  // BaseInterface
96  void initializePlugin();
97  void pluginsInitialized();
98 
99 private slots:
100 
102  void slotPoissonReconstruct();
103 
104  // Tell system that this plugin runs without ui
105  void noguiSupported( ) {} ;
106 
107 public slots:
108 
109 int poissonReconstruct(int _id, int _depth = 7);
110 
111  int poissonReconstruct(IdList _ids, int _depth = 7);
112 
113 public :
114  PoissonPlugin();
115  ~PoissonPlugin() {};
116 
117  QString name() { return (QString("Poisson Reconstruction Plugin")); };
118  QString description( ) { return (QString("Poisson reconstruction based on the Code by Michael Kazhdan and Matthew Bolitho")); };
119 
120 private :
121  PoissonToolBox* tool_;
122  QIcon* toolIcon_;
123 
124 
125 public slots:
126  QString version() { return QString("1.0"); };
127 };
128 
std::vector< int > IdList
Standard Type for id Lists used for scripting.
Definition: DataTypes.hh:192
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.
Interface for all Plugins which do logging to the logging window of the framework.
QString name()
Return a name for the plugin.
void slotPoissonReconstruct()
Button slot iterating over all targets and passing them to the correct functions. ...
Interface class from which all plugins have to be created.
Logtype
Log types for Message Window.
Predefined datatypes.
Definition: DataTypes.hh:96
About Info interface.
QString description()
Return a description of what the plugin is doing.