2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
4 #include "bbvtkPointsXYZtoVTKPoints.h"
5 #include "bbvtkPackage.h"
9 BBTK_ADD_BLACK_BOX_TO_PACKAGE(vtk,PointsXYZtoVTKPoints)
10 BBTK_BLACK_BOX_IMPLEMENTATION(PointsXYZtoVTKPoints,bbtk::AtomicBlackBox);
12 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
14 void PointsXYZtoVTKPoints::Process()
17 //std::cout << "RaC PointsXYZtoVTKPoints::Process START"<< std::endl;
18 std::vector<int> lstPointsX = bbGetInputLstPointsX();
19 std::vector<int> lstPointsY = bbGetInputLstPointsY();
20 std::vector<int> lstPointsZ = bbGetInputLstPointsZ();
25 _points=vtkPoints::New();
27 _points->Reset();//CLEAR
34 for (int i =0; i < lstPointsX.size(); ++i)
36 point[0]=lstPointsX[i];
37 if (lstPointsY.size()>i) { point[1]=lstPointsY[i]; }
38 if (lstPointsZ.size()>i) { point[2]=lstPointsZ[i]; }
39 _points->InsertPoint(i,point);
41 bbSetOutputPoints(_points);
43 std::cout << "RaC PointsXYZtoVTKPoints::Process END"<< std::endl;
47 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
49 void PointsXYZtoVTKPoints::bbUserSetDefaultValues()
54 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
56 void PointsXYZtoVTKPoints::bbUserInitializeProcessing()
63 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
65 void PointsXYZtoVTKPoints::bbUserFinalizeProcessing()