Method and device for selecting entity in drawing
First Claim
1. A method for selecting an entity in a drawing, which is executed by a mobile phone, comprising:
- receiving, from a touch screen of the mobile phone, an input data indicating a movement of a user'"'"'s finger on the touch screen;
invoking a hooked preview program corresponding to a functional instruction after the functional instruction is inputted into a Computer Aided Design (CAD) system;
selecting a first pickup point in a drawing based on the input data;
filtering an entity in a predetermined range around the first pickup point to obtain a preselected entity;
processing the preselected entity via the hooked preview program to display a preview of a result of processing the preselected entity by the functional instruction;
obtaining a predetermined zooming-in factor;
performing calculation according to the predetermined zooming-in factor and pixels of the touch screen to obtain a size of a zoomed-in display area;
creating the zoomed-in display area at a predetermined position of the touch screen according to the first pickup point and the size of the touch screen, wherein the zoomed-in area is not shielded by the finger;
displaying, in the zoomed-in display area, the preselected entity or the preselected entity processed by the hooked preview program; and
after displaying the preview of the result of processing the preselected entity;
receiving a user selection associated with the result of processing the preselected entity, wherein the user selection comprises movement of the user'"'"'s finger on the touch screen;
in response to the user selection indicating to select the result of processing the preselected entity, returning entity information of the preselected entity to a control instruction to which the preview program is hooked, to enable the control instruction to process the preselected entity; and
in response to the user selection indicating to not select the result of processing the preselected entity, recovering the preselected entity to a state before the preselected entity has been processed by the preview program by deleting the result of processing the preselected entity in a background, and storing the state before the preselected entity was processed by the hooked preview program.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention discloses a method and a device for selecting an entity in a drawing, wherein the method includes that a hooked preview program corresponding to a functional instruction is invoked after the functional instruction is inputted into a Computer Aided Design (CAD) system; a pickup point in a drawing is selected; an entity in a predetermined range is filtered around the pickup point to obtain a preselected entity; the preselected entity is processed via the hooked preview program so as to pre-display a result of processing the preselected entity by the inputted instruction. An effect of a selected entity processed by a control instruction can be previewed according to the present invention, thus avoiding repeated selections of a graphic entity by a user to further improve working efficiency.
-
Citations
17 Claims
-
1. A method for selecting an entity in a drawing, which is executed by a mobile phone, comprising:
-
receiving, from a touch screen of the mobile phone, an input data indicating a movement of a user'"'"'s finger on the touch screen; invoking a hooked preview program corresponding to a functional instruction after the functional instruction is inputted into a Computer Aided Design (CAD) system; selecting a first pickup point in a drawing based on the input data; filtering an entity in a predetermined range around the first pickup point to obtain a preselected entity; processing the preselected entity via the hooked preview program to display a preview of a result of processing the preselected entity by the functional instruction; obtaining a predetermined zooming-in factor; performing calculation according to the predetermined zooming-in factor and pixels of the touch screen to obtain a size of a zoomed-in display area; creating the zoomed-in display area at a predetermined position of the touch screen according to the first pickup point and the size of the touch screen, wherein the zoomed-in area is not shielded by the finger; displaying, in the zoomed-in display area, the preselected entity or the preselected entity processed by the hooked preview program; and after displaying the preview of the result of processing the preselected entity; receiving a user selection associated with the result of processing the preselected entity, wherein the user selection comprises movement of the user'"'"'s finger on the touch screen; in response to the user selection indicating to select the result of processing the preselected entity, returning entity information of the preselected entity to a control instruction to which the preview program is hooked, to enable the control instruction to process the preselected entity; and in response to the user selection indicating to not select the result of processing the preselected entity, recovering the preselected entity to a state before the preselected entity has been processed by the preview program by deleting the result of processing the preselected entity in a background, and storing the state before the preselected entity was processed by the hooked preview program. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A mobile phone for selecting an entity in a drawing, the mobile phone comprising:
-
a touch screen, configured to receive an input data corresponding to a movement of a user'"'"'s finger on the touch screen of the mobile phone; and a processor, wherein the processor is configured to execute a plurality of program modules stored in a memory, the plurality of program modules comprising; an invoking module, configured to invoke a hooked preview program corresponding to a functional instruction after the functional instruction is inputted into a Computer Aided Design system; a selecting module, configured to select a first pickup point in a drawing based on the input data, wherein the first pickup point is not shielded by the user'"'"'s finger; a filtering module, configured to filter an entity in a predetermined range around the first pickup point to obtain a preselected entity; a displaying module, configured to display the preselected entity in a predetermined highlight display manner, wherein the highlight display manner comprises setting a display property of the preselected entity by; reading entity information of the preselected entity; and updating the entity information of the preselected entity according to a preset display property to obtain a highlighted preselected entity; a processing module, configured to process the preselected entity via the hooked preview program to display a preview of a result of processing the preselected entity by the functional instruction; a first determining module, configured to, after displaying a preview of the result of processing the preselected entity, receiving a user selection associated with the result of processing the preselected entity; a returning module, configured to return, in response to the user selection indicating to select the result of processing the preselected entity, the entity information of the preselected entity to a control instruction to which the preview program is hooked, to enable the control instruction to process the preselected entity; and a recovering module, configured to recover, in response to the user selection indicating not to select the result of processing the preselected entity, the preselected entity to a state before the preselected entity has been processed by the preview program by recovering and storing the state before the preselected entity has been processed by the preview program. - View Dependent Claims (8, 9, 10, 11, 12, 13, 14)
-
-
15. A method for selecting an entity in a drawing, which is executed by a mobile phone, comprising:
-
receiving, from a touch screen of the mobile phone, an input data indicating a movement of a user'"'"'s finger on the touch screen; invoking a hooked preview program corresponding to a functional instruction after the functional instruction is inputted into a Computer Aided Design (CAD) system; selecting a first pickup point in a drawing based on the input data, wherein the first pickup point is not shielded by the user'"'"'s finger; filtering an entity in a predetermined range around the first pickup point to obtain a preselected entity; processing the preselected entity via the hooked preview program to display a preview of a result of processing the preselected entity by the functional instruction; displaying the preselected entity in a predetermined highlight display manner, wherein the highlight display manner comprises setting a display property of the preselected entity by; reading entity information of the preselected entity; and updating the entity information of the preselected entity according to a preset display property to obtain a highlighted preselected entity; and after displaying the preview of the result of processing the preselected entity; receiving a user selection associated with the result of processing the preselected entity, wherein the user selection comprises movement of the user'"'"'s finger on the touch screen; in response to the user selection indicating to select the result of processing the preselected entity, returning entity information of the preselected entity to a control instruction to which the preview program is hooked, to enable the control instruction to process the preselected entity; and in response to the user selection indicating to not select the result of processing the preselected entity, recovering the preselected entity to a state before the preselected entity has been processed by the preview program by deleting the result of processing the preselected entity in a background, and storing the state before the preselected entity was processed by the hooked preview program. - View Dependent Claims (16)
-
-
17. A mobile phone for selecting an entity in a drawing, the mobile phone comprising:
-
a touch screen, configured to receive an input data corresponding to a movement of a user'"'"'s finger on the touch screen of the mobile phone; and a processor, wherein the processor is configured to execute a plurality of program modules stored in a memory, the plurality of program modules comprising; an invoking module, configured to invoke a hooked preview program corresponding to a functional instruction after the functional instruction is inputted into a Computer Aided Design system; a selecting module, configured to select a first pickup point in a drawing based on the input data; a filtering module, configured to filter an entity in a predetermined range around the first pickup point to obtain a preselected entity; a displaying module, configured to; obtain a predetermined zooming-in factor; perform calculation according to the predetermined zooming-in factor and pixels of the touch screen to obtain a size of a zoomed-in display area; create the zoomed-in display area at a predetermined position of the touch screen according to the first pickup point and the size of the touch screen, wherein the zoomed-in area is not shielded by the finger; display, in the zoomed-in display area, the preselected entity or the preselected entity processed by the hooked preview program; a processing module, configured to process the preselected entity via the hooked preview program to display a preview of a result of processing the preselected entity by the functional instruction; a first determining module, configured to, after displaying a preview of the result of processing the preselected entity, receive a user selection associated with the result of processing the preselected entity; a returning module, configured to return, in response to the user selection indicating to select the result of processing the preselected entity, the entity information of the preselected entity to a control instruction to which the preview program is hooked, to enable the control instruction to process the preselected entity; and a recovering module, configured to recover, in response to the user selection indicating not to select the result of processing the preselected entity, the preselected entity to a state before the preselected entity has been processed by the preview program by recovering and storing the state before the preselected entity has been processed by the preview program.
-
Specification