]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkMarchingCubes2.h
#3499 boxes ImageGaussianSmooth2 MarchingCubes2
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkMarchingCubes2.h
1 //===== 
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)
3 //===== 
4 #ifndef __bbcreaVtkMarchingCubes2_h_INCLUDED__
5 #define __bbcreaVtkMarchingCubes2_h_INCLUDED__
6
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11 #include <vtkImageData.h>
12 #include <vtkPolyData.h>
13 #include <vtkMarchingCubes.h>
14
15 namespace bbcreaVtk
16 {
17
18 class bbcreaVtk_EXPORT MarchingCubes2
19  : 
20    public bbtk::AtomicBlackBox
21 {
22   BBTK_BLACK_BOX_INTERFACE(MarchingCubes2,bbtk::AtomicBlackBox);
23 //===== 
24 // 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)
25 //===== 
26     BBTK_DECLARE_INPUT(Active,bool);
27     BBTK_DECLARE_INPUT(In,vtkImageData*);
28     BBTK_DECLARE_INPUT(Value,double);
29     BBTK_DECLARE_INPUT(ComputeNormalsOn,bool);
30     BBTK_DECLARE_INPUT(ComputeScalarsOn,bool);
31     BBTK_DECLARE_OUTPUT(Out,vtkPolyData*);
32     BBTK_PROCESS(Process);
33     void Process();
34     vtkMarchingCubes *marchingcubes;
35 //===== 
36 // 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)
37 //===== 
38 };
39
40 BBTK_BEGIN_DESCRIBE_BLACK_BOX(MarchingCubes2,bbtk::AtomicBlackBox);
41     BBTK_NAME("MarchingCubes2");
42     BBTK_AUTHOR("InfoDev");
43     BBTK_DESCRIPTION("No Description.");
44     BBTK_CATEGORY("empty");
45
46     BBTK_INPUT(MarchingCubes2,Active,"(default true) Active",bool,"");
47     BBTK_INPUT(MarchingCubes2,In,"Input image",vtkImageData*,"");
48     BBTK_INPUT(MarchingCubes2,Value,"Value of the iso-surface",double,"");
49     BBTK_INPUT(MarchingCubes2,ComputeNormalsOn,"Set the computation of normals",bool,"");
50     BBTK_INPUT(MarchingCubes2,ComputeScalarsOn,"Set the computation of scalars",bool,"");
51
52     BBTK_OUTPUT(MarchingCubes2,Out,"Output polydata (iso-surface)",vtkPolyData*,"");
53
54 BBTK_END_DESCRIBE_BLACK_BOX(MarchingCubes2);
55 //===== 
56 // 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 //===== 
58 }
59 // EO namespace bbcreaVtk
60
61 #endif // __bbcreaVtkMarchingCubes2_h_INCLUDED__
62