X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkMeshManager_tool.cxx;h=9182458915e0f567152bb1aadfbe823672f53148;hb=3b8c3c7e22c53880242ae501319246bc3e8f51ea;hp=cb12791578fb80198f7e91ada973999e0e5f57e8;hpb=ccd9515764b83d719668120ccf8496a8fc6e804b;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkMeshManager_tool.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkMeshManager_tool.cxx index cb12791..9182458 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkMeshManager_tool.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkMeshManager_tool.cxx @@ -26,26 +26,51 @@ void MeshManager_tool::Process() // (the one provided in the attribute 'type' of the tag 'input') // bbSetOutputOut( bbGetInputIn() ); // std::cout << "Output value = " <SetMeshBase( bbGetInputMesh() ); - } + if (bbGetInputTool()==10) // Undo + { + printf("EED Warning! MeshManager_tool Undo Not implemented.\n"); + } // if Tool 10 Undo + + if (bbGetInputTool()==20) // Redo + { + printf("EED Warning! MeshManager_tool Redo Not implemented.\n"); + } // if Tool 20 Redo - if (bbGetInputTool()==4) // Reset - { - printf("EED Warning! MeshManager_tool Reset Not implemented.\n"); - } + if (bbGetInputTool()==30) // Set + { + if (bbGetInputMesh()!=NULL){ + vtkPoints *points = bbGetInputMesh()->GetPoints(); + if (points!=NULL) + { + bbGetInputMeshManagerModel()->SetMeshBase( bbGetInputMesh() ); + } // if points!=NULL + } // Mesh!=NULL + } // if Tool 30 Set + + if (bbGetInputTool()==35) // Set memory mode + { + bbGetInputMeshManagerModel()->SetMeshMemoryMode( bbGetInputMesh() ); + } // if Tool 35 Set memory mode + + if (bbGetInputTool()==32) // Copy and Set + { + bbGetInputMeshManagerModel()->CopySetMeshBase( bbGetInputMesh() ); + } // if Tool 35 Set memory mode + + + if (bbGetInputTool()==40) // ResetMeshTemp + { + printf("EED MeshManager_tool::Process ResetMeshTemp 1\n"); + bbGetInputMeshManagerModel()->ResetMeshTemp(); + printf("EED MeshManager_tool::Process ResetMeshTemp 2\n"); + } // if Tool 40 Reset + + } else { + printf("EED Warning! MeshManager_tool : MeshManagerModel not defined. \n"); + }// if MeshManagerModel != NULL } //===== @@ -59,32 +84,28 @@ void MeshManager_tool::bbUserSetDefaultValues() bbSetInputMesh(NULL); bbSetInputMeshManagerModel(NULL); } + //===== // 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) //===== void MeshManager_tool::bbUserInitializeProcessing() { - // THE INITIALIZATION METHOD BODY : // Here does nothing // but this is where you should allocate the internal/output pointers -// if any - - +// if any } //===== // 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) //===== void MeshManager_tool::bbUserFinalizeProcessing() { - // THE FINALIZATION METHOD BODY : // Here does nothing // but this is where you should desallocate the internal/output pointers // if any - -} } -// EO namespace bbcreaVtk + +} // EO namespace bbcreaVtk