<parameter name="name" value="Post-Pro"/>
<parameter name="icon" value="ModuleVisu.png"/>
<!-- Other module preferences -->
- <parameter name="show_preview" value="false"/>
- <parameter name="invert_all_curves" value="false"/>
- <parameter name="use_absolute_length" value="false"/>
- <parameter name="generate_data_table" value="true"/>
- <parameter name="generate_curves" value="true"/>
- <parameter name="use_build_progress" value="false"/>
- <parameter name="full_med_loading" value="false"/>
+ <parameter name="display_only" value="false"/>
+ <parameter name="show_preview" value="false"/>
+ <parameter name="invert_all_curves" value="false"/>
+ <parameter name="use_absolute_length" value="false"/>
+ <parameter name="generate_data_table" value="true"/>
+ <parameter name="generate_curves" value="true"/>
+ <parameter name="use_build_progress" value="false"/>
+ <parameter name="full_med_loading" value="false"/>
<parameter name="mesh_represent" value="2"/>
<parameter name="mesh_shrink" value="false"/>
<parameter name="scalar_map_represent" value="2"/>
msgid "VISU_USE_SHADING"
msgstr "Use Shading"
+msgid "VISU_DISP_ONLY"
+msgstr "Display only on creation"
+
msgid "VISU_SHRINK"
msgstr "Shrink"
addPreference( tr( "VISU_USE_SHADING" ), representGr,
LightApp_Preferences::Bool, "VISU", "represent_shading" );
+ addPreference( "", representGr, LightApp_Preferences::Space );
+
+ addPreference( tr( "VISU_DISP_ONLY" ), representGr,
+ LightApp_Preferences::Bool, "VISU", "display_only" );
}
void VisuGUI::preferencesChanged( const QString& a, const QString& b)
public slots:
virtual bool deactivateModule( SUIT_Study* );
virtual bool activateModule( SUIT_Study* );
+ virtual void OnEraseAll();
protected slots:
void OnImportFromFile();
virtual void OnDisplayPrs();
virtual void OnDisplayOnlyPrs();
virtual void OnErasePrs();
- virtual void OnEraseAll();
+ // virtual void OnEraseAll();
void OnMakeSurfaceframe();
void OnMakeInsideframe();
aViewWindow = GetViewWindow<TViewer>(theModule);
// Display created presentation.
if (aViewWindow) {
+ if(aResourceMgr->booleanValue("VISU","display_only",false)){
+ theModule->OnEraseAll();
+ }
PublishInView(theModule, aPrs3d, aViewWindow, /*highlight = */true);
aViewWindow->onFitAll();