]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Merge branch 'master' of salome:modules/gui
authorvsr <vsr@opencascade.com>
Wed, 2 Apr 2014 07:07:35 +0000 (11:07 +0400)
committervsr <vsr@opencascade.com>
Wed, 2 Apr 2014 07:07:35 +0000 (11:07 +0400)
src/VTKViewer/VTKViewer_PolyDataMapper.cxx
src/VTKViewer/VTKViewer_PolyDataMapper.h

index 3d8733cc5ef88e736e67b236e0ef8f26f724bc24..0f1f19587d18142b2e2b8dd4e85b431454515d0a 100644 (file)
@@ -254,7 +254,7 @@ VTKViewer_PolyDataMapper::VTKViewer_PolyDataMapper()
   this->MarkerScale               = VTK::MS_NONE;
   this->MarkerId                  = 0;
   this->BallEnabled               = false;
-  this->BallScale                 = VTK::MS_10;
+  this->BallScale                 = 1.0;
   this->VertexProgram             = 0;
 }
 
@@ -386,12 +386,12 @@ void VTKViewer_PolyDataMapper::SetBallEnabled( bool theBallEnabled )
 }
 
 //-----------------------------------------------------------------------------
-int VTKViewer_PolyDataMapper::GetBallScale()
+double VTKViewer_PolyDataMapper::GetBallScale()
 {
   return this->BallScale;
 }
 //-----------------------------------------------------------------------------
-void VTKViewer_PolyDataMapper::SetBallScale( int theBallScale )
+void VTKViewer_PolyDataMapper::SetBallScale( double theBallScale )
 {
   if( this->BallScale == theBallScale )
     return;
@@ -794,7 +794,7 @@ namespace VTK
                    vtkIdType &theVertexId,
                    TBall* theBallArr,
                    vtkDataArray* theDiamArray,
-                   int theBallScale )
+                   double theBallScale )
   {
     vtkIdType* ptIds = theCells->GetPointer();
     vtkIdType* endPtIds = ptIds + theCells->GetNumberOfConnectivityEntries();
@@ -839,7 +839,7 @@ namespace VTK
                         TColorFunctorBase* theColorFunctor,
                         TVertex* theVertexArr,
                         TBall* theBallArr,
-                        int theBallScale )
+                        double theBallScale )
   {
     vtkIdType aCellId = 0, aVertexId = 0;
 
index 44b5e6bc6ff68b1ca0b4e3aa38b504f8255f69e6..88592e9a2135621f55c02cd5c0087f00655eeb9f 100644 (file)
@@ -76,9 +76,9 @@ public:
   bool GetBallEnabled( );
 
   //! Set ball scale factor
-  void SetBallScale( int );
+  void SetBallScale( double );
 
-  int GetBallScale( );
+  double GetBallScale( );
 
   //! Set standard point marker
   void SetMarkerStd( VTK::MarkerType, VTK::MarkerScale );
@@ -131,7 +131,7 @@ private:
 
   bool              MarkerEnabled;
   bool              BallEnabled; 
-  int               BallScale;
+  double            BallScale;
   VTK::MarkerType   MarkerType;
   VTK::MarkerScale  MarkerScale;
   int               MarkerId;