Commit a16779e6 authored by Matthias Möller's avatar Matthias Möller

add nogui support

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free-Staging@16366 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 334776c9
......@@ -62,6 +62,9 @@ PoissonPlugin::PoissonPlugin() :
}
void PoissonPlugin::initializePlugin(){
if ( ! OpenFlipper::Options::gui())
return;
tool_ = new PoissonToolBox();
......@@ -100,12 +103,12 @@ void PoissonPlugin::initializePlugin(){
"ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH "
"DAMAGE. ";
emit addAboutInfo(info,"Poisson Reconstruction Plugin");
WhatsThisGenerator whatGen("PoissonReconstruction");
tool_->reconstructButton->setWhatsThis(tool_->reconstructButton->toolTip()+whatGen.generateLink());
tool_->depthBox->setWhatsThis(tool_->depthBox->toolTip()+whatGen.generateLink("octree"));
tool_->label->setWhatsThis(tool_->label->toolTip()+whatGen.generateLink("octree"));
emit addAboutInfo(info,"Poisson Reconstruction Plugin");
}
......@@ -250,6 +253,9 @@ void PoissonPlugin::poissonReconstruct(IdList _ids, int _depth)
void PoissonPlugin::slotPoissonReconstruct(){
if ( ! OpenFlipper::Options::gui())
return;
IdList ids;
for ( PluginFunctions::ObjectIterator o_it(PluginFunctions::TARGET_OBJECTS,(DATA_TRIANGLE_MESH | DATA_POLY_MESH | DATA_SPLATCLOUD )) ;o_it != PluginFunctions::objectsEnd(); ++o_it)
{
......
......@@ -95,6 +95,9 @@ private slots:
/// Button slot iterating over all targets and passing them to the correct functions
void slotPoissonReconstruct();
// Tell system that this plugin runs without ui
void noguiSupported( ) {} ;
public slots:
void poissonReconstruct(int _id, int _depth = 7);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment