<source>HOM_YACS_EDIT_WINDOW_TITLE</source>
<translation>Edition of a schema YACS</translation>
</message>
- <message>
- <source>PREF_TAB_GENERAL</source>
- <translation>General</translation>
- </message>
- <message>
- <source>PREF_PUBLICATION</source>
- <translation>Publication</translation>
- </message>
- <message>
- <source>PREF_PUBLICATION_MAILLAGE_IN</source>
- <translation>IN meshes</translation>
- </message>
- <message>
- <source>PREF_PUBLICATION_MAILLAGE_OUT</source>
- <translation>OUT meshes</translation>
- </message>
- <message>
- <source>PREF_YACS</source>
- <translation>YACS</translation>
- </message>
- <message>
- <source>PREF_YACS_MAX</source>
- <translation>Maximum numbers</translation>
- </message>
- <message>
- <source>PREF_YACS_MAX_ITER</source>
- <translation>Iterations</translation>
- </message>
- <message>
- <source>PREF_YACS_MAX_NODE</source>
- <translation>Nodes</translation>
- </message>
- <message>
- <source>PREF_YACS_MAX_ELEM</source>
- <translation>Elements</translation>
- </message>
- <message>
- <source>PREF_YACS_CONVERGENCE</source>
- <translation>Convergence</translation>
- </message>
- <message>
- <source>PREF_YACS_TYPE_TEST</source>
- <translation>Test type</translation>
- </message>
</context>
</TS>
<source>HOM_YACS_EDIT_WINDOW_TITLE</source>
<translation>Edition d'un schéma YACS</translation>
</message>
- <message>
- <source>PREF_TAB_GENERAL</source>
- <translation>Général</translation>
- </message>
- <message>
- <source>PREF_PUBLICATION</source>
- <translation>Publication</translation>
- </message>
- <message>
- <source>PREF_PUBLICATION_MAILLAGE_IN</source>
- <translation>Les maillages d'entrée</translation>
- </message>
- <message>
- <source>PREF_PUBLICATION_MAILLAGE_OUT</source>
- <translation>Les maillages de sortie</translation>
- </message>
- <message>
- <source>PREF_YACS</source>
- <translation>YACS</translation>
- </message>
- <message>
- <source>PREF_YACS_MAX</source>
- <translation>Nombres maximum</translation>
- </message>
- <message>
- <source>PREF_YACS_MAX_ITER</source>
- <translation>Itérations</translation>
- </message>
- <message>
- <source>PREF_YACS_MAX_NODE</source>
- <translation>Noeuds</translation>
- </message>
- <message>
- <source>PREF_YACS_MAX_ELEM</source>
- <translation>Eléments</translation>
- </message>
- <message>
- <source>PREF_YACS_CONVERGENCE</source>
- <translation>Convergence</translation>
- </message>
- <message>
- <source>PREF_YACS_TYPE_TEST</source>
- <translation>Type de test</translation>
- </message>
</context>
</TS>
${PROJECT_SOURCE_DIR}/src/Controls
${PROJECT_SOURCE_DIR}/src/SMESHClient
${PROJECT_SOURCE_DIR}/src/MEDWrapper
+ ${PROJECT_SOURCE_DIR}/src/ADAPTGUI
${PROJECT_BINARY_DIR}
${PROJECT_BINARY_DIR}/idl
)
#include "SMESHGUI_TransparencyDlg.h"
#include "SMESHGUI_Utils.h"
#include "SMESHGUI_VTKUtils.h"
+#include "ADAPTGUI.h"
#include "SMESH_version.h"
setPreferenceProperty( coloringType, "indexes", indices );
addPreference( tr( "SMESH_DISTRIBUTION_COLOR" ), distributionGr, LightApp_Preferences::Color, "SMESH", "distribution_color" );
+ // Adaptation tab ------------------------------------------------------------------------
+ int adaptTab = addPreference( tr( "ADAPT_PREF_TAB_GENERAL" ) );
+ int bloc, pref ;
+ // Refinement with HOMARD
+ bloc = addPreference( tr( "ADAPT_PREF_PUBLICATION" ), adaptTab );
+ setPreferenceProperty( bloc, "columns", 1 );
+ pref = addPreference( tr( "ADAPT_PREF_PUBLICATION_MAILLAGE_IN" ), bloc, LightApp_Preferences::Bool, "HOMARD", "publish_mesh_in" );
+ pref = addPreference( tr( "ADAPT_PREF_PUBLICATION_MAILLAGE_OUT" ), bloc, LightApp_Preferences::Bool, "HOMARD", "publish_mesh_out" );
+
+ bloc = addPreference( tr( "ADAPT_PREF_YACS_MAX" ), adaptTab );
+ setPreferenceProperty( bloc, "columns", 1 );
+ pref = addPreference( tr( "ADAPT_PREF_YACS_MAX_ITER" ), bloc, LightApp_Preferences::IntSpin, "HOMARD", "yacs_max_iter" );
+ setPreferenceProperty( pref, "min", 0 );
+ setPreferenceProperty( pref, "max", 100000000 );
+ setPreferenceProperty( pref, "step", 1 );
+ pref = addPreference( tr( "ADAPT_PREF_YACS_MAX_NODE" ), bloc, LightApp_Preferences::IntSpin, "HOMARD", "yacs_max_node" );
+ setPreferenceProperty( pref, "min", 0 );
+ setPreferenceProperty( pref, "max", 100000000 );
+ setPreferenceProperty( pref, "step", 1000 );
+ pref = addPreference( tr( "ADAPT_PREF_YACS_MAX_ELEM" ), bloc, LightApp_Preferences::IntSpin, "HOMARD", "yacs_max_elem" );
+ setPreferenceProperty( pref, "min", 0 );
+ setPreferenceProperty( pref, "max", 100000000 );
+ setPreferenceProperty( pref, "step", 1000 );
+ bloc = addPreference( tr( "ADAPT_PREF_YACS_CONVERGENCE" ), adaptTab );
+ setPreferenceProperty( bloc, "columns", 1 );
+ pref = addPreference( tr( "ADAPT_PREF_YACS_TYPE_TEST" ), bloc, LightApp_Preferences::Selector, "HOMARD", "yacs_type_test" );
+ QStringList aListOfTypeTest;
+ aListOfTypeTest << "None";
+ aListOfTypeTest << "VTest > VRef";
+ aListOfTypeTest << "VTest < VRef";
+ setPreferenceProperty( pref, "strings", aListOfTypeTest );
+
}
void SMESHGUI::preferencesChanged( const QString& sect, const QString& name )
op = new SMESHGUI_SplitBiQuadOp();
break;
case SMESHOp::OpUniformRefinement:
- break;
case SMESHOp::OpHONewCase:
- break;
case SMESHOp::OpHOCaseFollow:
- break;
case SMESHOp::OpHONewIter:
- break;
case SMESHOp::OpHOIterCompute:
- break;
case SMESHOp::OpHOIterComputePublish:
- break;
case SMESHOp::OpHOEdit:
- break;
case SMESHOp::OpHODelete:
- break;
case SMESHOp::OpMGAdapt:
+// op = new ADAPTGUI( id );
break;
case SMESHOp::OpConvertMeshToQuadratic:
op = new SMESHGUI_ConvToQuadOp();
<source>SMESH_MULTICOLOR</source>
<translation>Multicolor</translation>
</message>
+ <message>
+ <source>ADAPT_PREF_TAB_GENERAL</source>
+ <translation>Adaptation</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_PUBLICATION</source>
+ <translation>Publication</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_PUBLICATION_MAILLAGE_IN</source>
+ <translation>IN meshes</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_PUBLICATION_MAILLAGE_OUT</source>
+ <translation>OUT meshes</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_YACS_MAX</source>
+ <translation>Maximum numbers</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_YACS_MAX_ITER</source>
+ <translation>Iterations</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_YACS_MAX_NODE</source>
+ <translation>Nodes</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_YACS_MAX_ELEM</source>
+ <translation>Elements</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_YACS_CONVERGENCE</source>
+ <translation>Convergence</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_YACS_TYPE_TEST</source>
+ <translation>Test type</translation>
+ </message>
<message>
<source>SMESH_VISU_PROBLEM</source>
<translation>Mesh visualization failed</translation>
<source>SMESH_MULTICOLOR</source>
<translation>Multicouleur</translation>
</message>
+ <message>
+ <source>ADAPT_PREF_TAB_GENERAL</source>
+ <translation>Adaptation</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_PUBLICATION</source>
+ <translation>Publication</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_PUBLICATION_MAILLAGE_IN</source>
+ <translation>Les maillages d'entrée</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_PUBLICATION_MAILLAGE_OUT</source>
+ <translation>Les maillages de sortie</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_YACS_MAX</source>
+ <translation>Nombres maximaux</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_YACS_MAX_ITER</source>
+ <translation>Itérations</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_YACS_MAX_NODE</source>
+ <translation>Noeuds</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_YACS_MAX_ELEM</source>
+ <translation>Eléments</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_YACS_CONVERGENCE</source>
+ <translation>Convergence</translation>
+ </message>
+ <message>
+ <source>ADAPT_PREF_YACS_TYPE_TEST</source>
+ <translation>Type de test</translation>
+ </message>
<message>
<source>SMESH_VISU_PROBLEM</source>
<translation>Impossible de visualiser le maillage, probablement à cause d'un manque de mémoire</translation>