Why does the derived class condition meet or return a null pointer??

auto maptocolor=vtkImageMapToWindowLevelColors::SafeDownCast(temp);

the temp
image

Hello,

Can you, please, post the code that declares the derived class?

best,

Paulo

thank you ,I know the I know where I am wrong, and I have a wrong understanding of downward conversion, but now I have understood.

1 Like