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 "bbcreaVtkMeshManager_tool.h"
5 #include "bbcreaVtkPackage.h"
9 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaVtk,MeshManager_tool)
10 BBTK_BLACK_BOX_IMPLEMENTATION(MeshManager_tool,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 MeshManager_tool::Process()
16 // THE MAIN PROCESSING METHOD BODY
17 // Here we simply set the input 'In' value to the output 'Out'
18 // And print out the output value
19 // INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
20 // void bbSet{Input|Output}NAME(const TYPE&)
21 // const TYPE& bbGet{Input|Output}NAME() const
23 // * NAME is the name of the input/output
24 // (the one provided in the attribute 'name' of the tag 'input')
25 // * TYPE is the C++ type of the input/output
26 // (the one provided in the attribute 'type' of the tag 'input')
27 // bbSetOutputOut( bbGetInputIn() );
28 // std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
30 if (bbGetInputMeshManagerModel()!=NULL)
32 if (bbGetInputTool()==10) // Undo
34 printf("EED Warning! MeshManager_tool Undo Not implemented.\n");
37 if (bbGetInputTool()==20) // Redo
39 printf("EED Warning! MeshManager_tool Redo Not implemented.\n");
42 if (bbGetInputTool()==30) // Set
44 if (bbGetInputMesh()!=NULL){
45 vtkPoints *points = bbGetInputMesh()->GetPoints();
48 bbGetInputMeshManagerModel()->SetMeshBase( bbGetInputMesh() );
51 printf("PG MeshManager_tool::Process(tool 30) end %s \n", bbGetFullName().c_str() );
54 if (bbGetInputTool()==35) // Set memory mode
56 bbGetInputMeshManagerModel()->SetMeshMemoryMode( bbGetInputMesh() );
57 } // if Tool 35 Set memory mode
59 if (bbGetInputTool()==32) // Copy and Set
61 bbGetInputMeshManagerModel()->CopySetMeshBase( bbGetInputMesh() );
62 } // if Tool 35 Set memory mode
65 if (bbGetInputTool()==40) // ResetMeshTemp
67 printf("EED MeshManager_tool::Process ResetMeshTemp 1\n");
68 bbGetInputMeshManagerModel()->ResetMeshTemp();
69 printf("EED MeshManager_tool::Process ResetMeshTemp 2\n");
73 printf("EED Warning! MeshManager_tool : MeshManagerModel not defined. \n");
74 }// if MeshManagerModel != NULL
78 // 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)
80 void MeshManager_tool::bbUserSetDefaultValues()
82 // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
83 // Here we initialize the input 'In' to 0
86 bbSetInputMeshManagerModel(NULL);
90 // 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)
92 void MeshManager_tool::bbUserInitializeProcessing()
94 // THE INITIALIZATION METHOD BODY :
96 // but this is where you should allocate the internal/output pointers
100 // 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)
102 void MeshManager_tool::bbUserFinalizeProcessing()
104 // THE FINALIZATION METHOD BODY :
106 // but this is where you should desallocate the internal/output pointers
110 } // EO namespace bbcreaVtk