]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkMeshManager_tool.h
#3527 Deformation Undo-Redo fixes
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkMeshManager_tool.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 __bbcreaVtkMeshManager_tool_h_INCLUDED__
5 #define __bbcreaVtkMeshManager_tool_h_INCLUDED__
6
7 #include "bbcreaVtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10 #include <vtkPolyData.h>
11 #include <MeshManagerModel.h>
12
13 namespace bbcreaVtk
14 {
15
16 class bbcreaVtk_EXPORT MeshManager_tool
17  : 
18    public bbtk::AtomicBlackBox
19 {
20   BBTK_BLACK_BOX_INTERFACE(MeshManager_tool,bbtk::AtomicBlackBox);
21 //===== 
22 // 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)
23 //===== 
24     BBTK_DECLARE_INPUT(Tool,int);
25     BBTK_DECLARE_INPUT(Mesh,vtkPolyData*);
26     BBTK_DECLARE_INPUT(MeshManagerModel,MeshManagerModel*);
27     BBTK_DECLARE_INPUT(Meshes,std::vector<vtkPolyData*>);
28     BBTK_DECLARE_INPUT(StringParam, std::string);
29     BBTK_DECLARE_INPUT(DoubleParams, std::vector<double>);
30         BBTK_DECLARE_OUTPUT(Out,std::vector<double>);
31   BBTK_PROCESS(Process);
32   void Process();
33 //===== 
34 // 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)
35 //===== 
36 };
37
38 BBTK_BEGIN_DESCRIBE_BLACK_BOX(MeshManager_tool,bbtk::AtomicBlackBox);
39   BBTK_NAME("MeshManager_tool");
40   BBTK_AUTHOR("InfoDev");
41   BBTK_DESCRIPTION("No Description.");
42   BBTK_CATEGORY("empty");
43
44   BBTK_INPUT(MeshManager_tool,Tool,"(default 0) 0:Nothing  10:Undo  20:ReDo  30:Set  32:Copy and Set  35:Set memory mode  37:Save state memory mode  40:ResetMeshTemp   50: Set Array of meshes  60:Select mesh by name  70:Delete current mesh",int,"");
45   BBTK_INPUT(MeshManager_tool,Mesh,"Mesh",vtkPolyData*,"");
46   BBTK_INPUT(MeshManager_tool,Meshes,"Input meshes, required for tool 50",std::vector<vtkPolyData*>,"");
47   BBTK_INPUT(MeshManager_tool,StringParam,"String input",std::string,"");
48   BBTK_INPUT(MeshManager_tool,DoubleParams,"Double Vector input",std::vector<double>,"");
49   BBTK_INPUT(MeshManager_tool,MeshManagerModel,"Mesh Manager Model",MeshManagerModel*,"");
50
51   BBTK_OUTPUT(MeshManager_tool,Out,"Output",std::vector<double>,"");
52
53 BBTK_END_DESCRIBE_BLACK_BOX(MeshManager_tool);
54 //===== 
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)
56 //===== 
57 }
58 // EO namespace bbcreaVtk
59
60 #endif // __bbcreaVtkMeshManager_tool_h_INCLUDED__
61