]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkMeshManager_tool.cxx
#3490 MeshManager
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkMeshManager_tool.cxx
index b175bd4d25b3754d3af712d8f72d62127f0455a5..9182458915e0f567152bb1aadfbe823672f53148 100644 (file)
@@ -27,8 +27,6 @@ void MeshManager_tool::Process()
 //    bbSetOutputOut( bbGetInputIn() );
 //    std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
     
-    printf("EED MeshManager_tool::Process start this=%p\n", this);
-    
     if (bbGetInputMeshManagerModel()!=NULL)
     {
         if (bbGetInputTool()==10) // Undo
@@ -43,7 +41,6 @@ void MeshManager_tool::Process()
 
         if (bbGetInputTool()==30)  // Set
         {
-            printf("EED    MeshManager_tool::Process Set\n");
             if (bbGetInputMesh()!=NULL){
                 vtkPoints   *points = bbGetInputMesh()->GetPoints();
                 if (points!=NULL)
@@ -55,24 +52,22 @@ void MeshManager_tool::Process()
 
         if (bbGetInputTool()==35)  // Set memory mode
         {
-            printf("EED    MeshManager_tool::Process Set memory mode\n");
-//            if (bbGetInputMesh()!=NULL){
-//                vtkPoints   *points = bbGetInputMesh()->GetPoints();
-//                if (points!=NULL)
-//                {
-                    bbGetInputMeshManagerModel()->SetMeshMemoryMode( bbGetInputMesh() );
-//                } // if points!=NULL
-//            } // Mesh!=NULL
+                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) // Reset
+        if (bbGetInputTool()==40) // ResetMeshTemp
         {
-            printf("EED Warning!   MeshManager_tool Reset   Not implemented.\n");
+            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