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

Method BuildLabels

Rendering/OpenGL2/vtkFastLabeledDataMapper.cxx:1412–1427  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1410
1411//----------------------------------------------------------------------------
1412void 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//-----------------------------------------------------------------------------
1430void vtkFastLabeledDataMapper::RenderPiece(vtkRenderer* ren, vtkActor* actor)

Callers 1

RenderPieceMethod · 0.95

Calls 6

AllocateLabelsMethod · 0.95
BuildLabelsInternalMethod · 0.95
GetInputDataObjectMethod · 0.80
GetNumberOfPointsMethod · 0.45
GetClassNameMethod · 0.45

Tested by

no test coverage detected