Salome HOME
Porting to VTK 6.
[modules/visu.git] / src / VISU_I / VISU_PointMap3d_i.cc
index 8a54f233dc83683d58bf56090707188442efde43..ba7eef231fe8bc41ad1bc3fede43ad8cc9267595 100644 (file)
@@ -229,11 +229,11 @@ VISU::Storable* VISU::PointMap3d_i::Create()
   // Scalar Bar origin
   QString propertyName = QString( "scalar_bar_%1_" ).arg( anOrientation == 0 ? "vertical" : "horizontal" );
 
-  vtkFloatingPointType aXorigin = (myBarOrientation == VISU::ColoredPrs3dBase::VERTICAL) ? 0.01 : 0.2;
+  double aXorigin = (myBarOrientation == VISU::ColoredPrs3dBase::VERTICAL) ? 0.01 : 0.2;
   aXorigin = aResourceMgr->doubleValue("VISU", propertyName + "x", aXorigin);
   myPosition[0] = aXorigin;
 
-  vtkFloatingPointType aYorigin = (myBarOrientation == VISU::ColoredPrs3dBase::VERTICAL) ? 0.1 : 0.012;
+  double aYorigin = (myBarOrientation == VISU::ColoredPrs3dBase::VERTICAL) ? 0.1 : 0.012;
   aYorigin = aResourceMgr->doubleValue("VISU", propertyName + "y", aYorigin);
   myPosition[1] = aYorigin;
 
@@ -406,7 +406,7 @@ void VISU::PointMap3d_i::UpdateActor(VISU_ActorBase* theActor)
     aScalarBar->SetNumberOfLabels(GetLabels());
     aScalarBar->SetLabelFormat(GetLabelsFormat());
 
-    vtkFloatingPointType anRGB[3];
+    double anRGB[3];
 
     vtkTextProperty* aTitleProp = aScalarBar->GetTitleTextProperty();
     aTitleProp->SetFontFamily(GetTitFontType());
@@ -830,8 +830,8 @@ CORBA::Double VISU::PointMap3d_i::GetMax()
 
 void VISU::PointMap3d_i::SetRange(CORBA::Double theMin, CORBA::Double theMax)
 {
-  vtkFloatingPointType aScalarRange[2] = {theMin, theMax};
-  ProcessVoidEvent(new TVoidMemFun1ArgEvent<VISU_DeformedGridPL, vtkFloatingPointType*>
+  double aScalarRange[2] = {theMin, theMax};
+  ProcessVoidEvent(new TVoidMemFun1ArgEvent<VISU_DeformedGridPL, double*>
                   (GetSpecificPL(), &VISU_DeformedGridPL::SetScalarRange, aScalarRange));
 
   UseFixedRange(true);
@@ -839,14 +839,14 @@ void VISU::PointMap3d_i::SetRange(CORBA::Double theMin, CORBA::Double theMax)
 
 CORBA::Double VISU::PointMap3d_i::GetSourceMin()
 {
-  vtkFloatingPointType aRange[2];
+  double aRange[2];
   GetSpecificPL()->GetSourceRange(aRange);
   return aRange[0];
 }
 
 CORBA::Double VISU::PointMap3d_i::GetSourceMax()
 {
-  vtkFloatingPointType aRange[2];
+  double aRange[2];
   GetSpecificPL()->GetSourceRange(aRange);
   return aRange[1];
 }
@@ -948,7 +948,7 @@ void VISU::PointMap3d_i::SetBarOrientation(VISU::ColoredPrs3dBase::Orientation t
 
   if ( ( theBarOrientation == VISU::ColoredPrs3dBase::VERTICAL && myHeight < myWidth ) ||
        ( theBarOrientation == VISU::ColoredPrs3dBase::HORIZONTAL && myHeight > myWidth ) ) {
-    vtkFloatingPointType tmp = myHeight;
+    double tmp = myHeight;
     myHeight = myWidth;
     myWidth = tmp;
   }
@@ -996,7 +996,7 @@ bool VISU::PointMap3d_i::IsPositiveTable()
 
 void VISU::PointMap3d_i::SetScaleFactor (CORBA::Double theScaleFactor)
 {
-  ProcessVoidEvent(new TVoidMemFun1ArgEvent<VISU_DeformedGridPL, vtkFloatingPointType>
+  ProcessVoidEvent(new TVoidMemFun1ArgEvent<VISU_DeformedGridPL, double>
                   (GetSpecificPL(), &VISU_DeformedGridPL::SetScaleFactor, theScaleFactor));
 }
 
@@ -1116,9 +1116,9 @@ void VISU::PointMap3d_i::SetTitFontType(int theTitFontType)
 }
 
 //----------------------------------------------------------------------------
-void VISU::PointMap3d_i::GetTitleColor(vtkFloatingPointType& theR, 
-                                        vtkFloatingPointType& theG, 
-                                        vtkFloatingPointType& theB)
+void VISU::PointMap3d_i::GetTitleColor(double& theR, 
+                                        double& theG, 
+                                        double& theB)
 {
   theR = myTitleColor[0]; 
   theG = myTitleColor[1]; 
@@ -1126,9 +1126,9 @@ void VISU::PointMap3d_i::GetTitleColor(vtkFloatingPointType& theR,
 }
 
 //----------------------------------------------------------------------------
-void VISU::PointMap3d_i::SetTitleColor(vtkFloatingPointType theR, 
-                                        vtkFloatingPointType theG, 
-                                        vtkFloatingPointType theB)
+void VISU::PointMap3d_i::SetTitleColor(double theR, 
+                                        double theG, 
+                                        double theB)
 {
   bool anIsSameValue = VISU::CheckIsSameValue(myTitleColor[0], theR);
   anIsSameValue &= VISU::CheckIsSameValue(myTitleColor[1], theG);
@@ -1207,9 +1207,9 @@ void VISU::PointMap3d_i::SetLblFontType(int theLblFontType)
 }
 
 //----------------------------------------------------------------------------
-void VISU::PointMap3d_i::GetLabelColor(vtkFloatingPointType& theR, 
-                                 vtkFloatingPointType& theG, 
-                                 vtkFloatingPointType& theB)
+void VISU::PointMap3d_i::GetLabelColor(double& theR, 
+                                 double& theG, 
+                                 double& theB)
 {
   theR = myLabelColor[0]; 
   theG = myLabelColor[1]; 
@@ -1217,9 +1217,9 @@ void VISU::PointMap3d_i::GetLabelColor(vtkFloatingPointType& theR,
 }
 
 //----------------------------------------------------------------------------
-void VISU::PointMap3d_i::SetLabelColor(vtkFloatingPointType theR, 
-                                 vtkFloatingPointType theG, 
-                                 vtkFloatingPointType theB)
+void VISU::PointMap3d_i::SetLabelColor(double theR, 
+                                 double theG, 
+                                 double theB)
 {
   bool anIsSameValue = VISU::CheckIsSameValue(myLabelColor[0], theR);
   anIsSameValue &= VISU::CheckIsSameValue(myLabelColor[1], theG);