// 3D presentations commands
QString aPrsType = " and $type in {'VISU::TMESH' " + aPrsAll + "}";
QString aInsideType = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TDEFORMEDSHAPE'}";
- QString aSurfType = " and $type in {'VISU::TMESH'}";
+ QString aSurfFrameType = " and $type in {'VISU::TMESH'}";
+ QString aSurfType = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TISOSURFACE' 'VISU::TDEFORMEDSHAPE' 'VISU::TCUTPLANES' "
+ " 'VISU::TPLOT3D' 'VISU::TSCALARMAPONDEFORMEDSHAPE'}";
QString aShrinkType = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TISOSURFACE' "
"'VISU::TDEFORMEDSHAPE' 'VISU::TCUTPLANES' 'VISU::TCUTLINES' 'VISU::TPLOT3D' 'VISU::TSCALARMAPONDEFORMEDSHAPE'}";
QString aLineType = " and $type in {'VISU::TMESH' 'VISU::TSCALARMAP' 'VISU::TISOSURFACE' 'VISU::TDEFORMEDSHAPE' "
mgr->setRule( action( VISU_POINTS ) , aRule + aPrsType + aNotPoints, true );
mgr->setRule( action( VISU_WIREFRAME ) , aRule + aPrsType + aNotWirefr, true );
- mgr->setRule( action( VISU_SURFACE ) , aRule + aPrsType + aNotSurfac, true );
+ mgr->setRule( action( VISU_SURFACE ) , aRule + aSurfType + aNotSurfac, true );
mgr->setRule( action( VISU_INSIDEFRAME ) , aRule + aInsideType + aNotInside, true );
- mgr->setRule( action( VISU_SURFACEFRAME ), aRule + aSurfType + aNotSurffr, true );
+ mgr->setRule( action( VISU_SURFACEFRAME ), aRule + aSurfFrameType + aNotSurffr, true );
mgr->setRule( action( VISU_SHRINK ) , aRule + aShrinkType + " and isShrunk=0", true );
mgr->setRule( action( VISU_UNSHRINK ), aRule + aShrinkType + " and isShrunk=1", true );
addPreference( tr( "Build groups" ), importGr, LightApp_Preferences::Bool, "VISU", "build_groups" );
addPreference( tr( "Close dialog at finish" ), importGr, LightApp_Preferences::Bool, "VISU", "close_at_finish" );
- // group: "Representation properties"
- int representGr = addPreference( tr( "VISU_PREF_REPRESENT_PROPS" ), srangeTab );
- addPreference( tr( "VISU_PREF_SHADING" ), representGr,
+ // TAB: Representation ; group: "Representation properties"
+ int representationTab = addPreference( tr( "Representation" ) );
+
+ int representGr = addPreference( tr( "VISU_REPRESENT_PROPS" ), representationTab );
+
+ QStringList mesh_modes;
+ mesh_modes.append( "Points" );
+ mesh_modes.append( "Wireframe" );
+ mesh_modes.append( "Insideframe" );
+ mesh_modes.append( "Surfaceframe" );
+ mesh_modes.append( "Surface" );
+ QValueList<QVariant> mesh_indices;
+ mesh_indices.append( 0 );
+ mesh_indices.append( 1 );
+ mesh_indices.append( 3 );
+ mesh_indices.append( 4 );
+ mesh_indices.append( 2 );
+
+ QStringList modes1 = mesh_modes;
+ modes1.remove( "Surfaceframe" );
+ QValueList<QVariant> indices1 = mesh_indices;
+ indices1.remove( 4 );
+
+ QStringList modes2 = modes1;
+ modes2.remove( "Insideframe" );
+ QValueList<QVariant> indices2 = indices1;
+ indices2.remove( 3 );
+
+ QStringList modes3 = modes2;
+ modes3.remove( "Surface" );
+ QValueList<QVariant> indices3 = indices2;
+ indices3.remove( 2 );
+
+
+ int mesh_represent = addPreference( tr( "VISU_MESH" ), representGr, LightApp_Preferences::Selector, "VISU", "mesh_represent" );
+ setPreferenceProperty( mesh_represent, "strings", mesh_modes );
+ setPreferenceProperty( mesh_represent, "indexes", mesh_indices );
+ addPreference( tr( "VISU_SHRINK" ), representGr, LightApp_Preferences::Bool, "VISU", "mesh_shrink" );
+
+ int scalar_map_represent = addPreference( tr( "VISU_SCALAR_MAP" ), representGr, LightApp_Preferences::Selector, "VISU", "scalar_map_represent" );
+ setPreferenceProperty( scalar_map_represent, "strings", modes1 );
+ setPreferenceProperty( scalar_map_represent, "indexes", indices1 );
+ addPreference( tr( "VISU_SHRINK" ), representGr, LightApp_Preferences::Bool, "VISU", "scalar_map_shrink" );
+
+ int iso_surfaces_represent = addPreference( tr( "VISU_ISO_SURFACES" ), representGr, LightApp_Preferences::Selector, "VISU", "iso_surfaces_represent" );
+ setPreferenceProperty( iso_surfaces_represent, "strings", modes2 );
+ setPreferenceProperty( iso_surfaces_represent, "indexes", indices2 );
+ addPreference( "", representGr, LightApp_Preferences::Space );
+
+ int cut_planes_represent = addPreference( tr( "VISU_CUT_PLANES" ), representGr, LightApp_Preferences::Selector, "VISU", "cut_planes_represent" );
+ setPreferenceProperty( cut_planes_represent, "strings", modes2 );
+ setPreferenceProperty( cut_planes_represent, "indexes", indices2 );
+ addPreference( "", representGr, LightApp_Preferences::Space );
+
+ int cut_lines_represent = addPreference( tr( "VISU_CUT_LINES" ), representGr, LightApp_Preferences::Selector, "VISU", "cut_lines_represent" );
+ setPreferenceProperty( cut_lines_represent, "strings", modes3 );
+ setPreferenceProperty( cut_lines_represent, "indexes", indices3 );
+ addPreference( "", representGr, LightApp_Preferences::Space );
+
+ int deformed_shape_represent = addPreference( tr( "VISU_DEFORMED_SHAPE" ), representGr, LightApp_Preferences::Selector, "VISU", "deformed_shape_represent" );
+ setPreferenceProperty( deformed_shape_represent, "strings", modes1 );
+ setPreferenceProperty( deformed_shape_represent, "indexes", indices1 );
+ addPreference( tr( "VISU_SHRINK" ), representGr, LightApp_Preferences::Bool, "VISU", "deformed_shape_shrink" );
+
+ int vectors_represent = addPreference( tr( "VISU_VECTORS" ), representGr, LightApp_Preferences::Selector, "VISU", "vectors_represent" );
+ setPreferenceProperty( vectors_represent, "strings", modes3 );
+ setPreferenceProperty( vectors_represent, "indexes", indices3 );
+ addPreference( "", representGr, LightApp_Preferences::Space );
+
+ int stream_lines_represent = addPreference( tr( "VISU_STREAM_LINES" ), representGr, LightApp_Preferences::Selector, "VISU", "stream_lines_represent" );
+ setPreferenceProperty( stream_lines_represent, "strings", modes3 );
+ setPreferenceProperty( stream_lines_represent, "indexes", indices3 );
+ addPreference( "", representGr, LightApp_Preferences::Space );
+
+ int plot3d_represent = addPreference( tr( "VISU_PLOT3D" ), representGr, LightApp_Preferences::Selector, "VISU", "plot3d_represent" );
+ setPreferenceProperty( plot3d_represent, "strings", modes2 );
+ setPreferenceProperty( plot3d_represent, "indexes", indices2 );
+ addPreference( "", representGr, LightApp_Preferences::Space );
+
+ int scalar_def_represent = addPreference( tr( "VISU_SCALAR_MAP_ON_DEFORMED_SHAPE" ), representGr, LightApp_Preferences::Selector, "VISU", "scalar_def_represent" );
+ setPreferenceProperty( scalar_def_represent, "strings", modes2 );
+ setPreferenceProperty( scalar_def_represent, "indexes", indices2 );
+ addPreference( tr( "VISU_SHRINK" ), representGr, LightApp_Preferences::Bool, "VISU", "scalar_def_shrink" );
+
+ addPreference( tr( "VISU_USE_SHADING" ), representGr,
LightApp_Preferences::Bool, "VISU", "represent_shading" );
}