Is there an alternative of SetLabelColor in volumeProperty in vtk versions under 9.0


I wonder if there is any alternative to SetLabelColor in volumeProperty in older vtk ersions to define the properties in the labels with SetMaskTypeToLabelMap and SetLabelScalarOpacity of a volume. in vtk 9.0 i tried it and it works but i wonder if i can do it in older vtk versions or it is not possible to define different regions with different materials in older versions.

Thank you