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()
16 std::vector<int> lstPointsX = bbGetInputLstPointsX();
17 std::vector<int> lstPointsY = bbGetInputLstPointsY();
18 std::vector<int> lstPointsZ = bbGetInputLstPointsZ();
21 _points=vtkPoints::New();
23 _points->Reset();//CLEAR
29 for (int i =0; i < lstPointsX.size(); ++i)
31 point[0]=lstPointsX[i];
32 if (lstPointsY.size()>i) { point[1]=lstPointsY[i]; }
33 if (lstPointsZ.size()>i) { point[2]=lstPointsZ[i]; }
34 _points->InsertPoint(i,point);
36 bbSetOutputPoints(_points);
39 // 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)
41 void PointsXYZtoVTKPoints::bbUserSetDefaultValues()
46 // 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)
48 void PointsXYZtoVTKPoints::bbUserInitializeProcessing()
55 // 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)
57 void PointsXYZtoVTKPoints::bbUserFinalizeProcessing()