MCPcopy Create free account
hub / github.com/Kitware/ParaView / CoProcess

Function CoProcess

Examples/Catalyst/CxxImageDataExample/FEAdaptor.cxx:138–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void CoProcess(
139 Grid& grid, Attributes& attributes, double time, unsigned int timeStep, bool lastTimeStep)
140{
141 vtkNew<vtkCPDataDescription> dataDescription;
142 dataDescription->AddInput("input");
143 dataDescription->SetTimeData(time, timeStep);
144 if (lastTimeStep == true)
145 {
146 // assume that we want to all the pipelines to execute if it
147 // is the last time step.
148 dataDescription->ForceOutputOn();
149 }
150 if (Processor->RequestDataDescription(dataDescription) != 0)
151 {
152 vtkCPInputDataDescription* idd = dataDescription->GetInputDescriptionByName("input");
153 BuildVTKDataStructures(grid, attributes, idd);
154 idd->SetGrid(VTKGrid);
155 int wholeExtent[6];
156 for (int i = 0; i < 3; i++)
157 {
158 wholeExtent[2 * i] = 0;
159 wholeExtent[2 * i + 1] = grid.GetNumPoints()[i] - 1;
160 }
161
162 dataDescription->GetInputDescriptionByName("input")->SetWholeExtent(wholeExtent);
163 Processor->CoProcess(dataDescription);
164 }
165}
166} // end of Catalyst namespace

Callers 1

mainFunction · 0.70

Calls 8

SetTimeDataMethod · 0.80
BuildVTKDataStructuresFunction · 0.70
AddInputMethod · 0.45
GetNumPointsMethod · 0.45
SetWholeExtentMethod · 0.45
CoProcessMethod · 0.45

Tested by

no test coverage detected