def setRotate(self,data):
self.parent.setRotate(data)<EOL>glPushMatrix()<EOL>x,y = self.getRot(data)<EOL>pivot = self.getPivotPoint(data)<EOL>px,py,pz = pivot<EOL>normx = [<NUM_LIT:0>,<NUM_LIT:1>,<NUM_LIT:0>] <EOL>normy = [<NUM_LIT:0>,<NUM_LIT:0>,<NUM_LIT:1>]<EOL>glTranslatef(px,py,pz)<EOL>glRotatef(x-self.start_rot[<NUM_LIT:0>], normx[<NUM_LIT:0>],normx[<NUM_LIT:1>],normx[<NUM_LIT:2>])<EOL>glRotatef(y-self.start_rot[<NUM_LIT:1>], normy[<NUM_LIT:0>],normy[<NUM_LIT:1>],normy[<NUM_LIT:2>])<EOL>glTranslatef(-px,-py,-pz)<EOL>
Sets the OpenGL state required for proper drawing of the model.

Mostly rotates and translates the camera.

It is important to call :py:meth:`unsetRotate()` after calling this method to properly unset state and avoid OpenGL errors.