Commit a6e02a42 authored by Matthias Möller's avatar Matthias Möller
Browse files

nogui support

closes #2384

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20255 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e9a3656a
...@@ -55,19 +55,21 @@ thread_(0) ...@@ -55,19 +55,21 @@ thread_(0)
/// init the Toolbox /// init the Toolbox
void IsotropicRemesherPlugin::initializePlugin() { void IsotropicRemesherPlugin::initializePlugin() {
tool_ = new IsotropicRemesherToolBox(); if ( OpenFlipper::Options::gui() ) {
tool_ = new IsotropicRemesherToolBox();
QSize size(300, 300); QSize size(300, 300);
tool_->resize(size); tool_->resize(size);
connect(tool_->remeshButton, SIGNAL(clicked()), this, SLOT(slotRemeshButtonClicked()) ); connect(tool_->remeshButton, SIGNAL(clicked()), this, SLOT(slotRemeshButtonClicked()) );
connect(tool_->minEdgeLength, SIGNAL(clicked()), this, SLOT(slotSetMinLength()) ); connect(tool_->minEdgeLength, SIGNAL(clicked()), this, SLOT(slotSetMinLength()) );
connect(tool_->maxEdgeLength, SIGNAL(clicked()), this, SLOT(slotSetMaxLength()) ); connect(tool_->maxEdgeLength, SIGNAL(clicked()), this, SLOT(slotSetMaxLength()) );
connect(tool_->meanEdgeLength, SIGNAL(clicked()), this, SLOT(slotSetMeanLength()) ); connect(tool_->meanEdgeLength, SIGNAL(clicked()), this, SLOT(slotSetMeanLength()) );
toolIcon_ = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"remesher.png"); toolIcon_ = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"remesher.png");
emit addToolbox( tr("Isotropic Remesher") , tool_, toolIcon_ ); emit addToolbox( tr("Isotropic Remesher") , tool_, toolIcon_ );
}
} }
void IsotropicRemesherPlugin::slotRemeshButtonClicked() { void IsotropicRemesherPlugin::slotRemeshButtonClicked() {
......
...@@ -153,6 +153,7 @@ public slots: ...@@ -153,6 +153,7 @@ public slots:
public slots: public slots:
QString version() { return QString("1.0"); }; QString version() { return QString("1.0"); };
void noguiSupported( ) {} ;
}; };
#endif //ISOTROPICREMESHERPLUGIN_HH #endif //ISOTROPICREMESHERPLUGIN_HH
Supports Markdown
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