mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
INT PAL 0052682: Local selection for ball elements has incorrect size
This commit is contained in:
parent
38a77c4a98
commit
ff7507fd9d
@ -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 )
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -43,6 +43,7 @@ public:
|
||||
|
||||
vtkTypeMacro(SMESH_SVTKActor, SVTK_Actor);
|
||||
|
||||
void SetBallScale(double theSize);
|
||||
void SetBallSize(float theSize);
|
||||
void Set0DSize(float theSize);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user