MCPcopy Create free account
hub / github.com/Kitware/VTK / SetIsoValueRMI

Function SetIsoValueRMI

Examples/ParallelProcessing/Generic/Cxx/ParallelIso.cxx:57–74  ·  view source on GitHub ↗

call back to set the iso surface value.

Source from the content-addressed store, hash-verified

55
56// call back to set the iso surface value.
57void 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
77void MyMain(vtkMultiProcessController* controller, void* arg)

Callers

nothing calls this directly

Calls 7

GetNumberOfProcessesMethod · 0.80
UpdatePieceMethod · 0.80
GetLocalProcessIdMethod · 0.45
GetValueMethod · 0.45
SetValueMethod · 0.45
SendMethod · 0.45
GetOutputMethod · 0.45

Tested by

no test coverage detected