]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkMeshManager_tool.cxx
MeshManager
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkMeshManager_tool.cxx
index bda31e1b44a90818c75af3cb1514f33a543bbc5e..b175bd4d25b3754d3af712d8f72d62127f0455a5 100644 (file)
@@ -26,7 +26,9 @@ void MeshManager_tool::Process()
 //      (the one provided in the attribute 'type' of the tag 'input')
 //    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
@@ -51,10 +53,26 @@ void MeshManager_tool::Process()
             } // Mesh!=NULL
         } // if Tool 30 Set
 
+        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
+        } // if Tool 35 Set memory mode
+
+        
         if (bbGetInputTool()==40) // Reset
         {
             printf("EED Warning!   MeshManager_tool Reset   Not implemented.\n");
         } // if Tool 40 Reset
+        
+
+        
     } else {
         printf("EED Warning! MeshManager_tool : MeshManagerModel not defined. \n");
     }// if MeshManagerModel != NULL