+ this->ui->checkBox->setCheckState(Qt::Checked);
+ }
+}
+
+void QtSurfaceRendererPanel::on_comboBoxSave_activated(int index)
+{
+ if(index == 1){
+ QString filename = QFileDialog::getSaveFileName(this,
+ tr("Save Mesh File"),
+ QDir::currentPath(),
+ tr("Mesh files (*.stl *.ply *.vtk)") );
+
+ if( !filename.isNull() ){
+ //filename.append(".stl");
+ this->saveProp3DSTL(0, filename.toStdString().c_str());
+ }
+ }else if(index == 2){
+
+ QString filename = QFileDialog::getSaveFileName(this,
+ tr("Save Image File"),
+ QDir::currentPath(),
+ tr("Meta Image file (*.mhd)") );
+
+ if( !filename.isNull() ){
+
+ this->exportImageStencil(0, filename.toStdString().c_str());
+ }