]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fixed Bug GVIEW10319 : Incorrect representation of points.
authorouv <ouv@opencascade.com>
Wed, 19 Oct 2005 08:31:06 +0000 (08:31 +0000)
committerouv <ouv@opencascade.com>
Wed, 19 Oct 2005 08:31:06 +0000 (08:31 +0000)
src/SVTK/SVTK_Renderer.cxx

index 5e1e1eb060757397ef24d6359c04234bc382823f..e0459678b55557f99d5bd4b63854fbb20ad429a6 100644 (file)
@@ -96,15 +96,15 @@ SVTK_Renderer
   //SetPreselectionProp();
   myPreHighlightProperty->Delete();
   myPreHighlightProperty->SetColor(0,1,1);
-  myPreHighlightProperty->SetPointSize(SALOME_POINT_SIZE);
-  myPreHighlightProperty->SetLineWidth(SALOME_LINE_WIDTH);
+  myPreHighlightProperty->SetPointSize(SALOME_POINT_SIZE+2);
+  myPreHighlightProperty->SetLineWidth(SALOME_LINE_WIDTH+2);
   myPreHighlightProperty->SetRepresentationToPoints();
 
   //SetSelectionProp();
   myHighlightProperty->Delete();
   myHighlightProperty->SetColor(1,1,0);
-  myHighlightProperty->SetPointSize(SALOME_POINT_SIZE);
-  myHighlightProperty->SetLineWidth(SALOME_LINE_WIDTH);
+  myHighlightProperty->SetPointSize(SALOME_POINT_SIZE+2);
+  myHighlightProperty->SetLineWidth(SALOME_LINE_WIDTH+2);
   myHighlightProperty->SetRepresentationToPoints();
 
   myTrihedron->Delete();
@@ -284,6 +284,7 @@ SVTK_Renderer
 {
   myHighlightProperty->SetColor( theRed, theGreen, theBlue );
   myHighlightProperty->SetLineWidth( theWidth );
+  myHighlightProperty->SetPointSize( theWidth );
 }
 
 //----------------------------------------------------------------------------
@@ -296,6 +297,7 @@ SVTK_Renderer
 {
   myPreHighlightProperty->SetColor( theRed, theGreen, theBlue );
   myPreHighlightProperty->SetLineWidth( theWidth );
+  myPreHighlightProperty->SetPointSize( theWidth );
 }
 
 //----------------------------------------------------------------------------