]> Creatis software - creaVtk.git/blobdiff - lib/creaVtk/vtkVectorsVisu.cpp
#3238 creaVtk Feature New Normal - ApplyMask box
[creaVtk.git] / lib / creaVtk / vtkVectorsVisu.cpp
index 7c8a6bc1776e0d0d29ffa25e3e81e88ce74e9f8f..ff49f557748d752cff0bd8be9224cdc5d392be26 100644 (file)
@@ -67,11 +67,11 @@ void vtkVectorsVisu::Process()
      {
                if (_vtkglyph==NULL) 
                {
-                       if (GetOrientation()==0)
+                       if (GetOrientation()==-1) 
                        {
                                _vtkglyph = vtkGlyph3D::New(); 
                        } // _orientation                       
-                       if ((GetOrientation()>=1) && (GetOrientation()<=3))
+                       if ((GetOrientation()>=0) && (GetOrientation()<=2))
                        {
                                _vtkglyph = vtkGlyph2D::New(); 
                        } // _orientation                       
@@ -145,11 +145,11 @@ vtkPointData      *data   = _vtkglyph->GetOutput()->GetPointData();
          _pdm->Update();
 #endif
 
-               // Orientation 0 3D     OK
-               // Orientation 1 2D xy  OK
-
-               // Orientation 2 2D yz  
-               if (GetOrientation()==2
+               // Orientation -1 3D     OK
+               // Orientation  2 2D xy  OK
+               // Orientation 0 2D yz  
+               if (GetOrientation()==0
                {
                        _trans->Identity();
                        _trans->Translate(900,0,0);
@@ -157,8 +157,8 @@ vtkPointData        *data   = _vtkglyph->GetOutput()->GetPointData();
                        _actor->SetUserTransform(_trans);
                }
 
-               // Orientation 3 2D xz  
-               if (GetOrientation()==3
+               // Orientation 1 2D xz  
+               if (GetOrientation()==1
                {
                        _trans->Identity();
                        _trans->RotateWXYZ(90,1,0,0);