------------------------------------------------------------------------------
| 176 | |
| 177 | //------------------------------------------------------------------------------ |
| 178 | bool 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 | //------------------------------------------------------------------------------ |
| 197 | void vtkOpenGLVolumeLookupTable::InternalUpdate(vtkObject* vtkNotUsed(func), |