mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-15 00:30:33 +05:00
Imp: dump mesh information to file
This commit is contained in:
parent
c8b155a155
commit
2cb5a0ee33
@ -82,6 +82,9 @@
|
||||
<parameter name="show_result_notification" value="2"/>
|
||||
<parameter name="mesh_elem_info" value="1"/>
|
||||
<parameter name="info_groups_nodes_limit" value="100000"/>
|
||||
<parameter name="info_dump_base" value="true" />
|
||||
<parameter name="info_dump_elem" value="true" />
|
||||
<parameter name="info_dump_add" value="true" />
|
||||
<parameter name="segmentation" value="10"/>
|
||||
<parameter name="nb_segments_per_edge" value="15"/>
|
||||
<parameter name="forget_mesh_on_hyp_modif" value="false"/>
|
||||
|
@ -4735,7 +4735,7 @@ void SMESHGUI::createPreferences()
|
||||
setPreferenceProperty( notifyMode, "indexes", indices );
|
||||
|
||||
int infoGroup = addPreference( tr( "PREF_GROUP_INFO" ), genTab );
|
||||
setPreferenceProperty( infoGroup, "columns", 4 );
|
||||
setPreferenceProperty( infoGroup, "columns", 2 );
|
||||
int elemInfo = addPreference( tr( "PREF_ELEM_INFO" ), infoGroup, LightApp_Preferences::Selector, "SMESH", "mesh_elem_info" );
|
||||
modes.clear();
|
||||
modes.append( tr( "PREF_ELEM_INFO_SIMPLE" ) );
|
||||
@ -4750,6 +4750,9 @@ void SMESHGUI::createPreferences()
|
||||
setPreferenceProperty( nodesLim, "max", 10000000 );
|
||||
setPreferenceProperty( nodesLim, "step", 10000 );
|
||||
setPreferenceProperty( nodesLim, "special", tr( "PREF_UPDATE_LIMIT_NOLIMIT" ) );
|
||||
addPreference( tr( "PREF_DUMP_BASE_INFO" ), infoGroup, LightApp_Preferences::Bool, "SMESH", "info_dump_base" );
|
||||
addPreference( tr( "PREF_DUMP_ELEM_INFO" ), infoGroup, LightApp_Preferences::Bool, "SMESH", "info_dump_elem" );
|
||||
addPreference( tr( "PREF_DUMP_ADD_INFO" ), infoGroup, LightApp_Preferences::Bool, "SMESH", "info_dump_add" );
|
||||
|
||||
int segGroup = addPreference( tr( "PREF_GROUP_SEGMENT_LENGTH" ), genTab );
|
||||
setPreferenceProperty( segGroup, "columns", 2 );
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -65,7 +65,10 @@ class SMESHGUI_EXPORT SMESHGUI_MeshInfo : public QFrame
|
||||
iNodesEnd,
|
||||
iElementsStart = iNodesEnd,
|
||||
iElements,
|
||||
i0DStart,
|
||||
iNbStart,
|
||||
iNb,
|
||||
iNbEnd,
|
||||
i0DStart = iNbEnd,
|
||||
i0D,
|
||||
i0DEnd,
|
||||
iBallsStart = i0DEnd,
|
||||
@ -108,6 +111,7 @@ public:
|
||||
|
||||
void showInfo( SMESH::SMESH_IDSource_ptr );
|
||||
void clear();
|
||||
void saveInfo( QTextStream &out );
|
||||
|
||||
private:
|
||||
enum { Bold = 0x01, Italic = 0x02 };
|
||||
@ -137,6 +141,7 @@ public:
|
||||
void showInfo( long, bool );
|
||||
void showInfo( QSet<long>, bool );
|
||||
void clear();
|
||||
virtual void saveInfo( QTextStream &out ) = 0;
|
||||
|
||||
protected:
|
||||
struct XYZ
|
||||
@ -186,6 +191,7 @@ class SMESHGUI_EXPORT SMESHGUI_SimpleElemInfo : public SMESHGUI_ElemInfo
|
||||
|
||||
public:
|
||||
SMESHGUI_SimpleElemInfo( QWidget* = 0 );
|
||||
void saveInfo( QTextStream &out );
|
||||
|
||||
protected:
|
||||
void information( const QList<long>& );
|
||||
@ -205,6 +211,7 @@ class SMESHGUI_EXPORT SMESHGUI_TreeElemInfo : public SMESHGUI_ElemInfo
|
||||
|
||||
public:
|
||||
SMESHGUI_TreeElemInfo( QWidget* = 0 );
|
||||
void saveInfo( QTextStream &out );
|
||||
|
||||
protected:
|
||||
void contextMenuEvent( QContextMenuEvent* e );
|
||||
@ -249,6 +256,7 @@ public:
|
||||
|
||||
void showInfo( SMESH::SMESH_IDSource_ptr );
|
||||
// void clear();
|
||||
void saveInfo( QTextStream &out );
|
||||
|
||||
private slots:
|
||||
void changeLoadToCompute();
|
||||
@ -306,6 +314,7 @@ private slots:
|
||||
void idChanged();
|
||||
void showItemInfo( int );
|
||||
void showItemInfo( const QString& );
|
||||
void dump();
|
||||
|
||||
private:
|
||||
QTabWidget* myTabWidget;
|
||||
|
@ -75,18 +75,6 @@
|
||||
<source>ASPECTRATIO_ELEMENTS</source>
|
||||
<translation>Aspect Ratio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NODE_POSITION</source>
|
||||
<translation>Position</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>U_POSITION</source>
|
||||
<translation>U</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>V_POSITION</source>
|
||||
<translation>V</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>COL_ALGO_HEADER</source>
|
||||
<translation>Algorithm</translation>
|
||||
@ -4247,6 +4235,18 @@ Please, create VTK viewer and try again</translation>
|
||||
<source>PREF_ELEM_INFO_TREE</source>
|
||||
<translation>Tree</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PREF_DUMP_BASE_INFO</source>
|
||||
<translation>Dump base information</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PREF_DUMP_ELEM_INFO</source>
|
||||
<translation>Dump element information</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PREF_DUMP_ADD_INFO</source>
|
||||
<translation>Dump additional information</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PREF_GPP_NODES_LIMIT</source>
|
||||
<translation>Automatic nodes compute limit</translation>
|
||||
@ -6444,6 +6444,10 @@ as they are of improper type:
|
||||
</context>
|
||||
<context>
|
||||
<name>SMESHGUI_MeshInfo</name>
|
||||
<message>
|
||||
<source>BASE_INFO</source>
|
||||
<translation>Base information</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NAME_LAB</source>
|
||||
<translation>Name:</translation>
|
||||
@ -6595,6 +6599,18 @@ as they are of improper type:
|
||||
<source>ELEM_MODE</source>
|
||||
<translation>Element</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>BUT_DUMP_MESH</source>
|
||||
<translation>&Dump</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>TEXT_FILES</source>
|
||||
<translation>Text files (*.txt)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>SAVE_INFO</source>
|
||||
<translation>Save info</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>X_FROM_Y_ITEMS_SHOWN</source>
|
||||
<translation>%1-%2 from %3 items shown</translation>
|
||||
@ -6602,61 +6618,65 @@ as they are of improper type:
|
||||
</context>
|
||||
<context>
|
||||
<name>SMESHGUI_ElemInfo</name>
|
||||
<message>
|
||||
<source>ELEM_INFO</source>
|
||||
<translation>Element information</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>COORDINATES</source>
|
||||
<translation>COORDINATES</translation>
|
||||
<translation>Coordinates</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>CONNECTIVITY</source>
|
||||
<translation>CONNECTIVITY</translation>
|
||||
<translation>Connectivity</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GRAVITY_CENTER</source>
|
||||
<translation>GRAVITY CENTER</translation>
|
||||
<translation>Gravity Center</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NODE</source>
|
||||
<translation>NODE</translation>
|
||||
<translation>Node</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>0D_ELEMENT</source>
|
||||
<translation>0D ELEMENT</translation>
|
||||
<translation>0D Element</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>0D_ELEMENTS</source>
|
||||
<translation>0D ELEMENTS</translation>
|
||||
<translation>0D Elements</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>BALL_ELEMENT</source>
|
||||
<translation>BALL ELEMENT</translation>
|
||||
<translation>Ball Element</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>BALL_ELEMENTS</source>
|
||||
<translation>BALL ELEMENTS</translation>
|
||||
<translation>Ball Elements</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>EDGE</source>
|
||||
<translation>EDGE</translation>
|
||||
<translation>Edge</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>EDGES</source>
|
||||
<translation>EDGES</translation>
|
||||
<translation>Edges</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>FACE</source>
|
||||
<translation>FACE</translation>
|
||||
<translation>Face</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>FACES</source>
|
||||
<translation>FACES</translation>
|
||||
<translation>Faces</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>VOLUME</source>
|
||||
<translation>VOLUME</translation>
|
||||
<translation>Volumt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>VOLUMES</source>
|
||||
<translation>VOLUMES</translation>
|
||||
<translation>Volumes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>FREE_NODE</source>
|
||||
@ -6664,7 +6684,7 @@ as they are of improper type:
|
||||
</message>
|
||||
<message>
|
||||
<source>TYPE</source>
|
||||
<translation>TYPE</translation>
|
||||
<translation>Type</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>TRIANGLE</source>
|
||||
@ -6704,7 +6724,7 @@ as they are of improper type:
|
||||
</message>
|
||||
<message>
|
||||
<source>QUADRATIC</source>
|
||||
<translation>QUADRATIC</translation>
|
||||
<translation>Quadratic</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>YES</source>
|
||||
@ -6714,6 +6734,49 @@ as they are of improper type:
|
||||
<source>NO</source>
|
||||
<translation>No</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>BALL_DIAMETER</source>
|
||||
<translation>Diameter</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_VERTEX</source>
|
||||
<translation>Vertex</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_EDGE</source>
|
||||
<translation>Edge</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_FACE</source>
|
||||
<translation>Face</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_SOLID</source>
|
||||
<translation>Solid</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NODE_POSITION</source>
|
||||
<translation>Position</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>U_POSITION</source>
|
||||
<translation>U</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>V_POSITION</source>
|
||||
<translation>V</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>CONTROLS</source>
|
||||
<translation>Quality Controls</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SMESHGUI_TreeElemInfo</name>
|
||||
<message>
|
||||
<source>SHOW_ITEM_INFO</source>
|
||||
<translation>Show info</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PROPERTY</source>
|
||||
<translation>Property</translation>
|
||||
@ -6725,6 +6788,10 @@ as they are of improper type:
|
||||
</context>
|
||||
<context>
|
||||
<name>SMESHGUI_AddInfo</name>
|
||||
<message>
|
||||
<source>ADDITIONAL_INFO</source>
|
||||
<translation>Additional information</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NAME</source>
|
||||
<translation>Name</translation>
|
||||
|
@ -63,18 +63,6 @@
|
||||
<source>ASPECTRATIO_ELEMENTS</source>
|
||||
<translation>Rapport de forme</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NODE_POSITION</source>
|
||||
<translation>Position</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>U_POSITION</source>
|
||||
<translation>U</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>V_POSITION</source>
|
||||
<translation>V</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>COL_ALGO_HEADER</source>
|
||||
<translation>Algorithme</translation>
|
||||
@ -4154,6 +4142,18 @@ Ouvrez une fenêtre VTK et essayez de nouveau</translation>
|
||||
<source>PREF_ELEM_INFO_TREE</source>
|
||||
<translation>Arbre</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PREF_DUMP_BASE_INFO</source>
|
||||
<translation type="unfinished">Dump base information</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PREF_DUMP_ELEM_INFO</source>
|
||||
<translation type="unfinished">Dump element information</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PREF_DUMP_ADD_INFO</source>
|
||||
<translation type="unfinished">Dump additional information</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PREF_GPP_NODES_LIMIT</source>
|
||||
<translation>Calcul automatique du nombre de nœuds: limite</translation>
|
||||
@ -6315,6 +6315,10 @@ en raison de leurs types incompatibles:
|
||||
</context>
|
||||
<context>
|
||||
<name>SMESHGUI_MeshInfo</name>
|
||||
<message>
|
||||
<source>BASE_INFO</source>
|
||||
<translation>Informations de base</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NAME_LAB</source>
|
||||
<translation>Nom:</translation>
|
||||
@ -6466,6 +6470,18 @@ en raison de leurs types incompatibles:
|
||||
<source>ELEM_MODE</source>
|
||||
<translation>Elément</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>BUT_DUMP_MESH</source>
|
||||
<translation>&Dump</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>TEXT_FILES</source>
|
||||
<translation type="unfinished">Text files (*.txt)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>SAVE_INFO</source>
|
||||
<translation type="unfinished">Save info</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>X_FROM_Y_ITEMS_SHOWN</source>
|
||||
<translation>%1-%2 sur %3 éléments affichés</translation>
|
||||
@ -6473,6 +6489,10 @@ en raison de leurs types incompatibles:
|
||||
</context>
|
||||
<context>
|
||||
<name>SMESHGUI_ElemInfo</name>
|
||||
<message>
|
||||
<source>ELEM_INFO</source>
|
||||
<translation>Infos sur les éléments</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>COORDINATES</source>
|
||||
<translation>COORDONNÉES</translation>
|
||||
@ -6585,6 +6605,49 @@ en raison de leurs types incompatibles:
|
||||
<source>NO</source>
|
||||
<translation>Non</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>BALL_DIAMETER</source>
|
||||
<translation>Diamètre</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_VERTEX</source>
|
||||
<translation>Sommet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_EDGE</source>
|
||||
<translation>Arête</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_FACE</source>
|
||||
<translation>Face</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>GEOM_SOLID</source>
|
||||
<translation>Solide</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NODE_POSITION</source>
|
||||
<translation>Position</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>U_POSITION</source>
|
||||
<translation>U</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>V_POSITION</source>
|
||||
<translation>V</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>CONTROLS</source>
|
||||
<translation>Quality Controls</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SMESHGUI_TreeElemInfo</name>
|
||||
<message>
|
||||
<source>SHOW_ITEM_INFO</source>
|
||||
<translation>Show info</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PROPERTY</source>
|
||||
<translation>Propriété</translation>
|
||||
@ -6596,6 +6659,10 @@ en raison de leurs types incompatibles:
|
||||
</context>
|
||||
<context>
|
||||
<name>SMESHGUI_AddInfo</name>
|
||||
<message>
|
||||
<source>ADDITIONAL_INFO</source>
|
||||
<translation>Infos détaillées</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NAME</source>
|
||||
<translation>Nom</translation>
|
||||
|
Loading…
Reference in New Issue
Block a user