]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkMeshManager_tool.h
#3507 Undo and Redo Meshes
[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_OUTPUT(Out,double);
30   BBTK_PROCESS(Process);
31   void Process();
32 //===== 
33 // 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)
34 //===== 
35 };
36
37 BBTK_BEGIN_DESCRIBE_BLACK_BOX(MeshManager_tool,bbtk::AtomicBlackBox);
38   BBTK_NAME("MeshManager_tool");
39   BBTK_AUTHOR("InfoDev");
40   BBTK_DESCRIPTION("No Description.");
41   BBTK_CATEGORY("empty");
42
43   BBTK_INPUT(MeshManager_tool,Tool,"(default 0) 0:Nothing  10:Undo  20:ReDo  30:Set  32:Copy and Set  35:Set memory mode  40:ResetMeshTemp      50: Set Array of meshes  60:Select mesh by name  70:Delete current mesh",int,"");
44   BBTK_INPUT(MeshManager_tool,Mesh,"Mesh",vtkPolyData*,"");
45   BBTK_INPUT(MeshManager_tool,Meshes,"Input meshes, required for tool 50",std::vector<vtkPolyData*>,"");
46   BBTK_INPUT(MeshManager_tool,StringParam,"String input",std::string,"");
47   BBTK_INPUT(MeshManager_tool,MeshManagerModel,"Mesh Manager Model",MeshManagerModel*,"");
48
49 //  BBTK_OUTPUT(MeshManager_tool,Out,"First output",double,"");
50 BBTK_END_DESCRIBE_BLACK_BOX(MeshManager_tool);
51 //===== 
52 // 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)
53 //===== 
54 }
55 // EO namespace bbcreaVtk
56
57 #endif // __bbcreaVtkMeshManager_tool_h_INCLUDED__
58