render data set to bitmap/renderboxfirst decide rendering dimension, 2D or 3Dthen set new rendering parameters and call the rendering functions