Syntax issues caused by vtk upgrade

hello,please help me to resolve the problem , for example :
vtkResliceCursorLineRepresentation* axial_representation =
vtkResliceCursorLineRepresentation::SafeDownCast(this->reslice_image_viewer_->GetResliceCursorWidget()->GetResliceCursorRepresentation());
axial_representation->RotateAxis(0, -45 * M_PI / 180);
the reslice_image_viewer_ is vtkSmartPointer class, RotateAixs method is not used, because this is a protected method, thanks everyone

What error message is reported for your code?