1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 // File : HexoticPluginGUI_HypothesisCreator.cxx
22 // Author : Lioka RAZAFINDRAZAKA (CEA)
25 #include "HexoticPluginGUI_HypothesisCreator.h"
26 #include "HexoticPluginGUI_Dlg.h"
28 #include <SMESHGUI_Utils.h>
29 #include <SMESHGUI_HypothesesUtils.h>
30 #include "SMESH_NumberFilter.hxx"
32 #include "utilities.h"
34 #include CORBA_SERVER_HEADER(HexoticPlugin_Algorithm)
36 #include <SUIT_Session.h>
37 #include <SUIT_ResourceMgr.h>
38 #include <SUIT_FileDlg.h>
39 #include <SalomeApp_Tools.h>
40 #include <QtxIntSpinBox.h>
44 #include <QVBoxLayout>
45 #include <QGridLayout>
49 #include <QPushButton>
51 #include "SMESH_Gen_i.hxx"
54 #include <TColStd_MapOfInteger.hxx>
57 // Main widget tabs identification
63 // Size maps tab, table columns order
70 HexoticPluginGUI_HypothesisCreator::HexoticPluginGUI_HypothesisCreator( const QString& theHypType )
71 : SMESHGUI_GenericHypothesisCreator( theHypType ),
73 mySizeMapRemoved ( false )
77 HexoticPluginGUI_HypothesisCreator::~HexoticPluginGUI_HypothesisCreator()
81 bool HexoticPluginGUI_HypothesisCreator::checkParams(QString& msg) const
84 HexoticHypothesisData data_old, data_new;
85 readParamsFromHypo( data_old );
86 readParamsFromWidgets( data_new );
88 bool res = storeParamsToHypo( data_new );
90 storeParamsToHypo( data_old );
94 res = data_new.myMinSize <= data_new.myMaxSize;
96 msg = tr(QString("Min size (%1) is higher than max size (%2)").arg(data_new.myMinSize).arg(data_new.myMaxSize).toStdString().c_str());
100 res = data_new.myHexesMinLevel == 0 || \
101 ( data_new.myHexesMinLevel != 0 && (data_new.myHexesMinLevel < data_new.myHexesMaxLevel) );
103 msg = tr(QString("Min hexes level (%1) is higher than max hexes level (%2)").arg(data_new.myHexesMinLevel).arg(data_new.myHexesMaxLevel).toStdString().c_str());
110 QFrame* HexoticPluginGUI_HypothesisCreator::buildFrame()
112 QFrame* fr = new QFrame( 0 );
113 QVBoxLayout* lay = new QVBoxLayout( fr );
115 lay->setSpacing( 6 );
117 // main TabWidget of the dialog
118 QTabWidget* aTabWidget = new QTabWidget( fr );
119 aTabWidget->setTabShape( QTabWidget::Rounded );
120 aTabWidget->setTabPosition( QTabWidget::North );
121 lay->addWidget( aTabWidget );
123 // Standard arguments tab
124 QWidget* aStdGroup = new QWidget();
125 QGridLayout* l = new QGridLayout( aStdGroup );
132 l->addWidget( new QLabel( tr( "SMESH_NAME" ), aStdGroup ), row, 0, 1, 1 );
133 myName = new QLineEdit( aStdGroup );
134 l->addWidget( myName, row++, 1, 1, 2 );
135 myName->setMinimumWidth( 150 );
138 HexoticPlugin::HexoticPlugin_Hypothesis_var h =
139 HexoticPlugin::HexoticPlugin_Hypothesis::_narrow( initParamsHypothesis() );
141 myStdWidget = new HexoticPluginGUI_StdWidget(aStdGroup);
142 l->addWidget( myStdWidget, row++, 0, 1, 3 );
143 myStdWidget->onSdModeSelected(SD_MODE_4);
146 QWidget* aSmpGroup = new QWidget();
147 lay->addWidget( aSmpGroup );
149 // Size map widget creation and initialisation
150 mySmpWidget = new HexoticPluginGUI_SizeMapsWidget(aSmpGroup);
151 mySmpWidget->doubleSpinBox->setValue(0.0);
153 // Filters of selection
154 TColStd_MapOfInteger SM_ShapeTypes;
155 SM_ShapeTypes.Add( TopAbs_VERTEX );
156 SM_ShapeTypes.Add( TopAbs_EDGE );
157 SM_ShapeTypes.Add( TopAbs_WIRE );
158 SM_ShapeTypes.Add( TopAbs_FACE );
159 SM_ShapeTypes.Add( TopAbs_SOLID );
160 SM_ShapeTypes.Add( TopAbs_COMPOUND );
161 SMESH_NumberFilter* aFilter = new SMESH_NumberFilter("GEOM", TopAbs_SHAPE, 0, SM_ShapeTypes);
163 myGeomSelWdg = new StdMeshersGUI_ObjectReferenceParamWdg( aFilter, mySmpWidget, /*multiSel=*/false,/*stretch=*/false);
164 myGeomSelWdg->SetDefaultText(tr("Hexotic_SEL_SHAPE"), "QLineEdit { color: grey }");
165 mySmpWidget->gridLayout->addWidget(myGeomSelWdg, 0, 1);
167 QHBoxLayout* aSmpLayout = new QHBoxLayout( aSmpGroup );
168 aSmpLayout->setMargin( 0 );
169 aSmpLayout->addWidget( mySmpWidget);
171 QStringList headerLabels;
172 headerLabels << tr("Hexotic_ENTRY")<< tr("Hexotic_NAME")<< tr("Hexotic_SIZE");
173 mySmpWidget->tableWidget->setHorizontalHeaderLabels(headerLabels);
174 mySmpWidget->tableWidget->resizeColumnsToContents();
175 mySmpWidget->tableWidget->hideColumn( 0 );
176 mySmpWidget->label->setText(tr("LOCAL_SIZE"));
177 mySmpWidget->pushButton_1->setText(tr("Hexotic_ADD"));
178 mySmpWidget->pushButton_2->setText(tr("Hexotic_REMOVE"));
183 aTabWidget->insertTab( STD_TAB, aStdGroup, tr( "SMESH_ARGUMENTS" ) );
184 aTabWidget->insertTab( SMP_TAB, aSmpGroup, tr( "LOCAL_SIZE" ) );
189 connect( mySmpWidget->pushButton_1, SIGNAL( clicked() ), this, SLOT( onAddLocalSize() ) );
190 connect( mySmpWidget->pushButton_2, SIGNAL( clicked() ), this, SLOT( onRemoveLocalSize() ) );
195 void HexoticPluginGUI_HypothesisCreator::onAddLocalSize()
197 int rowCount = mySmpWidget->tableWidget->rowCount();
198 int columnCount = mySmpWidget->tableWidget->columnCount();
200 // Get the selected object properties
201 GEOM::GEOM_Object_var sizeMapObject = myGeomSelWdg->GetObject< GEOM::GEOM_Object >(0);
202 std::string entry, shapeName;
203 entry = (std::string) sizeMapObject->GetStudyEntry();
204 shapeName = sizeMapObject->GetName();
206 // Check if the object is already in the widget
207 QList<QTableWidgetItem *> listFound = mySmpWidget->tableWidget
208 ->findItems( QString(entry.c_str()), Qt::MatchExactly );
209 if ( !listFound.isEmpty() )
212 // Get the size value
213 double size = mySmpWidget->doubleSpinBox->value();
215 // Set items for the inserted row
216 insertLocalSizeInWidget( entry, shapeName, size, rowCount );
219 void HexoticPluginGUI_HypothesisCreator::insertLocalSizeInWidget( std::string entry,
220 std::string shapeName,
224 MESSAGE("HexoticPluginGUI_HypothesisCreator:insertLocalSizeInWidget")
225 int columnCount = mySmpWidget->tableWidget->columnCount();
227 // Add a row at the end of the table
228 mySmpWidget->tableWidget->insertRow(row);
231 for (int col = 0; col<columnCount; col++)
233 QTableWidgetItem* item = new QTableWidgetItem();
237 value = QVariant( entry.c_str() );
240 value = QVariant( shapeName.c_str() );
243 value = QVariant( size );
246 item->setData(Qt::DisplayRole, value );
247 mySmpWidget->tableWidget->setItem(row,col,item);
251 void HexoticPluginGUI_HypothesisCreator::onRemoveLocalSize()
253 // Remove the selected rows in the table
254 QList<QTableWidgetSelectionRange> ranges = mySmpWidget->tableWidget->selectedRanges();
255 if ( ranges.isEmpty() ) // If none is selected remove the last one
257 int lastRow = mySmpWidget->tableWidget->rowCount() - 1;
258 mySmpWidget->tableWidget->removeRow( lastRow );
262 QTableWidgetSelectionRange& range = ranges.first();
263 mySmpWidget->tableWidget->model()->removeRows(range.topRow(), range.rowCount());
265 mySizeMapRemoved = true;
268 //=================================================================================
269 // function : resizeEvent [REDEFINED]
271 //=================================================================================
272 void HexoticPluginGUI_HypothesisCreator::resizeEvent(QResizeEvent */*event*/) {
273 QSize scaledSize = myStdWidget->imageSdMode.size();
274 scaledSize.scale(myStdWidget->sdModeLabel->size(), Qt::KeepAspectRatioByExpanding);
275 if (!myStdWidget->sdModeLabel->pixmap() || scaledSize != myStdWidget->sdModeLabel->pixmap()->size())
276 myStdWidget->sdModeLabel->setPixmap(myStdWidget->imageSdMode.scaled(myStdWidget->sdModeLabel->size(),
278 Qt::SmoothTransformation));
281 void HexoticPluginGUI_HypothesisCreator::retrieveParams() const
283 HexoticHypothesisData data;
284 readParamsFromHypo( data );
288 myName->setText( data.myName );
290 myStdWidget->myMinSize->setCleared(data.myMinSize == 0);
291 if (data.myMinSize == 0)
292 myStdWidget->myMinSize->setText("");
294 myStdWidget->myMinSize->setValue( data.myMinSize );
296 myStdWidget->myMaxSize->setCleared(data.myMaxSize == 0);
297 if (data.myMaxSize == 0)
298 myStdWidget->myMaxSize->setText("");
300 myStdWidget->myMaxSize->setValue( data.myMaxSize );
302 myStdWidget->myHexesMinLevel->setCleared(data.myHexesMinLevel == 0);
303 if (data.myHexesMinLevel == 0)
304 myStdWidget->myHexesMinLevel->setText("");
306 myStdWidget->myHexesMinLevel->setValue( data.myHexesMinLevel );
308 myStdWidget->myHexesMaxLevel->setCleared(data.myHexesMaxLevel == 0);
309 if (data.myHexesMaxLevel == 0)
310 myStdWidget->myHexesMaxLevel->setText("");
312 myStdWidget->myHexesMaxLevel->setValue( data.myHexesMaxLevel );
314 myStdWidget->myHexoticIgnoreRidges->setChecked( data.myHexoticIgnoreRidges );
315 myStdWidget->myHexoticInvalidElements->setChecked( data.myHexoticInvalidElements );
317 myStdWidget->myHexoticSharpAngleThreshold->setCleared(data.myHexoticSharpAngleThreshold == 0);
318 if (data.myHexoticSharpAngleThreshold == 0)
319 myStdWidget->myHexoticSharpAngleThreshold->setText("");
321 myStdWidget->myHexoticSharpAngleThreshold->setValue( data.myHexoticSharpAngleThreshold );
323 myStdWidget->myHexoticNbProc->setValue( data.myHexoticNbProc );
324 myStdWidget->myHexoticWorkingDir->setText( data.myHexoticWorkingDir );
326 myStdWidget->myHexoticVerbosity->setValue( data.myHexoticVerbosity );
328 myStdWidget->myHexoticMaxMemory->setValue( data.myHexoticMaxMemory );
330 myStdWidget->myHexoticSdMode->setCurrentIndex(data.myHexoticSdMode);
332 HexoticPlugin_Hypothesis::THexoticSizeMaps::const_iterator it = data.mySizeMaps.begin();
333 for ( int row = 0; it != data.mySizeMaps.end(); it++, row++ )
335 std::string entry = it->first;
336 double size = it->second;
337 GEOM::GEOM_Object_var anObject = entryToObject( entry );
338 std::string shapeName = anObject->GetName();
340 MESSAGE(" Insert local size, entry : "<<entry<<", size : "<<size<<", at row : "<<row)
341 insertLocalSizeInWidget( entry, shapeName, size , row );
344 std::cout << "myStdWidget->myMinSize->value(): " << myStdWidget->myMinSize->value() << std::endl;
345 std::cout << "myStdWidget->myMaxSize->value(): " << myStdWidget->myMaxSize->value() << std::endl;
346 std::cout << "myStdWidget->myHexesMinLevel->value(): " << myStdWidget->myHexesMinLevel->value() << std::endl;
347 std::cout << "myStdWidget->myHexesMaxLevel->value(): " << myStdWidget->myHexesMaxLevel->value() << std::endl;
348 std::cout << "myStdWidget->myHexoticSharpAngleThreshold->value(): " << myStdWidget->myHexoticSharpAngleThreshold->value() << std::endl;
352 void HexoticPluginGUI_HypothesisCreator::printData( HexoticHypothesisData& data) const
355 valStr += tr("Hexotic_MIN_SIZE") + " = " + QString::number( data.myMinSize ) + "; ";
356 valStr += tr("Hexotic_MAX_SIZE") + " = " + QString::number( data.myMaxSize ) + "; ";
357 valStr += tr("Hexotic_HEXES_MIN_LEVEL") + " = " + QString::number( data.myHexesMinLevel ) + "; ";
358 valStr += tr("Hexotic_HEXES_MAX_LEVEL") + " = " + QString::number( data.myHexesMaxLevel ) + "; ";
359 valStr += tr("Hexotic_IGNORE_RIDGES") + " = " + QString::number( data.myHexoticIgnoreRidges ) + "; ";
360 valStr += tr("Hexotic_INVALID_ELEMENTS") + " = " + QString::number( data.myHexoticInvalidElements ) + "; ";
361 valStr += tr("Hexotic_SHARP_ANGLE_THRESHOLD") + " = " + QString::number( data.myHexoticSharpAngleThreshold ) + "; ";
362 valStr += tr("Hexotic_NB_PROC") + " = " + QString::number( data.myHexoticNbProc ) + "; ";
363 valStr += tr("Hexotic_WORKING_DIR") + " = " + data.myHexoticWorkingDir + "; ";
364 valStr += tr("Hexotic_VERBOSITY") + " = " + QString::number( data.myHexoticVerbosity ) + "; ";
365 valStr += tr("Hexotic_MAX_MEMORY") + " = " + QString::number( data.myHexoticMaxMemory ) + "; ";
366 valStr += tr("Hexotic_SD_MODE") + " = " + QString::number( data.myHexoticSdMode ) + "; ";
368 std::cout << "Data: " << valStr.toStdString() << std::endl;
371 QString HexoticPluginGUI_HypothesisCreator::storeParams() const
373 HexoticHypothesisData data;
374 readParamsFromWidgets( data );
375 storeParamsToHypo( data );
378 valStr += tr("Hexotic_MIN_SIZE") + " = " + QString::number( data.myMinSize ) + "; ";
379 valStr += tr("Hexotic_MAX_SIZE") + " = " + QString::number( data.myMaxSize ) + "; ";
380 valStr += tr("Hexotic_HEXES_MIN_LEVEL") + " = " + QString::number( data.myHexesMinLevel ) + "; ";
381 valStr += tr("Hexotic_HEXES_MAX_LEVEL") + " = " + QString::number( data.myHexesMaxLevel ) + "; ";
382 valStr += tr("Hexotic_IGNORE_RIDGES") + " = " + QString::number( data.myHexoticIgnoreRidges ) + "; ";
383 valStr += tr("Hexotic_INVALID_ELEMENTS") + " = " + QString::number( data.myHexoticInvalidElements ) + "; ";
384 valStr += tr("Hexotic_SHARP_ANGLE_THRESHOLD") + " = " + QString::number( data.myHexoticSharpAngleThreshold ) + "; ";
385 valStr += tr("Hexotic_NB_PROC") + " = " + QString::number( data.myHexoticNbProc ) + "; ";
386 valStr += tr("Hexotic_WORKING_DIR") + " = " + data.myHexoticWorkingDir + "; ";
387 valStr += tr("Hexotic_VERBOSITY") + " = " + QString::number( data.myHexoticVerbosity) + "; ";
388 valStr += tr("Hexotic_MAX_MEMORY") + " = " + QString::number( data.myHexoticMaxMemory ) + "; ";
389 valStr += tr("Hexotic_SD_MODE") + " = " + QString::number( data.myHexoticSdMode) + "; ";
391 // std::cout << "Data: " << valStr.toStdString() << std::endl;
396 bool HexoticPluginGUI_HypothesisCreator::readParamsFromHypo( HexoticHypothesisData& h_data ) const
398 HexoticPlugin::HexoticPlugin_Hypothesis_var h =
399 HexoticPlugin::HexoticPlugin_Hypothesis::_narrow( initParamsHypothesis() );
401 HypothesisData* data = SMESH::GetHypothesisData( hypType() );
402 h_data.myName = isCreation() && data ? data->Label : "";
403 h_data.myMinSize = h->GetMinSize();
404 h_data.myMaxSize = h->GetMaxSize();
405 h_data.myHexesMinLevel = h->GetHexesMinLevel();
406 h_data.myHexesMaxLevel = h->GetHexesMaxLevel();
407 h_data.myHexoticIgnoreRidges = h->GetHexoticIgnoreRidges();
408 h_data.myHexoticInvalidElements = h->GetHexoticInvalidElements();
409 h_data.myHexoticSharpAngleThreshold = h->GetHexoticSharpAngleThreshold();
410 h_data.myHexoticNbProc = h->GetHexoticNbProc();
411 h_data.myHexoticWorkingDir = h->GetHexoticWorkingDirectory();
412 h_data.myHexoticVerbosity = h->GetHexoticVerbosity();
413 h_data.myHexoticMaxMemory = h->GetHexoticMaxMemory();
414 h_data.myHexoticSdMode = h->GetHexoticSdMode()-1;
417 HexoticPlugin::HexoticPluginSizeMapsList_var sizeMaps = h->GetSizeMaps();
418 for ( int i = 0 ; i < sizeMaps->length() ; i++)
420 HexoticPlugin::HexoticPluginSizeMap aSizeMap = sizeMaps[i];
421 std::string entry = CORBA::string_dup(aSizeMap.entry.in());
422 double size = aSizeMap.size;
423 h_data.mySizeMaps[ entry ] = size;
424 MESSAGE("READING Size map : entry "<<entry<<" size : "<<size)
430 bool HexoticPluginGUI_HypothesisCreator::storeParamsToHypo( const HexoticHypothesisData& h_data ) const
432 HexoticPlugin::HexoticPlugin_Hypothesis_var h =
433 HexoticPlugin::HexoticPlugin_Hypothesis::_narrow( hypothesis() );
440 SMESH::SetName( SMESH::FindSObject( h ), h_data.myName.toLatin1().constData() );
442 h->SetMinSize( h_data.myMinSize );
443 h->SetMaxSize( h_data.myMaxSize );
444 h->SetHexesMinLevel( h_data.myHexesMinLevel );
445 h->SetHexesMaxLevel( h_data.myHexesMaxLevel );
446 h->SetHexoticIgnoreRidges( h_data.myHexoticIgnoreRidges );
447 h->SetHexoticInvalidElements( h_data.myHexoticInvalidElements );
448 h->SetHexoticSharpAngleThreshold( h_data.myHexoticSharpAngleThreshold );
449 h->SetHexoticNbProc( h_data.myHexoticNbProc );
450 h->SetHexoticWorkingDirectory( h_data.myHexoticWorkingDir.toLatin1().constData() );
451 h->SetHexoticVerbosity( h_data.myHexoticVerbosity );
452 h->SetHexoticMaxMemory( h_data.myHexoticMaxMemory );
453 h->SetHexoticSdMode( h_data.myHexoticSdMode+1 );
455 HexoticPlugin_Hypothesis::THexoticSizeMaps::const_iterator it;
457 // Clear size maps in hypothesis if one of them as been removed by the user
458 if ( mySizeMapRemoved )
461 for ( it = h_data.mySizeMaps.begin(); it != h_data.mySizeMaps.end(); it++ )
463 h->SetSizeMapEntry( it->first.c_str(), it->second );
464 MESSAGE("STORING Size map : entry "<<it->first.c_str()<<" size : "<<it->second)
467 catch(const SALOME::SALOME_Exception& ex)
469 SalomeApp_Tools::QtCatchCorbaException(ex);
475 bool HexoticPluginGUI_HypothesisCreator::readParamsFromWidgets( HexoticHypothesisData& h_data ) const
477 h_data.myName = myName ? myName->text() : "";
479 h_data.myHexoticIgnoreRidges = myStdWidget->myHexoticIgnoreRidges->isChecked();
480 h_data.myHexoticInvalidElements = myStdWidget->myHexoticInvalidElements->isChecked();
482 h_data.myHexoticNbProc = myStdWidget->myHexoticNbProc->value();
483 h_data.myHexoticWorkingDir = myStdWidget->myHexoticWorkingDir->text();
484 h_data.myHexoticVerbosity = myStdWidget->myHexoticVerbosity->value();
485 h_data.myHexoticMaxMemory = myStdWidget->myHexoticMaxMemory->value();
486 h_data.myHexoticSdMode = myStdWidget->myHexoticSdMode->currentIndex();
488 h_data.myMinSize = myStdWidget->myMinSize->text().isEmpty() ? 0.0 : myStdWidget->myMinSize->value();
489 h_data.myMaxSize = myStdWidget->myMaxSize->text().isEmpty() ? 0.0 : myStdWidget->myMaxSize->value();
490 h_data.myHexesMinLevel = myStdWidget->myHexesMinLevel->text().isEmpty() ? 0 : myStdWidget->myHexesMinLevel->value();
491 h_data.myHexesMaxLevel = myStdWidget->myHexesMaxLevel->text().isEmpty() ? 0 : myStdWidget->myHexesMaxLevel->value();
492 h_data.myHexoticSharpAngleThreshold = myStdWidget->myHexoticSharpAngleThreshold->text().isEmpty() ? 0 : myStdWidget->myHexoticSharpAngleThreshold->value();
495 bool ok = readSizeMapsFromWidgets( h_data );
504 bool HexoticPluginGUI_HypothesisCreator::readSizeMapsFromWidgets( HexoticHypothesisData& h_data ) const
506 int rowCount = mySmpWidget->tableWidget->rowCount();
507 for ( int row = 0; row < rowCount; row++ )
509 std::string entry = mySmpWidget->tableWidget->item( row, ENTRY_COL )->text().toStdString();
510 QVariant size_variant = mySmpWidget->tableWidget->item( row, SIZE_COL )->data(Qt::DisplayRole);
512 // Convert the size to double
514 double size = size_variant.toDouble(&ok);
519 h_data.mySizeMaps[ entry ] = size;
520 MESSAGE("READING Size map from WIDGET: entry "<<entry<<" size : "<<size)
524 GEOM::GEOM_Object_var HexoticPluginGUI_HypothesisCreator::entryToObject( std::string entry) const
526 SMESH_Gen_i* smeshGen_i = SMESH_Gen_i::GetSMESHGen();
527 SALOMEDS::Study_var myStudy = smeshGen_i->GetCurrentStudy();
528 GEOM::GEOM_Object_var aGeomObj;
529 SALOMEDS::SObject_var aSObj = myStudy->FindObjectID( entry.c_str() );
530 if (!aSObj->_is_nil()) {
531 CORBA::Object_var obj = aSObj->GetObject();
532 aGeomObj = GEOM::GEOM_Object::_narrow(obj);
538 QString HexoticPluginGUI_HypothesisCreator::caption() const
540 return myIs3D ? tr( "Hexotic_3D_TITLE" ) : tr( "Hexotic_3D_TITLE" ); // ??? 3D/2D ???
543 QPixmap HexoticPluginGUI_HypothesisCreator::icon() const
545 QString hypIconName = myIs3D ? tr( "ICON_DLG_Hexotic_PARAMETERS" ) : tr( "ICON_DLG_Hexotic_PARAMETERS" );
546 return SUIT_Session::session()->resourceMgr()->loadPixmap( "HexoticPLUGIN", hypIconName );
549 QString HexoticPluginGUI_HypothesisCreator::type() const
551 return myIs3D ? tr( "Hexotic_3D_HYPOTHESIS" ) : tr( "Hexotic_3D_HYPOTHESIS" ); // ??? 3D/2D ???
554 QString HexoticPluginGUI_HypothesisCreator::helpPage() const
556 return "hexotic_hypo_page.html";