Patent ID: 8719732

Claim:
A method for applying 3D switch panel in an instant messaging tool, comprising following steps: creating a window and creating a plane model according to the window; receiving a command for triggering rotation; and rotating the plane model to drive an interface window of the instant messaging tool contained in the created window to rotate; wherein the step of creating a plane model comprises creating a Viewport3D which has the same size as the created window and covers the created window, setting transparency of the Viewport3D as 0, and creating the plane model in the Viewport3D; wherein the step of creating the plane model in the Viewport3D comprises: creating in a three-dimensional coordinate system of the Viewport3D a rectangle, of which a center coincides with an origin of the coordinate system; calculating a scaling which enables a height of an image of the rectangle in the Viewport3D is the same as a height of the interface window of the instant messaging tool; scaling the rectangle according to the scaling to form the plane model; taking a screenshot of an interface presented to users by the instant messaging tool, and pasting the screenshot on a front of the plane model; and taking a screenshot of an interface needed to be presented after the interface window of the instant messaging tool is rotated, and pasting the screenshot of the interface needed to be presented after the interface window of the instant messaging tool is rotated on a back of the plane model.