// 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
{
- printf("EED Warning! MeshManager_tool Undo Not implemented.\n");
+ bbGetInputMeshManagerModel()->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");
+ bbGetInputMeshManagerModel()->Redo();
+ //printf("EED Warning! MeshManager_tool Redo Not implemented.\n");
} // if Tool 20 Redo
if (bbGetInputTool()==30) // Set
{
- printf("EED MeshManager_tool::Process Set\n");
if (bbGetInputMesh()!=NULL){
vtkPoints *points = bbGetInputMesh()->GetPoints();
if (points!=NULL)
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");
+ bbGetInputMeshManagerModel()->ResetMeshTemp();
} // if Tool 40 Reset
-
-
+ if(bbGetInputTool() == 50) // Set Array of Meshes
+ {
+ if(bbGetInputMeshes().size() > 1)
+ {
+ bbGetInputMeshManagerModel()->ReplaceMesh(bbGetInputMeshes());
+ }
+ }
+ if(bbGetInputTool() == 60) // Select Mesh by Name
+ {
+ if(!bbGetInputStringParam().empty())
+ {
+ bbGetInputMeshManagerModel()->SelectMeshByName(bbGetInputStringParam());
+ }
+ }
+ if(bbGetInputTool() == 70) // Delete Current Mesh
+ {
+ bbGetInputMeshManagerModel()->DeleteCurrentMesh();
+ }
} else {
printf("EED Warning! MeshManager_tool : MeshManagerModel not defined. \n");
}// if MeshManagerModel != NULL