| 271 | } |
| 272 | |
| 273 | void vtkOpenGLCellToVTKCellMap::Update(vtkCellArray** prims, int representation, vtkPoints* points) |
| 274 | { |
| 275 | this->TempState.Clear(); |
| 276 | this->TempState.Append(prims[0]->GetNumberOfCells() ? prims[0]->GetMTime() : 0, "verts"); |
| 277 | this->TempState.Append(prims[1]->GetNumberOfCells() ? prims[1]->GetMTime() : 0, "lines"); |
| 278 | this->TempState.Append(prims[2]->GetNumberOfCells() ? prims[2]->GetMTime() : 0, "polys"); |
| 279 | this->TempState.Append(prims[3]->GetNumberOfCells() ? prims[3]->GetMTime() : 0, "strips"); |
| 280 | this->TempState.Append(representation, "representation"); |
| 281 | this->TempState.Append(points ? points->GetMTime() : 0, "points"); |
| 282 | |
| 283 | // ensure StartOffset is considered when deciding whether to rebuild |
| 284 | this->TempState.Append(this->StartOffset, "startOffset"); |
| 285 | |
| 286 | if (this->MapBuildState != this->TempState) |
| 287 | { |
| 288 | this->MapBuildState = this->TempState; |
| 289 | this->BuildCellSupportArrays(prims, representation, points); |
| 290 | } |
| 291 | } |
| 292 | |
| 293 | vtkIdType vtkOpenGLCellToVTKCellMap::ConvertOpenGLCellIdToVTKCellId( |
| 294 | bool pointPicking, vtkIdType openGLId) |