------------------------------------------------------------------------------
| 1709 | |
| 1710 | //------------------------------------------------------------------------------ |
| 1711 | std::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 | //------------------------------------------------------------------------------ |
| 1726 | vtkPlot* vtkControlPointsItem::GetAddPointItem() |
no test coverage detected