INT PAL 0052682: Local selection for ball elements has incorrect size

This commit is contained in:
imn 2015-04-17 11:02:17 +03:00
parent 38a77c4a98
commit ff7507fd9d
3 changed files with 13 additions and 0 deletions

View 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 )

View 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;
}

View File

@ -43,6 +43,7 @@ public:
vtkTypeMacro(SMESH_SVTKActor, SVTK_Actor);
void SetBallScale(double theSize);
void SetBallSize(float theSize);
void Set0DSize(float theSize);