# Syntax issues caused by vtk upgrade

**URL:** <https://discourse.vtk.org/t/syntax-issues-caused-by-vtk-upgrade/13344>\
**Category:** Development\
**Created:** [February 21, 2024, 12:49am UTC](https://discourse.vtk.org/t/syntax-issues-caused-by-vtk-upgrade/13344 "2024-02-21T00:49:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yezichaozhou521](https://discourse.vtk.org/user_avatar/discourse.vtk.org/yezichaozhou521/32/8490_2.png) [@yezichaozhou521](https://discourse.vtk.org/u/yezichaozhou521)\
**Post date:** [February 21, 2024, 12:49am UTC](https://discourse.vtk.org/t/syntax-issues-caused-by-vtk-upgrade/13344/1 "2024-02-21T00:49:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)\
**Post date:** [April 27, 2024, 8:54pm UTC](https://discourse.vtk.org/t/syntax-issues-caused-by-vtk-upgrade/13344/2 "2024-04-27T20:54:55Z")

</div>

What error message is reported for your code?
