]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
INT PAL 0052682: Local selection for ball elements has incorrect size
authorimn <imn@opencascade.com>
Fri, 17 Apr 2015 08:02:17 +0000 (11:02 +0300)
committerimn <imn@opencascade.com>
Fri, 17 Apr 2015 08:02:17 +0000 (11:02 +0300)
src/OBJECT/SMESH_Actor.cxx
src/OBJECT/SMESH_SVTKActor.cxx
src/OBJECT/SMESH_SVTKActor.h

index 045bb9ccef4caf2d900868832b80c17da4b0b59f..65f9e87877ed7722a2c0f4cfd1579cb8f4d0134e 100644 (file)
@@ -2116,6 +2116,14 @@ double SMESH_ActorDef::GetBallScale()
 void SMESH_ActorDef::SetBallScale( double theVal )
 {
   myBallActor->SetBallScale( theVal );
+  if(SMESH_SVTKActor* aCustom = SMESH_SVTKActor::SafeDownCast( myHighlightActor )) {
+    aCustom->SetBallScale(theVal);
+  }
+  if(SMESH_SVTKActor* aCustom = SMESH_SVTKActor::SafeDownCast( myPreHighlightActor )) {
+    aCustom->SetBallScale(theVal);
+  }
+
+  Modified();
 }
 
 int SMESH_ActorDef::GetObjDimension( const int theObjId )
index 1b21525bdae91de8a891b4b06a7fdc5449b2f59a..4503dd1c427faf93fb9a22e7a1503fe11d065cb0 100644 (file)
@@ -197,6 +197,10 @@ void SMESH_SVTKActor::SetBallSize(float theSize) {
   myBallActor->GetProperty()->SetPointSize(theSize);
 }
 
+void SMESH_SVTKActor::SetBallScale(double theScale) {
+  myBallActor->SetBallScale(theScale);
+}
+
 void SMESH_SVTKActor::SetVisualObject(TVisualObjPtr theVisualObj) {
   myVisualObj = theVisualObj;
 }
index 42ebbe58a5a0e0590c26b34c649c891b23b0bb23..fa9b51245359eed1f04bd06c6747d6881ada098f 100644 (file)
@@ -43,6 +43,7 @@ public:
 
   vtkTypeMacro(SMESH_SVTKActor, SVTK_Actor);
 
+  void SetBallScale(double theSize);
   void SetBallSize(float theSize);
   void Set0DSize(float theSize);