Salome HOME
Porting to VTK 6.
[modules/visu.git] / src / OBJECT / VISU_ScalarMapAct.cxx
index d8cd51d65b1b3e0bfde156ca26c30cabde312f8f..754b0bb70e8902ab8cee05a8d67d0e88e80dbe15 100644 (file)
@@ -103,7 +103,7 @@ class VISU_PointsDeviceActor: public VISU_GaussDeviceActorBase
     Superclass::DoMapperShallowCopy( theMapper, theIsCopyInput );
 
     vtkDataSet* aDataSet = theMapper->GetInput();
-    vtkFloatingPointType aScaleFactor = VISU_DeformedShapePL::GetScaleFactor( aDataSet );
+    double aScaleFactor = VISU_DeformedShapePL::GetScaleFactor( aDataSet );
 
     GetPointSpriteMapper()->SetAverageCellSize( aScaleFactor );
   }
@@ -183,9 +183,9 @@ class VISU_PointsDeviceActor: public VISU_GaussDeviceActorBase
         if ( !GetVisibility() )
           return;
 
-        static vtkFloatingPointType anIncrement = 2;
-        vtkFloatingPointType aMagnification = GetPointSpriteMapper()->GetPointSpriteMagnification();
-        vtkFloatingPointType coefficient = myInteractor->GetShiftKey() ? anIncrement : 1 / anIncrement;
+        static double anIncrement = 2;
+        double aMagnification = GetPointSpriteMapper()->GetPointSpriteMagnification();
+        double coefficient = myInteractor->GetShiftKey() ? anIncrement : 1 / anIncrement;
 
         GetPointSpriteMapper()->SetPointSpriteMagnification( aMagnification * coefficient );
 
@@ -217,7 +217,7 @@ vtkStandardNewMacro(VISU_PointsDeviceActor);
 
 //----------------------------------------------------------------------------
 vtkStandardNewMacro(VISU_ScalarMapAct);
-static vtkFloatingPointType EPS = 1.0 / VTK_LARGE_FLOAT;
+static double EPS = 1.0 / VTK_LARGE_FLOAT;
 
 //----------------------------------------------------------------------------
 VISU_ScalarMapAct
@@ -359,7 +359,7 @@ VISU_ScalarMapAct
 
 void
 VISU_ScalarMapAct
-::SetShrinkFactor(vtkFloatingPointType theValue)
+::SetShrinkFactor(double theValue)
 {
   Superclass::SetShrinkFactor(theValue);
 
@@ -403,7 +403,7 @@ VISU_ScalarMapAct
 
 void
 VISU_ScalarMapAct
-::SetFeatureEdgesAngle(vtkFloatingPointType theValue)
+::SetFeatureEdgesAngle(double theValue)
 {
   Superclass::SetFeatureEdgesAngle(theValue);
 
@@ -453,15 +453,15 @@ VISU_ScalarMapAct
 //----------------------------------------------------------------------------
 void
 VISU_ScalarMapAct
-::SetOpacity(vtkFloatingPointType theValue)
+::SetOpacity(double theValue)
 {
   mySurfaceActor->GetProperty()->SetOpacity(theValue);
 
-  vtkFloatingPointType aPointSpriteOpacity = theValue > 0.0 ? 1.0 : 0.0;
+  double aPointSpriteOpacity = theValue > 0.0 ? 1.0 : 0.0;
   myPointSpriteActor->GetPointSpriteMapper()->SetPointSpriteOpacity(aPointSpriteOpacity);
 }
 
-vtkFloatingPointType
+double
 VISU_ScalarMapAct
 ::GetOpacity()
 {
@@ -471,12 +471,12 @@ VISU_ScalarMapAct
 //----------------------------------------------------------------------------
 void
 VISU_ScalarMapAct
-::SetLineWidth(vtkFloatingPointType theLineWidth)
+::SetLineWidth(double theLineWidth)
 {
   mySurfaceActor->GetProperty()->SetLineWidth(theLineWidth);
 }
 
-vtkFloatingPointType
+double
 VISU_ScalarMapAct::GetLineWidth()
 {
   return mySurfaceActor->GetProperty()->GetLineWidth();
@@ -803,14 +803,14 @@ void VISU_ScalarMapAct::SetMarkerTexture( int theMarkerId, VTK::MarkerTexture th
 /**
  * Set size of the 0D elements.
  */
-void VISU_ScalarMapAct::Set0DElemSize(vtkFloatingPointType theValue) {
+void VISU_ScalarMapAct::Set0DElemSize(double theValue) {
   mySurfaceActor->GetProperty()->SetPointSize(theValue);
 }
 
 /**
  * Get size of the 0D elements.
  */
-vtkFloatingPointType VISU_ScalarMapAct::Get0DElemSize() {
+double VISU_ScalarMapAct::Get0DElemSize() {
   return mySurfaceActor->GetProperty()->GetPointSize();
 }