vtkSmartPointer<vtkDistanceWidget> distanceActor;
vtkAxisActor2D *axis =
static_cast<vtkDistanceRepresentation2D *>(
_disMeasureList[i]->distanceActor->GetDistanceRepresentation())
->GetAxis();
vtkPointHandleRepresentation2D *h1 =
dynamic_cast<vtkPointHandleRepresentation2D *>(
_disMeasureList[i]->distanceActor->GetDistanceRepresentation()->GetPoint1Representation());
vtkPointHandleRepresentation2D *h2 =
dynamic_cast<vtkPointHandleRepresentation2D *>(
_disMeasureList[i]
->distanceActor->GetDistanceRepresentation()
->GetPoint1Representation());
if (_disMeasureList[i]->isSelected) {
axis->GetProperty()->SetColor(_colorDistanceSelected);
if (h1) h1->GetProperty()->SetColor(_colorDistanceSelected);
if (h2) h2->GetProperty()->SetColor(_colorDistanceSelected);
auto _textProperty = vtkSmartPointer<vtkTextProperty>::New();
_textProperty->SetColor(0, 0.776, 1);
_textProperty->SetFontSize(20);
_textProperty->SetOrientation(0.0);
_textProperty->SetShadow(true);
_textProperty->SetBold(false);
_textProperty->SetItalic(false);
_textProperty->SetFontFamilyAsString("Segoe UI");
_textProperty->SetFontSize(18);
axis->SetTitleTextProperty(_textProperty);