mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
Bug IPAL21801: preferences for SMESH: color of Group name text should be added
EDF 703 SMESH VISU : Display Mesh Groups names in viewer (as a caption) Additional fix: add preferences for the names groups color
This commit is contained in:
parent
8c1e153907
commit
9862fa66b4
@ -33,6 +33,7 @@
|
||||
<parameter name="backface_color" value="0, 0, 255"/>
|
||||
<parameter name="elem0d_color" value="0, 255, 0"/>
|
||||
<parameter name="highlight_color" value="0, 255, 255"/>
|
||||
<parameter name="group_name_color" value="255, 255, 255"/>
|
||||
<parameter name="type_of_marker" value="1" />
|
||||
<parameter name="marker_scale" value="9" />
|
||||
<parameter name="elem0d_size" value="5" />
|
||||
|
@ -487,9 +487,11 @@ SMESH_ActorDef::SMESH_ActorDef()
|
||||
myHighlitableActor->SetQuadraticArcAngle(aQuadraticAngle);
|
||||
my2DActor->SetQuadraticArcAngle(aQuadraticAngle);
|
||||
|
||||
// Set color of the name actor
|
||||
// Set colors of the name actor
|
||||
SMESH::GetColor( "SMESH", "fill_color", anRGB[0], anRGB[1], anRGB[2], QColor( 0, 170, 255 ) );
|
||||
myNameActor->SetBackgroundColor(anRGB[0], anRGB[1], anRGB[2]);
|
||||
SMESH::GetColor( "SMESH", "group_name_color", anRGB[0], anRGB[1], anRGB[2], QColor( 255, 255, 255 ) );
|
||||
myNameActor->SetForegroundColor(anRGB[0], anRGB[1], anRGB[2]);
|
||||
}
|
||||
|
||||
|
||||
|
@ -3900,6 +3900,11 @@ void SMESHGUI::createPreferences()
|
||||
addPreference( tr( "PREF_BACKFACE" ), elemGroup, LightApp_Preferences::Color, "SMESH", "backface_color" );
|
||||
addPreference( tr( "PREF_COLOR_0D" ), elemGroup, LightApp_Preferences::Color, "SMESH", "elem0d_color" );
|
||||
|
||||
int grpGroup = addPreference( tr( "PREF_GROUP_GROUPS" ), meshTab );
|
||||
setPreferenceProperty( grpGroup, "columns", 2 );
|
||||
|
||||
addPreference( tr( "PREF_GRP_NAMES" ), grpGroup, LightApp_Preferences::Color, "SMESH", "group_name_color" );
|
||||
|
||||
//int sp = addPreference( "", elemGroup, LightApp_Preferences::Space );
|
||||
//setPreferenceProperty( sp, "hstretch", 0 );
|
||||
//setPreferenceProperty( sp, "vstretch", 0 );
|
||||
|
@ -3313,6 +3313,14 @@ Please, create VTK viewer and try again</translation>
|
||||
<source>PREF_GROUP_NODES</source>
|
||||
<translation>Nodes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PREF_GROUP_GROUPS</source>
|
||||
<translation>Groups</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PREF_GRP_NAMES</source>
|
||||
<translation>Names color</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>PREF_GROUP_PRECISION</source>
|
||||
<translation>Precision</translation>
|
||||
|
Loading…
Reference in New Issue
Block a user