1. Technical Field
The embodiments of the present disclosure relate to computer aided systems and methods, and particularly to a computing device and a method for managing measurement objects.
2. Description of Related Art
In image measuring, a tree data structure is often used to manage measurement elements, such as points, lines, or surfaces, of a measurement object (such as a three-dimensional model of a product). A user may manipulate the tree data structure to manipulate the elements, such as editing or deleting an element of the measurement object. However, at present, the tree data structure and the measurement object are displayed on two independent user interfaces (such as the interfaces 1 and 2 shown in
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 erasable programming read only memory (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 include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The storage device 20 stores information related to the measurement object. The information related to the measurement object includes a name of the measurement object, names of measurement elements of the measurement object, and parameters of the measurement elements. The measurement elements may include, but are not limited to, points, lines, and surfaces. The parameters of each measurement element include coordinate information of the measurement element in a coordinate system (such as a machine coordinate system) and dimensional data of the measurement element. For example, if the measurement element is a circle, the parameters may include coordinate information of a center point of the circle and a radius of the circle.
As shown in
In step S201, the information reading module 11 reads information of a measurement object from the storage device 20. In one embodiment, the measurement object is a three-dimensional model of a product. As mentioned above, the information related to the measurement object includes a name of the measurement object, names of measurement elements of the measurement object, and parameters of the measurement elements. The measurement elements may include, but are not limited to, points, lines, and surfaces. The graphic displaying module 12 displays an entire graphic of the measurement object on a graphic user interface (GUI) according to the read information. For example, in
In step S203, the interface processing module 13 creates a tree object region on the GUI, where the tree object region covers part of the entire graphic of the measurement object. For example, as shown in
In step S205, the interface processing module 13 redisplays the entire graphic of the measurement object by copying pixel information of the covered part from the memory 50 to the tree object region. As shown in
In step S207, the node adding module 14 displays a hierarchical tree object in the tree object region by adding the name of the measurement object and names of the measurement elements as nodes of the hierarchical tree object. For example, if the name of the measurement object is “Part1-OK,” and the measurement object “Part1-OK” has measurement elements named from “Part1-OK-0” to “Part1-OK-44,” the node adding module 14 adds the name of “Part1-OK” as a root node of the hierarchical tree object, and adds the names ranged from “Part1-0K-0” to “Part1-OK-44” as sub-nodes of the root node, so as to create the hierarchical tree object shown in the tree object region 321 in
In step S209, the coordinate processing module 15 stores a name of each node and coordinate information of a region occupied by the name of each node into an array. For example, as shown in
In step S211, the coordinate processing module 15 detects coordinate information of a cursor (e.g., of a mouse or a pointing device) that stays on the tree object region, and determines a node selected by the cursor by comparing the coordinate information of the cursor with the coordinate information stored in the array. For example, as shown in
In step S213, manipulating the selected node to manipulate an associated measurement element on the entire graphic of the measurement object. For example, as shown in
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 |
---|---|---|---|
201210100797.3 | Apr 2012 | CN | national |