]> Creatis software - creaVtk.git/blobdiff - lib/creaVtk/vtkVectorsTensorsVisuBase.cpp
#3100 creaVtk Feature New Normal - Vectors Visu refresh
[creaVtk.git] / lib / creaVtk / vtkVectorsTensorsVisuBase.cpp
index 4c2872458255da38e8d196e569e65d89774f4ebb..5f6eeed8da7e91a05495f821d73eea2abd913634 100644 (file)
@@ -129,10 +129,10 @@ inIncr=3;
                sum     = 0;
                for (j = 0; j < inIncr; ++j)
                {
-                       if (j==0) dirx= static_cast<double>(*input);  
-                       if (j==1) diry= static_cast<double>(*input);  
-                       if (j==2) dirz= static_cast<double>(*input);  
-                       tmp = static_cast<double>(*input);  
+                       if (j==0) dirx= static_cast<T>(*input);  
+                       if (j==1) diry= static_cast<T>(*input);  
+                       if (j==2) dirz= static_cast<T>(*input);  
+                       tmp = static_cast<T>(*input);  
                        sum += (tmp * tmp);
                        ++input;
                }
@@ -196,23 +196,23 @@ void vtkLookupTableDirectionVector::PrintSelf(ostream& os, vtkIndent indent)
 
 vtkVectorsTensorsVisuBase::vtkVectorsTensorsVisuBase()
 {
-      _firsttime       = true;
+       _firsttime      = true;
        _active         = false;
        _scalefactor= 1;
-       _opacity                = 1;
+       _opacity        = 1;
        _dataobject     = NULL;
        _renderer       = NULL;
-               _typeForm       = 0;
+       _typeForm       = 0;
 
        _LutEED         = vtkLookupTableDirectionVector::New();
-//     _LutEED->SetVectorMode(0);
-//_LutEED->SetVectorModeToMagnitude();
-//_LutEED->SetVectorModeToComponent();
-_LutEED->SetVectorModeToRGBColors();
-
-       _pdm            = vtkPolyDataMapper::New();
-       _actor          = vtkActor::New();
-       _actorAdded     = false;
+       //_LutEED->SetVectorMode(0);
+       //_LutEED->SetVectorModeToMagnitude();
+       //_LutEED->SetVectorModeToComponent();
+       _LutEED->SetVectorModeToRGBColors();
+
+       _pdm                    = vtkPolyDataMapper::New();
+       _actor                  = vtkActor::New();
+       _actorAdded             = false;
 }
 
 vtkVectorsTensorsVisuBase::~vtkVectorsTensorsVisuBase()