Added updatePlottingRole(...) which is used by the viewer to update
parts of the view if the plotting role changes.