Thank you, and sorry, it names vtkOpenGLPolyDataMapper actually.
it has the function in 9.0 version, and the function is removed in the lastest version, but the question is the same; despite the way of setting shaders is different, I can not find a easy way to get vtkProgram objects.