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

Method NeedsUpdate

Rendering/VolumeOpenGL2/vtkOpenGLVolumeLookupTable.cxx:178–194  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

176
177//------------------------------------------------------------------------------
178bool vtkOpenGLVolumeLookupTable::NeedsUpdate(vtkObject* func, double scalarRange[2],
179 int vtkNotUsed(blendMode), double vtkNotUsed(sampleDistance))
180{
181 if (!func)
182 {
183 return false;
184 }
185 if (scalarRange[0] != this->LastRange[0] || scalarRange[1] != this->LastRange[1] ||
186 func->GetMTime() > this->BuildTime || this->TextureObject->GetMTime() > this->BuildTime ||
187 !this->TextureObject->GetHandle())
188 {
189 this->LastRange[0] = scalarRange[0];
190 this->LastRange[1] = scalarRange[1];
191 return true;
192 }
193 return false;
194}
195
196//------------------------------------------------------------------------------
197void vtkOpenGLVolumeLookupTable::InternalUpdate(vtkObject* vtkNotUsed(func),

Callers 1

UpdateMethod · 0.95

Calls 2

GetMTimeMethod · 0.45
GetHandleMethod · 0.45

Tested by

no test coverage detected