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

Method GetResult

Web/Core/vtkDataEncoder.cxx:177–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175 }
176
177 bool GetResult(vtkTypeUInt32 key, vtkSmartPointer<vtkUnsignedCharArray>& data) const
178 {
179 std::unique_lock<std::mutex> lock(this->ResultsMutex);
180 auto iter = this->Results.find(key);
181 if (iter == this->Results.end())
182 {
183 return false;
184 }
185
186 const auto& resultsPair = iter->second;
187 data = resultsPair.second;
188 // return true if this is the latest result for this key.
189 return (resultsPair.first == this->LastTimeStamp.at(key));
190 }
191
192 void Flush(vtkTypeUInt32 key)
193 {

Callers 14

WriteTextureFunction · 0.45
ImageInfoMethod · 0.45
vtkJPEGWriteToMemoryInitFunction · 0.45
vtkJPEGWriteToMemoryTermFunction · 0.45
vtkPNGWriteInitFunction · 0.45
WriteSliceMethod · 0.45
DoWorkMethod · 0.45
GetLatestOutputMethod · 0.45
EncodeAsBase64PngMethod · 0.45
EncodeAsBase64JpgMethod · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected