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

Method GetControlPointLabel

Charts/Core/vtkControlPointsItem.cxx:1711–1723  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1709
1710//------------------------------------------------------------------------------
1711std::string vtkControlPointsItem::GetControlPointLabel(vtkIdType pointId)
1712{
1713 std::string result;
1714 if (this->LabelFormat)
1715 {
1716 double point[4];
1717 this->GetControlPoint(pointId, point);
1718 std::string labelFormat = this->LabelFormat ? vtk::to_std_format(this->LabelFormat) : "";
1719 VTK_FORMAT_IF_ERROR_RETURN(
1720 result = vtk::format(labelFormat, point[0], point[1], point[2], point[3]), "");
1721 }
1722 return result;
1723}
1724
1725//------------------------------------------------------------------------------
1726vtkPlot* vtkControlPointsItem::GetAddPointItem()

Callers 1

DrawPointMethod · 0.95

Calls 4

to_std_formatFunction · 0.85
formatFunction · 0.50
GetControlPointMethod · 0.45

Tested by

no test coverage detected