[vtkusers] set opacity to vtkActor2D

Helmut Muehl uplj at rz.uni-karlsruhe.de
Thu Sep 27 10:16:19 EDT 2001

Hi there,

i try to display two vtkActor2D in one renderwindow. The problem is that
i can either view actor1 or actor2 because they are layed one upon the
other. Now my idea is to set the opacity of the upper actor so that i
can see through to the lower one. My code therefore is:
            actor1->GetProperty()->SetOpacity(opacity);  //opacity is of
type float.
            interactor1->update();  // interactor1 is of type
Unfortunatley it dosn't work.
Maybe one of you have a idea how to solve this problem.
Best regards


More information about the vtkusers mailing list