call back to set the iso surface value.
| 55 | |
| 56 | // call back to set the iso surface value. |
| 57 | void SetIsoValueRMI( |
| 58 | void* localArg, void* vtkNotUsed(remoteArg), int vtkNotUsed(remoteArgLen), int vtkNotUsed(id)) |
| 59 | { |
| 60 | ParallelIsoRMIArgs_tmp* args = (ParallelIsoRMIArgs_tmp*)localArg; |
| 61 | |
| 62 | float val; |
| 63 | |
| 64 | vtkMultiProcessController* controller = args->Controller; |
| 65 | int myid = controller->GetLocalProcessId(); |
| 66 | int numProcs = controller->GetNumberOfProcesses(); |
| 67 | |
| 68 | vtkContourFilter* iso = args->ContourFilter; |
| 69 | val = iso->GetValue(0); |
| 70 | iso->SetValue(0, val + ISO_STEP); |
| 71 | args->Elevation->UpdatePiece(myid, numProcs, 0); |
| 72 | |
| 73 | controller->Send(args->Elevation->GetOutput(), 0, ISO_OUTPUT_TAG); |
| 74 | } |
| 75 | |
| 76 | // This will be called by all processes |
| 77 | void MyMain(vtkMultiProcessController* controller, void* arg) |
nothing calls this directly
no test coverage detected