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

Method Write

Filters/ParallelFlowPaths/vtkPStreamTracer.cxx:333–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331 }
332
333 virtual void Write(MyStream& stream)
334 {
335 stream << this->Id << this->Seed[0] << this->Seed[1] << this->Seed[2] << this->Direction
336 << this->NumSteps << this->Propagation << this->IntegrationTime;
337
338 stream << (char)(this->Tail != nullptr);
339
340 if (this->Tail)
341 {
342 double* x = this->Tail->GetPoints()->GetPoint(0);
343 for (int i = 0; i < 3; i++)
344 {
345 stream << x[i];
346 }
347 vtkPointData* pData = this->Tail->GetPointData();
348 int numArrays(pData->GetNumberOfArrays());
349 for (int i = 0; i < numArrays; i++)
350 {
351 vtkDataArray* arr = pData->GetArray(i);
352 int numComponents = arr->GetNumberOfComponents();
353 double* y = arr->GetTuple(0);
354 for (int j = 0; j < numComponents; j++)
355 stream << y[j];
356 }
357 }
358 }
359
360private:
361 int Id;

Callers 15

WriteMultiBlockFunction · 0.45
WriteGridFunction · 0.45
ExecuteMethod · 0.45
CreateUGridFunction · 0.45
writeDataFunction · 0.45
Hyper.pyFile · 0.45
testCellCentersMethod · 0.45
testMultipleCellTypesMethod · 0.45

Calls 7

GetPointMethod · 0.45
GetPointsMethod · 0.45
GetPointDataMethod · 0.45
GetNumberOfArraysMethod · 0.45
GetArrayMethod · 0.45
GetNumberOfComponentsMethod · 0.45
GetTupleMethod · 0.45

Tested by 15

WriteMultiBlockFunction · 0.36
WriteGridFunction · 0.36
ExecuteMethod · 0.36
CreateUGridFunction · 0.36
writeDataFunction · 0.36
testCellCentersMethod · 0.36
testMultipleCellTypesMethod · 0.36
runCaseMethod · 0.36
runCaseMethod · 0.36