1. Technical Field
Embodiments of the present disclosure relate to object management systems and methods, and particularly to a system and a method for managing measured elements of an object.
2. Description of Related Art
A measurement machine measures an object to obtain images of measured elements of the object. A tree structure is often used to show the measurement elements of the object. However, the measurement elements may be shown on the tree structure out of order, and thus it is time-consuming for a user to find a desired measured element. If the user wants to check a measurement program of the measured element, the user cannot open the measurement program on the tree structure but must make reference elsewhere, which may also be time-consuming.
The disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language. One or more software instructions in the modules may be embedded in firmware, such as in an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media may include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
In an exemplary embodiment, the computing device 1 includes at least one processor 13 and a storage system 14. The management system 10 may include one or more modules (also described in
As shown in
The generating module 100 generates a tree structure on the interface 110 showed on the display 11. In one embodiment, the tree structure may include a first part and a second part, as shown in
The importing module 101 imports information of all the measured elements of the object 3 from the storage system 14, and stores the information of all the measured elements in an array.
The generating module 100 generates an icon of each measured element as a node in the tree structure according to the type of each measured element, and gives a name to each icon as the name of the corresponding measured element.
The obtaining module 102 obtains a coordinate range of each icon of the tree structure, and stores the coordinate range of each icon in the array. In one embodiment, the coordinate range of an icon may be a rectangle around the icon node. As shown in
The detecting module 103 detects a location of a cursor (e.g., of the mouse 12 of the computing device 1) that is moved on the tree structure displayed on the display 11, determines a coordinate range in which the cursor is located, and makes a determination as to the icon corresponding to the determined range.
The displaying module 104 obtains a measurement program of a measured element corresponding to the determined icon and displays the measurement program. If double clicks have been executed on the measurement program, the displaying module 104 displays an editable state of the measurement program, namely, the measurement program can be edited by the user.
In step S30, the generating module 100 generates a tree structure on the interface 110.
In step S31, the importing module 101 imports information of all the measured elements of the object 3 from the storage system 14, and stores the information of all the measured elements in an array.
In step S32, the generating module 100 generates an icon of each measured element as a node in the tree structure according to the type of each measured element, and gives each icon a name corresponding to the name of the measured element.
In step S33, the obtaining module 102 obtains a coordinate range of each icon of the tree structure, and stores the coordinate range of each icon in the array.
In step S34, the detection module 104 detects a location of a cursor on the tree structure displayed on the display 11, and determines a coordinate range in which the cursor is located.
In step S35, the detection module 104 makes a determination as to the icon which corresponds to the determined range.
In step S36, the displaying module 104 obtains a measurement program of a measured element corresponding to the determined icon and displays the measurement program.
In step S37, executing a double click on the measurement program causes the displaying module 104 to display the measurement program in an editable state.
Although certain inventive embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201110338261.0 | Oct 2011 | CN | national |