About AdjustRange of volume rendering

I’m using vtkPiecewiseFunction to set opacity function of volume rendering. I can get correct rendering effect after using “AddPoint()”. Then I use “AdjustRange()” in line 109 for testing. But the effect of rendering on the screen is NOT changing at all. The following picture is the part of my code. What’s wrong with my code? Thanks in advanced !