]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkVectorsExtraction.cxx
#2676 creaVtk Feature New Normal - New GrayLevel
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkVectorsExtraction.cxx
index e410bb9179b652085c52f432fe6d43ab55aacc2d..f26075e66e2bc69f0f0034a946485606b7004ddc 100644 (file)
@@ -35,40 +35,23 @@ void VectorsExtraction::Process()
 
                std::vector<double> coord = bbGetInputCoordinates();
 
-               /*double *vector = static_cast<double*>(m_VectorImage->GetScalarPointer(coord[0],coord[1],coord[2]));
-
                vtkDoubleArray* velocity = vtkDoubleArray::New();
-               velocity = vtkDoubleArray::SafeDownCast(this->m_VectorImage->GetPointData()->GetArray("velocity"));
-
-
-
+               velocity = vtkDoubleArray::SafeDownCast(m_VectorImage->GetPointData()->GetArray("velocity"));
 
-               std::cout << "coord: "<< coord[0] << ","<< coord[1] << ","<<coord[2] << std::endl;
-               std::cout << "vector: "<< velocity[0] << ","<< velocity[1] << ","<<velocityvelocity[2] << std::endl;
+               std::cout<< "# components velocity" << velocity->GetNumberOfComponents()<<std::endl;
 
                double ang1 = 0;
                double ang2 = 0;
 
-               ang1 = velocity[0] + velocity[1] + velocity[2];
-               ang2 = velocity[0] + velocity[1] - velocity[2];
-*/
+               ang1 = 1;
+               ang2 = 2;
                m_VectorImage->Print(std::cout);
 
-
-
-
-
-               //bbSetOutputAngle1(ang1);
-               //bbSetOutputAngle2(ang2);
+               bbSetOutputAngle1(ang1);
+               bbSetOutputAngle2(ang2);
 
        }// if image != NULL
     
-
-    
-
-
-
-
     std::cout<< "MLER VectorsExtraction Process END" << std::endl;
   
 }