----------------------------------------------------------------------------
| 1410 | |
| 1411 | //---------------------------------------------------------------------------- |
| 1412 | void vtkFastLabeledDataMapper::BuildLabels() |
| 1413 | { |
| 1414 | vtkDataObject* inputDO = this->GetInputDataObject(0, 0); |
| 1415 | vtkDataSet* ds = vtkDataSet::SafeDownCast(inputDO); |
| 1416 | if (ds) |
| 1417 | { |
| 1418 | this->AllocateLabels(ds->GetNumberOfPoints()); |
| 1419 | this->NumberOfLabels = 0; |
| 1420 | this->BuildLabelsInternal(ds); |
| 1421 | this->Implementation->UpdateTextPropertyAttributeArrays(); |
| 1422 | } |
| 1423 | else |
| 1424 | { |
| 1425 | vtkErrorMacro("Unsupported data type: " << inputDO->GetClassName()); |
| 1426 | } |
| 1427 | } |
| 1428 | |
| 1429 | //----------------------------------------------------------------------------- |
| 1430 | void vtkFastLabeledDataMapper::RenderPiece(vtkRenderer* ren, vtkActor* actor) |
no test coverage detected