CN103605851A - Data processing method and data processing device for computer graphic processing - Google Patents

Data processing method and data processing device for computer graphic processing Download PDF

Info

Publication number
CN103605851A
CN103605851A CN201310598550.3A CN201310598550A CN103605851A CN 103605851 A CN103605851 A CN 103605851A CN 201310598550 A CN201310598550 A CN 201310598550A CN 103605851 A CN103605851 A CN 103605851A
Authority
CN
China
Prior art keywords
data object
atomic
atomic operation
data
judge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310598550.3A
Other languages
Chinese (zh)
Other versions
CN103605851B (en
Inventor
陈燎
雷微明
郭瑞军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Caxa Technology Co Ltd
Original Assignee
Caxa Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Caxa Technology Co Ltd filed Critical Caxa Technology Co Ltd
Priority to CN201310598550.3A priority Critical patent/CN103605851B/en
Publication of CN103605851A publication Critical patent/CN103605851A/en
Application granted granted Critical
Publication of CN103605851B publication Critical patent/CN103605851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a data processing method and a data processing device for computer graphic processing. The data processing method for computer graphic processing comprises the following steps of recognizing a first operation on a first data object in the computer graphic processing; recognizing a second operation on a second data object in the computer graphic processing; judging whether the type of the first data object is the same with that of the second data object; and operating the second data object by using the first operation if the type of the first data object is the same with that of the second data object. By using the data processing method, the operation in the same type cannot be repeated.

Description

Data processing method and the device for computer graphical, processed
Technical field
The present invention relates to data processing field, in particular to a kind of data processing method and device of processing for computer graphical.
Background technology
Along with the widespread use of graphics software at modern industry, CAD(Computer Aided Design for example, computer-aided design (CAD)) software.The content of the required drafting of software and processing is also in continuous increase, and some projects need even thousands of parts of drawings up to a hundred just can realize.When user operates, can there are many complexity but identical step, for example: user need to carry out some identical modifications or increase operational processes straight line and a multi-section-line, these operations all need to carry out manual handle, for the action need of same type wherein, re-start operation, can waste a lot of time and efforts so.In the data handling procedure of processing at computer graphical, user needs the operation of repetitive operation same type, greatly reduces user's work efficiency, has wasted time and efforts.
In the data handling procedure of processing at computer graphical in prior art, user needs the problem of the operation of repetitive operation same type, not yet proposes at present effective solution.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of data processing method and device of processing for computer graphical, and to solve in the data handling procedure of processing at computer graphical in prior art, user needs the problem of the operation of repetitive operation same type.
To achieve these goals, according to an aspect of the present invention, provide a kind of data processing method of processing for computer graphical.The data processing method of processing for computer graphical according to the present invention comprises: identification computer graphical is processed the first operation to the first data object; Identification computer graphical operates second of the second data object in processing; Whether the type that judges the first data object and the second data object is identical; And if it is identical with the type of the second data object to judge the first data object, adopt the first operation to the second data object executable operations.
Further, identification computer graphical comprises the first operation of the first data object in processing: obtain the operation set being pre-created, the set of the operation that a plurality of operational group of operation set are synthetic; From the operation set being pre-created, obtain the first operation to the first data object; Adopt the first operation to comprise the second data object executable operations: to adopt operation set to the second data object executable operations.
Further, adopt operation set to comprise the second data object executable operations: obtain the atomic operation in operation set, atomic operation is the operation of least unit in operation set; Judge that whether atomic operation is effective; And if it is effective to judge atomic operation, use atomic operation to the second data object executable operations.
Further, after the atomic operation in obtaining operation set, and before judging that whether atomic operation is effective, data processing method also comprises: judge whether atomic operation needs to operate the second data object; And if judge atomic operation and need to operate the second data object, export information, wherein, information is for pointing out user to select to need the second data object of operation.
Further, adopt operation set to comprise the second data object executable operations: to obtain all atomic operations in operation set; Whether each atomic operation that decision operation is concentrated needs to operate the second data object; If judge atomic operation, need to operate the second data object, export information, wherein, information is for pointing out user to select to need the second data object of operation; Whether decision operation is concentrated each atomic operation successively effective; And use and judge effective atomic operation to the second data executable operations.
To achieve these goals, according to a further aspect in the invention, provide a kind of data processing equipment of processing for computer graphical.The data processing equipment of processing for computer graphical according to the present invention comprises: recognition unit, for identifying computer graphical, process the second operation to the second data object in the first operation of the first data object and the processing of identification computer graphical; Whether judging unit is identical for judging the type of the first data object and the second data object; And performance element, when identical for the type judging the first data object and the second data object, adopt the first operation to the second data object executable operations.
Further, recognition unit comprises: the first acquisition module, for obtaining the operation set being pre-created, the set of the operation that a plurality of operational group of operation set are synthetic; The second acquisition module, obtains the first operation to the first data object for the operation set from being pre-created; Performance element is also for adopting operation set to the second data object executable operations.
Further, performance element comprises: the 3rd acquisition module, and for obtaining the atomic operation of operation set, atomic operation is the operation of least unit in operation set; The first judge module, whether effective for judging atomic operation; And execution module, for judging atomic operation when effective, use atomic operation to the second data object executable operations.
Further, performance element also comprises: the second judge module, for after obtaining the atomic operation of operation set, judges whether atomic operation needs to operate the second data object; And output module, for when judging atomic operation and need to operate the second data object, output information, wherein, information is for pointing out user to select to need the second data object of operation.
Further, the 3rd acquisition module is also for obtaining all atomic operations of operation set; Whether each atomic operation that the first judge module is also concentrated for decision operation needs to operate the second data object; Output module, for operating the second data object judging atomic operation, is exported information, and wherein, information is for pointing out user to select to need the second data object of operation; The second judge module is also for whether concentrated each atomic operation of decision operation is effective successively; And execution module is also judged effective atomic operation to the second data executable operations for using.
By the present invention, adopt the data processing method of processing for computer graphical, when the type of the first data object and the second data object is identical, by first operation the second data object executable operations, thereby when to the second data object executable operations, reduce repetitive operation, solved in the data handling procedure of processing at computer graphical in prior art, user needs the problem of the operation of repetitive operation same type, and then has reached the effect that need not again operate the operation of same type.
Accompanying drawing explanation
The accompanying drawing that forms the application's a part is used to provide a further understanding of the present invention, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the structural representation of the data processing equipment of processing for computer graphical of first embodiment of the invention;
Fig. 2 is according to the structural representation of the data processing equipment of processing for computer graphical of second embodiment of the invention
Fig. 3 is according to the process flow diagram of the data processing method of processing for computer graphical of first embodiment of the invention;
Fig. 4 is according to the process flow diagram of the data processing method of processing for computer graphical of second embodiment of the invention;
Fig. 5 is according to the process flow diagram of the operation set creation method of the embodiment of the present invention; And
Fig. 6 is the process flow diagram to the method for operating of data object according to the use operation set of the embodiment of the present invention.
Embodiment
It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
In order to make those skilled in the art person understand better the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, the term " first " in instructions of the present invention and claims and above-mentioned accompanying drawing, " second " etc. are for distinguishing similar object, and needn't be for describing specific order or precedence.Should be appreciated that the data of such use are suitably exchanging in situation, so that embodiments of the invention described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, for example, those steps or unit that the process that has comprised series of steps or unit, method, system, product or equipment are not necessarily limited to clearly list, but can comprise clearly do not list or for these processes, method, product or equipment intrinsic other step or unit.
The embodiment of the present invention provides a kind of data processing equipment of processing for computer graphical, and this device can be realized its function by computer equipment.
Fig. 1 is according to the structural representation of the data processing equipment of processing for computer graphical of first embodiment of the invention.As shown in Figure 1, the data processing equipment that should process for computer graphical comprises recognition unit 10, judging unit 20 and performance element 30.
Recognition unit 10 is processed the second operation to the second data object in the first operation of the first data object and the processing of identification computer graphical for identifying computer graphical.
It can be the process that in computing machine, graphics software carries out graphics process that computer graphical is processed, and wherein graphics software can be such as graphics softwares such as CAD softwares.The first data object can be a Drawing Object, and such as circle, straight line etc. can be also the object that the combination of a plurality of Drawing Objects forms, such as bilinear etc.The first operation to the first data object can be the operating process of drawing the first data object, such as drawing circle, drawing straight line etc., can be also the operation of revising object properties, such as revising the starting point of straight line or terminal etc.The first operation can be the atomic operation in graphics software, and atomic operation is the minimum operation being provided by software, for example: draw circle, setting-out etc., atomic operation comprises that this operates essential parameter.Certain the first operation can be also one group of combination operation, such as operation set etc.Operation set is the set of an operation being combined by a plurality of atomic operations with parameter.Operation set can directly be used by graphics software the operation that also reappearing user needs.When a plurality of Drawing Objects of the first data object combine the object forming, the first operation can be the operation set that a plurality of Drawing Objects are operated.For example, when user need to draw 2 straight lines, can be first from function storehouse, identification is pre-created about drawing the operation set of 2 straight lines, by this function collection, carry out corresponding operation.The first operation to the first data object can be the operation set being combined by atomic operation generating in advance, can be also the operation set forming user concentrates the attribute of relevant atomic operation to modify to being pre-created generating run after.
The second operation of the second data object can be in the operation to after the first operation of the first data object, can be the operation that user carries out data object.For example, when user need to draw 2 straight lines, wherein, article one, the terminal of straight line is identical with the starting point of second straight line, the second data object is 2 straight lines so, by identifying first operation of this operation the first data that can directly to obtain with the second data object be same type to picture, for example bilinear operation set, is used the first operation to operate the second data object.
Whether judging unit 20 is identical for judging the type of the first data object and the second data object.
Identifying to the first operation of the first data object with after to the second operation of the second data object, whether the type that judges the first data object and the second data object is identical, so that with the first operation directly to the second data object executable operations, thereby do not need operation that the second data object carry out is repeated.For example, when the first data object is bilinear, the second data object is 2 straight lines, because the first data object and the second data object are all straight line, can be adopt be pre-created to the first operation of the first data object or pre-stored to the first operation of the first data object to the second data object executable operations.
When performance element 30 is identical for the type judging the first data object and the second data object, adopt the first operation to the second data object executable operations.
When judging the type of the first data object and the second data object when identical, can use this first operation to generate or revise the second data object, when first is operating as atomic operation, use this atomic operation to generate or revise the second data object.When first is operating as operation set, adopts this operation set to the second data object executable operations, thereby can avoid, when to the second data object executable operations, repeating some identical operations.
Fig. 2 is according to the structural representation of the data processing equipment of processing for computer graphical of second embodiment of the invention.The data processing equipment of processing for computer graphical of this embodiment can be used as a kind of preferred implementation of the data processing equipment of processing for computer graphical of above-described embodiment.As shown in Figure 2, the data processing equipment that should process for computer graphical comprises recognition unit 10, judging unit 20 and performance element 30, and wherein, recognition unit 10 comprises the first acquisition module 101 and the second acquisition module 102.Judging unit 20 is identical with judging unit 20 functions shown in Fig. 1 not to be repeated here.
The first acquisition module 101 is for obtaining the operation set being pre-created, the set of the operation that a plurality of operational group of operation set are synthetic.
Operation set is the set of an operation being combined by a plurality of atomic operations with parameter.Operation set can directly be used by graphics software the operation that also reappearing user needs.Obtain the operation set being pre-created and can make to obtain the operation set generating in advance from the function storehouse of graphics software, wherein, function storehouse refers to the set of all operations collection, and in this function storehouse, user can increase new operation set or delete existing operation set.Wherein, the generation of operation set is identical with the generating mode of the operation set of the data processing method of processing for computer graphical of the embodiment of the present invention.
The second acquisition module 102 obtains the first operation to the first data object for the operation set from being pre-created.
After the operation set being pre-created, owing to including a plurality of atomic operations in operation set, when using operation to do to collect, in this operation set, be not that all atomic operations can be used, therefore from the operation set being pre-created, obtaining the first operation of the first data object can be an atomic operation in operation set, or the atomic operation of a part certainly, can be also all operations.
Performance element 30 is also for adopting operation set to the second data object executable operations.
If it is identical with the type of the second data object to judge the first data object, adopt operation set to operate the second data object, for example, when the second data object is 2 straight lines of picture, can directly adopt the operation set of the picture two-wire by name being pre-created to the second data object executable operations, in order to user is drawn to the data object executable operations of 2 straight lines.
Preferably, performance element 30 comprises: the 3rd acquisition module, the first judge module and execution module.
The 3rd acquisition module is for obtaining the atomic operation of operation set, and atomic operation is the operation of least unit in operation set.
Obtain atomic operation in operation set and can be in traversal function storehouse after this operation set, obtain each atomic operation in operation set, whether effective in order to judge this atomic operation, thus can judge whether the operation of using this atomic operation that data object is generated or revised.
The first judge module is used for judging that whether atomic operation is effective.
After atomic operation in obtaining operation set, judge that whether this atomic operation is effective, when the atomic operation obtaining is invalid, can obtain the next atomic operation in operation set, and whether rejudge next atomic operation effective.Judge this atomic operation when effective, can use this atomic operation to carry out corresponding operation to data object.
Execution module, for judging atomic operation when effective, is used atomic operation to the second data object executable operations.
After judging that whether atomic operation is effective, when judging atomic operation when effective, use this atomic operation to data object executable operations, for example, need in graphics software, draw 2 straight lines, the starting point that then changes second straight line is identical with the terminal of article one straight line, and in function storehouse, create corresponding operation set, in function storehouse, selected this operation set.Get the first atomic operation, this first atomic operation is picture straight line, and does not rely on other data object, and has correct starting point and terminal numerical value, so this first atomic operation is effective, can in software, draw.After this atomic operation of use is to data object executable operations, can also obtain the next atomic operation in operation set, repeat step above, thereby realize, each atomic operation is processed.
Preferably, performance element 30 also comprises: the second judge module and output module.
The second judge module, for after obtaining the atomic operation of operation set, judges whether atomic operation needs to operate the second data object.
After atomic operation in obtaining operation set, can also judge whether this atomic operation needs service data object, if needed, can point out user-selected number to operate accordingly according to object.
Output module is for when judging atomic operation and need to operate the second data object, output information, and wherein, information is for pointing out user to select to need the second data object of operation.
When judging atomic operation and need service data object, export information, to point out user to select the data object needing.
Preferably, the 3rd acquisition module is also for obtaining all atomic operations of operation set.
After atomic operation in operation set, obtain all atomic operations in operation set, so that each atomic operation in operation set is judged and processed.
Whether each atomic operation that the first judge module is also concentrated for decision operation needs to operate the second data object.
After all atomic operations in obtaining operation set, judge whether each atomic operation needs to operate the second data object, so that prompting user-selected number operates accordingly according to object.
Output module, for operating the second data object judging atomic operation, is exported information, and wherein, information is for pointing out user to select to need the second data object of operation.
After judging whether each atomic operation needs to operate the second data object, for the atomic operation that need to operate the second data object, need to export information, to point out user to select the data object needing.
The second judge module is also for whether concentrated each atomic operation of decision operation is effective successively.
Can be after the atomic operation in obtaining operation set, judge that whether this atomic operation is effective, when the atomic operation obtaining is invalid, can obtain the next atomic operation in operation set, and whether rejudge next atomic operation effective.Judge this atomic operation when effective, can use this atomic operation to carry out corresponding operation to data object.
Execution module is also judged effective atomic operation to the second data executable operations for using.
Decision operation successively concentrate each atomic operation whether effectively after, use effective atomic operation to generate or Update Table object.
The embodiment of the present invention also provides a kind of data processing method of processing for computer graphical.The method operates on computer equipment.It should be noted that, the data processing equipment of processing for computer graphical that the data processing method of processing for computer graphical of the embodiment of the present invention can provide by the embodiment of the present invention is carried out, the data processing method of processing for computer graphical that the data processing equipment of processing for computer graphical of the embodiment of the present invention also can provide for carrying out the embodiment of the present invention.
Fig. 3 is according to the process flow diagram of the data processing method of processing for computer graphical of first embodiment of the invention.As shown in Figure 3, the data processing method that should process for computer graphical comprises that step is as follows:
Step S101, identification computer graphical operates first of the first data object in processing.
It can be the process that in computing machine, graphics software carries out graphics process that computer graphical is processed, and wherein graphics software can be such as graphics softwares such as CAD softwares.The first data object can be a Drawing Object, and such as circle, straight line etc. can be also the object that the combination of a plurality of Drawing Objects forms, such as bilinear etc.The first operation to the first data object can be the operating process of drawing the first data object, such as drawing circle, drawing straight line etc., can be also the operation of revising object properties, such as revising the starting point of straight line or terminal etc.The first operation can be the atomic operation in graphics software, and atomic operation is the minimum operation being provided by software, for example: draw circle, setting-out etc., atomic operation comprises that this operates essential parameter.Certain the first operation can be also one group of combination operation, such as operation set etc.Operation set is the set of an operation being combined by a plurality of atomic operations with parameter.Operation set can directly be used by graphics software the operation that also reappearing user needs.When a plurality of Drawing Objects of the first data object combine the object forming, the first operation can be the operation set that a plurality of Drawing Objects are operated.For example, when user need to draw 2 straight lines, can be first from function storehouse, identification is pre-created about drawing the operation set of 2 straight lines, by this function collection, carry out corresponding operation.The first operation to the first data object can be the operation set being combined by atomic operation generating in advance, can be also the operation set forming user concentrates the attribute of relevant atomic operation to modify to being pre-created generating run after.
Step S102, identification computer graphical operates second of the second data object in processing.
The second operation of the second data object can be in the operation to after the first operation of the first data object, can be the operation that user carries out data object.For example, when user need to draw 2 straight lines, wherein, article one, the terminal of straight line is identical with the starting point of second straight line, the second data object is 2 straight lines so, by identifying first operation of this operation the first data that can directly to obtain with the second data object be same type to picture, for example bilinear operation set, is used the first operation to operate the second data object.
Step S103, judges that whether the type of the first data object and the second data object is identical.
Identifying to the first operation of the first data object with after to the second operation of the second data object, whether the type that judges the first data object and the second data object is identical, so that with the first operation directly to the second data object executable operations, thereby do not need operation that the second data object carry out is repeated.For example, when the first data object is bilinear, the second data object is 2 straight lines, because the first data object and the second data object are all straight line, can be adopt be pre-created to the first operation of the first data object or pre-stored to the first operation of the first data object to the second data object executable operations.
Step S104, if it is identical with the type of the second data object to judge the first data object, adopts the first operation to the second data object executable operations.
When judging the type of the first data object and the second data object when identical, can use this first operation to generate or revise the second data object, when first is operating as atomic operation, use this atomic operation to generate or revise the second data object.When first is operating as operation set, adopts this operation set to the second data object executable operations, thereby can avoid, when to the second data object executable operations, repeating some identical operations.
According to the embodiment of the present invention, when the type of the first data object and the second data object is identical, by first operation the second data object executable operations, thereby when to the second data object executable operations, reduce repetitive operation, solved in the data handling procedure of processing at computer graphical in prior art, user needs the problem of the operation of repetitive operation same type, and then has reached the effect that need not again operate the operation of same type.
Fig. 4 is according to the process flow diagram of the data processing method of processing for computer graphical of second embodiment of the invention.The data processing method of processing for computer graphical of this embodiment can be used as a kind of preferred implementation of the data processing method of processing for computer graphical of above-described embodiment.As shown in Figure 4, the data processing method that should process for computer graphical comprises that step is as follows:
Step S201, obtains the operation set being pre-created, and operation set is the set of the synthetic operation of a plurality of operational group.
Operation set is the set of an operation being combined by a plurality of atomic operations with parameter.Operation set can directly be used by graphics software the operation that also reappearing user needs.Obtain the operation set being pre-created and can make to obtain the operation set generating in advance from the function storehouse of graphics software, wherein, function storehouse refers to the set of all operations collection, and in this function storehouse, user can increase new operation set or delete existing operation set.As shown in Figure 5, the operation set of the embodiment of the present invention can following steps generate:
Step S1 creates a new operation set in function storehouse.In this new operation set, can add atomic operation to form the set of atomic operation.
Step S2 selects the atomic operation that need to use in atomic operation storehouse.Atomic operation can be to select from atomic operation storehouse, wherein, atomic operation storehouse is the set storehouse of all atomic operations, sorting placement is carried out according to the type of atomic operation in atomic operation storehouse, the set storehouse that includes all classified atomic operations that graphics software supports, for example, draw storehouse, revise storehouse, mark storehouse etc., in each set storehouse, include all atomic operations of the type.By the sorting placement to atomic operation, facilitate user to find rapidly the atomic operation needing.
Step S3 is atomic operation input parameter.Because atomic operation is all with essential parameter, therefore, after selecting the atomic operation needing, can to atomic operation, input corresponding parameter as required, for example, the parameter of the attributes such as the starting point of radius of a circle, straight line and terminal.Certainly, after having created new operation set, for the parameter of the atomic operation in operation set, can also modify, thereby can meet user's different needs, flexible Application.
Step S4, deposits the atomic operation after input parameter in new operation set in.After to atomic operation input parameter, this atomic operation is deposited in operation set, thereby complete the interpolation to the atomic operation of operation set.
Step S5, judges whether to need to continue to add atomic operation.If need to continue to add atomic operation, return to step S2 and again add atomic operation; If do not need to add atomic operation, complete the establishment of new operation set.After having added an atomic operation, need to judge whether also will add atomic operation, if also need to add atomic operation, can return to step S2 and add again the atomic operation needing; If do not need to add atomic operation, the establishment of operation set completes.
Step S6, operation set is preserved in function storehouse.After the establishment of operation set completes, by function storehouse, preserve newly-generated operation set, to facilitate user can reuse the operation set of generation after restarting software.
For example, at software, draw 2 straight lines, then change the starting point of second straight line identical with the terminal of straight line.The processing that need to carry out the corresponding operation set of this operation generation comprises:
In function storehouse, create the operation set of a picture two-wire by name.
From the drafting storehouse in atomic operation storehouse, take and create the first atomic operation of new drafting straight line, the first atomic operation adds the numerical value of article one straight line starting point and terminal for this reason, then this second atom is put into operation set.
The second atomic operation of new drafting straight line is taken and is created in continuation from the drafting storehouse in atomic operation storehouse, and the second atomic operation adds the numerical value of second straight line starting point and terminal for this reason, equally this second atom is put into operation set.
From the modification storehouse in atomic operation storehouse, take and create the 3rd atomic operation of new modification straight line attribute, this the 3rd atomic operation to act on to as if when reusing the 3rd atomic operation, by user, specified, when creation operation collection without being its specified data object.The 3rd atomic operation setting will be revised equally for this reason attribute and property value, then put into operation set.
So far a complete operation set has created, and in function storehouse, can see this operation set, and each atomic operation and determinant attribute in operation set also can be checked, facilitate user revise temporarily and consult.
Step S202 obtains the first operation to the first data object from the operation set being pre-created.
After the operation set being pre-created, owing to including a plurality of atomic operations in operation set, when using operation to do to collect, in this operation set, be not that all atomic operations can be used, therefore from the operation set being pre-created, obtaining the first operation of the first data object can be an atomic operation in operation set, or the atomic operation of a part certainly, can be also all operations.
Step S203, identification computer graphical operates second of the second data object in processing.
The second operation of the second data object can be in the operation to after the first operation of the first data object, can be the operation that user carries out data object.For example, when user need to draw 2 straight lines, wherein, article one, the terminal of straight line is identical with the starting point of second straight line, the second data object is 2 straight lines so, by identifying first operation of this operation the first data that can directly to obtain with the second data object be same type to picture, for example bilinear operation set, is used the first operation to operate the second data object.
Step S204, judges that whether the type of the first data object and the second data object is identical.
Identifying to the first operation of the first data object with after to the second operation of the second data object, whether the type that judges the first data object and the second data object is identical, so that with the first operation directly to the second data object executable operations, thereby do not need operation that the second data object carry out is repeated.For example, when the first data object is bilinear, the second data object is 2 straight lines, because the first data object and the second data object are all straight line, can be adopt be pre-created to the first operation of the first data object or pre-stored to the first operation of the first data object to the second data object executable operations.
Step S205, if it is identical with the type of the second data object to judge the first data object, adopts operation set to the second data object executable operations.
If it is identical with the type of the second data object to judge the first data object, adopt operation set to operate the second data object, for example, when the second data object is 2 straight lines of picture, can directly adopt the operation set of the picture two-wire by name being pre-created to the second data object executable operations, in order to user is drawn to the data object executable operations of 2 straight lines.
Preferably, step S205 can realize by following steps:
Step S2051, obtains the atomic operation in operation set, and atomic operation is the operation of least unit in operation set.
Obtain atomic operation in operation set and can be in traversal function storehouse after this operation set, obtain each atomic operation in operation set, whether effective in order to judge this atomic operation, thus can judge whether the operation of using this atomic operation that data object is generated or revised.
Step S2052, judges that whether atomic operation is effective.
After atomic operation in obtaining operation set, judge that whether this atomic operation is effective, when the atomic operation obtaining is invalid, can obtain the next atomic operation in operation set, and whether rejudge next atomic operation effective.Judge this atomic operation when effective, can use this atomic operation to carry out corresponding operation to data object.
Step S2053, if it is effective to judge atomic operation, is used atomic operation to the second data object executable operations.
After judging that whether atomic operation is effective, when judging atomic operation when effective, use this atomic operation to data object executable operations, for example, need in graphics software, draw 2 straight lines, the starting point that then changes second straight line is identical with the terminal of article one straight line, and in function storehouse, create corresponding operation set, in function storehouse, selected this operation set.Get the first atomic operation, this first atomic operation is picture straight line, and does not rely on other data object, and has correct starting point and terminal numerical value, so this first atomic operation is effective, can in software, draw.After this atomic operation of use is to data object executable operations, can also obtain the next atomic operation in operation set, repeat step above, thereby realize, each atomic operation is processed.
Preferably, after step S2051, and before step S2052, data processing method is further comprising the steps of:
Step 1, judges whether atomic operation needs to operate the second data object.
After atomic operation in obtaining operation set, can also judge whether this atomic operation needs service data object, if needed, can point out user-selected number to operate accordingly according to object.
Step 2, need to operate the second data object if judge atomic operation, exports information, and wherein, information is for pointing out user to select to need the second data object of operation.
When judging atomic operation and need service data object, export information, to point out user to select the data object needing.
Preferably, step S205 can also comprise the following steps:
Step S251, obtains all atomic operations in operation set.
After atomic operation in operation set, obtain all atomic operations in operation set, so that each atomic operation in operation set is judged and processed.
Step S252, whether each atomic operation that decision operation is concentrated needs to operate the second data object.
After all atomic operations in obtaining operation set, judge whether each atomic operation needs to operate the second data object, so that prompting user-selected number operates accordingly according to object.
Step S253, need to operate the second data object if judge atomic operation, exports information, and wherein, information is for pointing out user to select to need the second data object of operation.
After judging whether each atomic operation needs to operate the second data object, for the atomic operation that need to operate the second data object, need to export information, to point out user to select the data object needing.
Step S254, whether decision operation is concentrated each atomic operation successively effective.
Can be after the atomic operation in obtaining operation set, judge that whether this atomic operation is effective, when the atomic operation obtaining is invalid, can obtain the next atomic operation in operation set, and whether rejudge next atomic operation effective.Judge this atomic operation when effective, can use this atomic operation to carry out corresponding operation to data object.
Step S255, is used and judges effective atomic operation to the second data executable operations.
Decision operation successively concentrate each atomic operation whether effectively after, use effective atomic operation to generate or Update Table object.
Below according to Fig. 6 to using manipulator to generate in the embodiment of the present invention or Update Table object is described, as shown in Figure 6,
Step S11, an operation set in selection function storehouse.By operation set to data to picture executable operations, can be to select a function collection by user, computing machine is identified this operation set to process accordingly.
Step S12, the atomic operation that traversing operation is concentrated.After an operation set in selection function storehouse, identifying operation is concentrated all atomic operations.
Step S13, judges whether to obtain next atomic operation, if not, directly finished, if had, enters next step.Judging whether to obtain next atomic operation can be that decision operation concentrates whether also have untreated atomic operation.Due to when using operation set generation or deal with data object, need to each atomic operation be judged and be processed.After handling an atomic operation, before obtaining next atomic operation, need to judge whether to obtain next atomic operation, if while having bought the atomic operation that need to judge and process, use operation set to finish the treatment scheme of data object.
Step S14, obtains atomic operation.After judging and can getting next atomic operation, obtain corresponding atomic operation, so that use this atomic operation to operate data object.
Step S15, judges whether this atomic operation needs service data object.
Step S16, if judge that this atomic operation needs service data object, points out user-selected number according to object.If judge that this atomic operation does not need service data object, is directly for further processing.
Step S17, judges that whether this atomic operation is effective, if effectively enter next step, if invalid, returns to step S13, rejudges and whether can obtain next atomic operation, thereby next atomic operation is repeated to above-mentioned processing procedure.
Step S18, is used this atomic operation to generate or Update Table object, returns to step S13 after completing.When judge atomic operation effectively after, use this atomic operation to generate or Update Table object, generate or revised data object after rejudging whether can obtain next atomic operation, thereby next atomic operation is repeated to above-mentioned processing procedure.
For example: at graphics software, draw 2 straight lines, the starting point that then changes second straight line is identical with the terminal of article one straight line, by the flow process of atomic operation storehouse generating run collection, created corresponding operation set.In function storehouse, select this operation set, start reproduction process:
The atomic operation that traversing operation is concentrated.
Find first atomic operation, first atomic operation is picture straight line, does not rely on other data objects, and has correct starting point and terminal numerical value, so the first atomic operation is effective, can directly in graphics software, draw.
Find second atomic operation, second atomic operation is identical with first atomic operation, and difference is that starting point is different with terminal, so also can draw in graphics software.
Graphics software has been drawn two straight lines by the first and second atomic operations, finds the 3rd atomic operation, and because the 3rd atomic operation is to revise straight line starting point, function storehouse reminding user selects to need the data object of modification.When user has selected after data object, the 3rd atomic operation is revised the starting point of this data object.
Owing to only having 3 atomic operations in operation set, after 3 atomic operations complete, use the flow process of operation set generation or Update Table object to finish.
It should be noted that, in the step shown in the process flow diagram of accompanying drawing, can in the computer system such as one group of computer executable instructions, carry out, and, although there is shown logical order in flow process, but in some cases, can carry out shown or described step with the order being different from herein.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a data processing method of processing for computer graphical, is characterized in that, comprising:
Identification computer graphical operates first of the first data object in processing;
Identification computer graphical operates second of the second data object in processing;
Whether the type that judges described the first data object and described the second data object is identical; And
If it is identical with the type of described the second data object to judge described the first data object, adopt described the first operation to described the second data object executable operations.
2. data processing method according to claim 1, is characterized in that,
Identification computer graphical comprises the first operation of the first data object in processing: obtain the operation set being pre-created, the set of the operation that a plurality of operational group of described operation set are synthetic; From the described operation set being pre-created, obtain the first operation to described the first data object;
Adopt described the first operation to comprise described the second data object executable operations: to adopt described operation set to described the second data object executable operations.
3. data processing method according to claim 2, is characterized in that, adopts described operation set to comprise described the second data object executable operations:
Obtain the atomic operation in described operation set, described atomic operation is the operation of least unit in described operation set;
Judge that whether described atomic operation is effective; And
If it is effective to judge described atomic operation, use described atomic operation to described the second data object executable operations.
4. data processing method according to claim 3, is characterized in that, after the atomic operation in obtaining described operation set, and before judging that whether described atomic operation is effective, described data processing method also comprises:
Judge whether described atomic operation needs to operate described the second data object; And
If judge described atomic operation, need to operate described the second data object, export information, wherein, described information is for pointing out user to select to need described second data object of operation.
5. data processing method according to claim 2, is characterized in that, adopts described operation set to comprise described the second data object executable operations:
Obtain all atomic operations in described operation set;
Judge described in each in described operation set whether atomic operation needs to operate described the second data object;
If judge described atomic operation, need to operate described the second data object, export information, wherein, described information is for pointing out user to select to need described second data object of operation;
Judge successively in described operation set that whether atomic operation is effective described in each; And
Use is judged effective described atomic operation to described the second data executable operations.
6. a data processing equipment of processing for computer graphical, is characterized in that, comprising:
Recognition unit, processes the second operation to the second data object in the first operation of the first data object and the processing of identification computer graphical for identifying computer graphical;
Whether judging unit is identical for judging the type of described the first data object and described the second data object; And
Performance element, when identical for the type judging described the first data object and described the second data object, adopts described the first operation to described the second data object executable operations.
7. data processing equipment according to claim 6, is characterized in that,
Described recognition unit comprises: the first acquisition module, for obtaining the operation set being pre-created, the set of the operation that a plurality of operational group of described operation set are synthetic; The second acquisition module, for obtaining the first operation to described the first data object from the described operation set being pre-created;
Described performance element is also for adopting described operation set to described the second data object executable operations.
8. data processing equipment according to claim 7, is characterized in that, described performance element comprises:
The 3rd acquisition module, for obtaining the atomic operation of described operation set, described atomic operation is the operation of least unit in described operation set;
The first judge module, whether effective for judging described atomic operation; And
Execution module, for judging described atomic operation when effective, is used described atomic operation to described the second data object executable operations.
9. data processing equipment according to claim 8, is characterized in that, described performance element also comprises:
The second judge module, for after obtaining the atomic operation of described operation set, judges whether described atomic operation needs to operate described the second data object; And
Output module, for when judging described atomic operation and need to operate described the second data object, output information, wherein, described information is for pointing out user to select to need described second data object of operation.
10. data processing equipment according to claim 9, is characterized in that,
Described the 3rd acquisition module is also for obtaining all atomic operations of described operation set;
Described the first judge module is also for judging described in each of described operation set whether atomic operation needs to operate described the second data object;
Described output module, for operating described the second data object judging described atomic operation, is exported information, and wherein, described information is for pointing out user to select to need described second data object of operation;
Described the second judge module also for judge successively described operation set described in each atomic operation whether effective; And
Described execution module is also judged effective described atomic operation to described the second data executable operations for using.
CN201310598550.3A 2013-11-22 2013-11-22 Data processing method and data processing device for computer graphic processing Active CN103605851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310598550.3A CN103605851B (en) 2013-11-22 2013-11-22 Data processing method and data processing device for computer graphic processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310598550.3A CN103605851B (en) 2013-11-22 2013-11-22 Data processing method and data processing device for computer graphic processing

Publications (2)

Publication Number Publication Date
CN103605851A true CN103605851A (en) 2014-02-26
CN103605851B CN103605851B (en) 2017-02-08

Family

ID=50124072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310598550.3A Active CN103605851B (en) 2013-11-22 2013-11-22 Data processing method and data processing device for computer graphic processing

Country Status (1)

Country Link
CN (1) CN103605851B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5831633A (en) * 1996-08-13 1998-11-03 Van Roy; Peter L. Designating, drawing and colorizing generated images by computer
CN1629887A (en) * 2003-12-17 2005-06-22 陈明璋 Image building system and method for drawing a good deal of similar compositions

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5831633A (en) * 1996-08-13 1998-11-03 Van Roy; Peter L. Designating, drawing and colorizing generated images by computer
CN1629887A (en) * 2003-12-17 2005-06-22 陈明璋 Image building system and method for drawing a good deal of similar compositions

Also Published As

Publication number Publication date
CN103605851B (en) 2017-02-08

Similar Documents

Publication Publication Date Title
CN109144997A (en) Data correlation method, device and storage medium
JP4872529B2 (en) Reverse engineering support method
CN104536997B (en) Batch data processing method and processing device for client end interface
US20210125144A1 (en) Bill of material conversion method, electronic apparatus and non-transitory computer-readable storage medium
CN103761276A (en) Tree-structure data comparison displaying method and device
CN112417569B (en) Revit primitive labeling method, device, equipment and storage medium
JP7031627B2 (en) Analytical equipment, analysis method, and analysis program
CN111191412A (en) Method, device, storage medium and terminal for editing formula
CN104461548B (en) The adding method and device of code snippet
CN110737439B (en) Equipment control system and method based on rule file
CN104731439A (en) Gesture packaging and task executing method and device
CN103605851A (en) Data processing method and data processing device for computer graphic processing
JP6257254B2 (en) Design support apparatus, design support method, and program
US9747325B2 (en) Duplicate station detection system
CN109508410A (en) A kind of industrial service parametrization configuration searching algorithm
CN103593532B (en) Data processing method and device for drawing
JP6758167B2 (en) Data processing equipment, data processing method and data processing program
CN105740449A (en) Dynamic generation system and method for statistic report
CN101727675A (en) System and method for dynamically previewing insertion positions of graphic elements
CN111208996A (en) Machine vision software development method and vision software development platform
JP2020149300A (en) Device, method, and program for displaying graphs
CN113792247B (en) Method, apparatus, device and medium for generating functional flow chart based on code characteristics
JP7063291B2 (en) Analytical equipment, analysis method, and analysis program
CN112346619B (en) Configuration software control method and device
JP5332443B2 (en) Component integration management apparatus, component integration management method, and component integration management program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant