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

Method NullData

Common/DataModel/vtkFieldData.cxx:85–102  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

83
84//------------------------------------------------------------------------------
85void vtkFieldData::NullData(vtkIdType id)
86{
87 vtkFieldData::Iterator it(this);
88 vtkDataArray* da;
89 std::vector<double> tuple(32.0, 0.0);
90 for (da = it.Begin(); !it.End(); da = it.Next())
91 {
92 if (da)
93 {
94 const size_t numComps = static_cast<size_t>(da->GetNumberOfComponents());
95 if (numComps > tuple.size())
96 {
97 tuple.resize(numComps, 0.0);
98 }
99 da->InsertTuple(id, tuple.data());
100 }
101 }
102}
103
104//------------------------------------------------------------------------------
105vtkFieldData::BasicIterator::BasicIterator(const int* list, unsigned int listSize)

Callers 3

RequestDataMethod · 0.80
InterpolatePointDataMethod · 0.80

Calls 8

BeginMethod · 0.45
EndMethod · 0.45
NextMethod · 0.45
GetNumberOfComponentsMethod · 0.45
sizeMethod · 0.45
resizeMethod · 0.45
InsertTupleMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected