]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkPointsXYZtoVTKPoints.h
Feature #1886 Black boxes to measure lengths on images. Look into
[bbtk.git] / packages / vtk / src / bbvtkPointsXYZtoVTKPoints.h
diff --git a/packages/vtk/src/bbvtkPointsXYZtoVTKPoints.h b/packages/vtk/src/bbvtkPointsXYZtoVTKPoints.h
new file mode 100644 (file)
index 0000000..2a513ff
--- /dev/null
@@ -0,0 +1,57 @@
+//===== 
+// 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)
+//===== 
+#ifndef __bbvtkPointsXYZtoVTKPoints_h_INCLUDED__
+#define __bbvtkPointsXYZtoVTKPoints_h_INCLUDED__
+#include "bbvtk_EXPORT.h"
+#include "bbtkAtomicBlackBox.h"
+
+#include "iostream"
+#include "vector"
+
+//VTK
+#include "vtkPoints.h"
+
+namespace bbvtk
+{
+
+class bbvtk_EXPORT PointsXYZtoVTKPoints
+ : 
+   public bbtk::AtomicBlackBox
+{
+  BBTK_BLACK_BOX_INTERFACE(PointsXYZtoVTKPoints,bbtk::AtomicBlackBox);
+//===== 
+// 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)
+//===== 
+  BBTK_DECLARE_INPUT( LstPointsX, std::vector<int> );
+  BBTK_DECLARE_INPUT( LstPointsY, std::vector<int> );
+  BBTK_DECLARE_INPUT( LstPointsZ, std::vector<int> );
+  BBTK_DECLARE_OUTPUT(Points,vtkPoints*);
+  BBTK_PROCESS(Process);
+  void Process();
+
+private:
+  vtkPoints* _points;
+//===== 
+// 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)
+//===== 
+};
+
+BBTK_BEGIN_DESCRIBE_BLACK_BOX(PointsXYZtoVTKPoints,bbtk::AtomicBlackBox);
+BBTK_NAME("PointsXYZtoVTKPoints");
+BBTK_AUTHOR("Ricardo A Corredor");
+BBTK_DESCRIPTION("Transforms independent vectors of X, Y and Z coordinates into a vtkPoints object");
+BBTK_CATEGORY("");
+BBTK_INPUT(PointsXYZtoVTKPoints,LstPointsX,"List of points X-coordinate", std::vector<int> ,"");
+BBTK_INPUT(PointsXYZtoVTKPoints,LstPointsY,"List of points Y-coordinate", std::vector<int> ,"");
+BBTK_INPUT(PointsXYZtoVTKPoints,LstPointsZ,"List of points Z-coordinate", std::vector<int> ,"");
+BBTK_OUTPUT(PointsXYZtoVTKPoints,Points,"Points in vtkPoints",vtkPoints*,"");
+BBTK_END_DESCRIBE_BLACK_BOX(PointsXYZtoVTKPoints);
+//===== 
+// 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)
+//===== 
+}
+// EO namespace bbvtk
+
+#endif // __bbvtkPointsXYZtoVTKPoints_h_INCLUDED__
+