CN103605851B - 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 PDFInfo
- Publication number
- CN103605851B CN103605851B CN201310598550.3A CN201310598550A CN103605851B CN 103605851 B CN103605851 B CN 103605851B CN 201310598550 A CN201310598550 A CN 201310598550A CN 103605851 B CN103605851 B CN 103605851B
- Authority
- CN
- China
- Prior art keywords
- data object
- atomic
- data
- atomic operation
- judging
- 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.)
- Active
Links
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
Technical field
The present invention relates to data processing field, in particular to a kind of data processing for computer graphical processing
Method and apparatus.
Background technology
With graphics software modern industry extensive application, such as CAD(Computer Aided Design, computer
Computer Aided Design)Software.The content drawn required for software and process also is being continuously increased, and some projects need up to a hundred or even thousands of
Part drawing just can be realized.When user is operated, can there are many complexity but identical step, for example:User needs
Straight line and a multi-section-line are carried out by some identical modifications or increase operation process, these operations are required for carrying out hand
Dynamic process, the operation for wherein same type needs to re-start operation, then can waste a lot of time and efforts.Due to
In the data handling procedure of computer graphical processing, user needs to repeat the operation of same type, greatly reduces user
Operating efficiency, waste time and efforts.
For in prior art, in the data handling procedure of computer graphical processing, user's needs repeat mutually similar
The problem of the operation of type, not yet proposes effective solution at present.
Content of the invention
Present invention is primarily targeted at providing a kind of data processing method for computer graphical processing and device, with
Solve in prior art in the data handling procedure of computer graphical processing, user needs to repeat the operation of same type
Problem.
To achieve these goals, according to an aspect of the invention, it is provided a kind of for computer graphical processing
Data processing method.Included for the data processing method of computer graphical processing according to the present invention:Identification computer graphical
The first operation to the first data object in process;The second operation to the second data object in identification computer graphical processing;
Judge whether the type of the first data object and the second data object is identical;And if it is judged that the first data object and second
The type of data object is identical, then adopt the first operation to execute operation to the second data object.
Further, in identification computer graphical processing, the first operation of the first data object is included:Obtain and create in advance
The operation set built, the set of the operation of operation set multiple operational group synthesis;Obtain from the operation set being pre-created to the first number
The first operation according to object;Using the first operation, the second data object execution operation is included:Using operation set to the second data
Object executes operation.
Further, using operation set, the second data object execution operation is included:Obtain the atomic operation in operation set,
Atomic operation is the operation of least unit in operation set;Judge whether atomic operation is effective;And if it is judged that atomic operation
Effectively, then using atomic operation, operation is executed to the second data object.
Further, after the atomic operation in obtaining operation set, and before judging whether atomic operation is effective,
Data processing method also includes:Judge atomic operation the need of operating the second data object;And if it is judged that atom behaviour
Need to operate the second data object, then export information, wherein, information is used for pointing out user to select to need operation
Second data object.
Further, using operation set, the second data object execution operation is included:Obtain all atoms in operation set
Operation;Judge each of operation set atomic operation the need of operating the second data object;If it is judged that atomic operation
Need to operate the second data object, then export information, wherein, information is used for pointing out user to select to need the of operation
Two data objects;Judge whether each of operation set atomic operation is effective successively;And using judging effective atom behaviour
Second data of opposing executes operation.
To achieve these goals, according to a further aspect in the invention, there is provided a kind of for computer graphical processing
Data processing equipment.Included for the data processing equipment of computer graphical processing according to the present invention:Recognition unit, for knowing
Operate to the first of the first data object in other computer graphical processing and identify in computer graphical processing to the second data pair
Second operation of elephant;Judging unit, whether the type for judging the first data object and the second data object is identical;And hold
Row unit, for when the type judging the first data object and the second data object is identical, operating to second using first
Data object executes operation.
Further, recognition unit includes:First acquisition module, for obtaining the operation set being pre-created, operation set is many
The set of the operation of individual operational group synthesis;Second acquisition module, for obtaining to the first data from the operation set being pre-created
First operation of object;Performance element is additionally operable to execute operation using operation set to the second data object.
Further, performance element includes:3rd acquisition module, for obtaining the atomic operation in operation set, atom is grasped
Operation as least unit in operation set;First judge module, whether effective for judging atomic operation;And execution mould
Block, for when judging that atomic operation is effective, executing operation using atomic operation to the second data object.
Further, performance element also includes:Second judge module, for obtain operation set in atomic operation it
Afterwards, judge atomic operation the need of operating the second data object;And output module, for judging atomic operation needs
When operating the second data object, export information, wherein, information is used for the second number pointing out user to select to need operation
According to object.
Further, the 3rd acquisition module is additionally operable to obtain all atomic operations in operation set;First judge module is also
For judging each of operation set atomic operation the need of operating the second data object;Output module is used for judging
Atomic operation needs to operate the second data object, then export information, and wherein, information is used for pointing out user to select needs
Second data object of operation;Second judge module is additionally operable to judge whether each of operation set atomic operation is effective successively;
And performing module is also used for judging that effective atomic operation executes operation to the second data.
By the present invention, using the data processing method for computer graphical processing, when the first data object and second
When the type of data object is identical, operation is executed by first operation the second data object, thus holding to the second data object
During row operation, minimizing repeats, and solves in prior art in the data handling procedure of computer graphical processing, Yong Huxu
The problem of the operation of same type to be repeated, and then reached the operation to same type without the effect re-operating.
Brief description
The accompanying drawing constituting the part of the application is used for providing a further understanding of the present invention, the schematic reality of the present invention
Apply example and its illustrate, for explaining the present invention, not constituting inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the structural representation of the data processing equipment for computer graphical processing according to a first embodiment of the present invention
Figure;
Fig. 2 is the structural representation of the data processing equipment for computer graphical processing according to a second embodiment of the present invention
Figure
Fig. 3 is the flow chart of the data processing method for computer graphical processing according to a first embodiment of the present invention;
Fig. 4 is the flow chart of the data processing method for computer graphical processing according to a second embodiment of the present invention;
Fig. 5 is the flow chart of operation set creation method according to embodiments of the present invention;And
Fig. 6 is the flow chart of the use operation set according to embodiments of the present invention method of operating to data object.
Specific embodiment
It should be noted that in the case of not conflicting, the embodiment in the application and the feature in embodiment can phases
Mutually combine.To describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention it is clear that described embodiment is only
The embodiment of a present invention part, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of not making creative work, all should belong to the model of present invention protection
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " it is etc. for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that such use
Data can exchange in the appropriate case, so that embodiments of the invention described herein.Additionally, term " inclusion " and " tool
Have " and their any deformation it is intended that covering non-exclusive comprising, for example, contain series of steps or unit
Process, method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include unclear
Listing to Chu or for these processes, method, product or the intrinsic other steps of equipment or unit.
Embodiments provide a kind of data processing equipment for computer graphical processing, this device can pass through
Its function realized by computer equipment.
Fig. 1 is the structural representation of the data processing equipment for computer graphical processing according to a first embodiment of the present invention
Figure.As shown in figure 1, the data processing equipment that this is used for computer graphical processing includes recognition unit 10, judging unit 20 and holds
Row unit 30.
Recognition unit 10 is used for identifying the first operation and the identification calculating to the first data object in computer graphical processing
The second operation to the second data object in machine graphics process.
Computer graphical processing can be the process that in computer, graphics software carries out graphics process, and wherein graphics software can
To be the graphics softwares such as such as CAD software.First data object can be a Drawing Object, such as circle, straight line etc. it is also possible to
It is the object of multiple Drawing Object combinations, such as bilinear etc..The first operation to the first data object can be drawn
The operating process of the first data object, for example, draw circle, draw straight line etc. or the operation of modification object properties, for example, change
The starting point of straight line or terminal etc..First operation can be the atomic operation in graphics software, and atomic operation is to be provided by software
Minimum operation, for example:Draw circle, setting-out etc., atomic operation includes the necessary parameter of this operation.Certain first operation
Can be one group of combination operation, such as operation set etc..Operation set is to be combined by multiple atomic operations with parameter
The set of one operation.Operation set can directly be patterned software using the operation that simultaneously reappearing user needs.When the first data pair
As multiple Drawing Objects combination object when, first operation can be the operation set that multiple Drawing Objects are operated.
For example, when user needs 2 straight lines of picture, the operation with regard to drawing 2 straight lines being pre-created can first be identified from function library
Collection, operates by the execution of this function collection is corresponding.The first operation to the first data object can be previously generated by atom
The operation set of operative combination or user enter to being pre-created the attribute generating related atomic operation in operation set
The operation set being formed after row modification.
Second operation of the second data object can be the operation after the first operation to the first data object, permissible
It is the operation that user executes to data object.For example, when user needs 2 straight lines of picture, wherein, the terminal of straight line and
Article two, the starting point of straight line is identical, then the second data object is 2 straight lines, by identifying that this operation can be with direct access and second
Data object is first operation to picture for first data of same type, and for example bilinear operation set is right using the first operation
Second data object is operated.
Whether judging unit 20 is identical for the type judging the first data object and the second data object.
After identifying the second operation to the first of the first data object the operation with to the second data object, judge the
Whether the type of one data object and the second data object is identical, in order to directly be executed to the second data object with the first operation
Operation, from without the operation that the second data object execution is repeated.For example, when the first data object is bilinear, second
Data object is 2 straight lines, because the first data object and the second data object are all straight line, then can be using being pre-created
To the first of the first data object the operation or the first operation to the first data object of prestoring is to the second data pair
As executing operation.
Performance element 30 is used for, when the type judging the first data object and the second data object is identical, adopting first
Operation executes operation to the second data object.
When the type judging the first data object and the second data object is identical, then can using this first operate into
Row generate or modification the second data object, when first operates as atomic operation, generated using this atomic operation or
Change the second data object.When first operates as operation set, operation is executed to the second data object using this operation set, thus
Can avoid, when to the second data object execution operation, repeating the operation of some identicals.
Fig. 2 is the structural representation of the data processing equipment for computer graphical processing according to a second embodiment of the present invention
Figure.The data processing equipment for computer graphical processing of this embodiment can be as above-described embodiment for computer graphic
A kind of preferred embodiment of the data processing equipment that shape is processed.As shown in Fig. 2 this is used at the data of computer graphical processing
Reason device includes recognition unit 10, judging unit 20 and performance element 30, and wherein, recognition unit 10 includes the first acquisition module
101 and second acquisition module 102.Judging unit 20 is same with judging unit 20 function phase shown in Fig. 1 not to be repeated here.
First acquisition module 101 is used for obtaining the operation set being pre-created, the operation of operation set multiple operational group synthesis
Set.
Operation set is the set of the operation being combined by multiple atomic operations with parameter.Operation set can be direct
It is patterned software using the operation that simultaneously reappearing user needs.Obtaining the operation set being pre-created can make the function from graphics software
The operation set previously generating is obtained, wherein, function library refers to the set of all operations collection in storehouse, in this function library, Yong Huke
To increase new operation set or to delete existing operation set.Wherein, the generation of operation set and the embodiment of the present invention by based on
The generating mode of the operation set in the data processing method of calculation machine graphics process is identical.
Second acquisition module 102 is used for obtaining the first operation to the first data object from the operation set being pre-created.
After the operation set being pre-created, due to including multiple atomic operations in operation set, collected using operation work
When, in this operation set, not all of atomic operation can use, and therefore obtains from the operation set being pre-created to
First operation of one data object can be one of operation set atomic operation, or the atomic operation of a part, certainly,
It can be all of operation.
Performance element 30 is additionally operable to execute operation using operation set to the second data object.
If it is judged that the type of the first data object and the second data object is identical, then adopt operation set to the second data
Object is operated, for example, when the second data object is 2 straight lines of picture, can be directly double using the entitled picture being pre-created
The operation set of line executes operation to the second data object, and the data object in order to user is drawn with 2 straight lines executes operation.
Preferably, performance element 30 includes:3rd acquisition module, the first judge module and performing module.
3rd acquisition module is used for obtaining the atomic operation in operation set, and atomic operation is the behaviour of least unit in operation set
Make.
After atomic operation in acquisition operation set can be this operation set in traversal function library, obtain in operation set
Each atomic operation, in order to whether effectively to judge this atomic operation, such that it is able to judge whether using this atomic operation logarithm
The operation being generated according to object or being changed.
First judge module is used for judging whether atomic operation is effective.
After atomic operation in obtaining operation set, whether effectively to judge this atomic operation, when the atomic operation obtaining
When invalid, then can obtain the next atomic operation in operation set, and whether rejudge next atomic operation effective.?
When judging that this atomic operation is effective, then can operate using this atomic operation is corresponding to data object execution.
Performing module is used for, when judging that atomic operation is effective, executing behaviour using atomic operation to the second data object
Make.
After judging whether atomic operation is effective, when judging that atomic operation is effective, then using this atomic operation logarithm
Execute operation according to object, for example, it is desired to draw 2 straight lines in graphics software, then change the starting point and first of Article 2 straight line
The terminal of bar straight line is identical, and in function library, has created corresponding operation set, selects this operation set in function library.
Get the first atomic operation, this first atomic operation is picture straight line, and is independent of other data objects, and have correct
Beginning and end numerical value, so this first atomic operation effectively, can be drawn in software.Using this atomic operation to data
After object execution operation, the next atomic operation in operation set can also be obtained, repetition above step, thus realize right
Each atomic operation is processed.
Preferably, performance element 30 also includes:Second judge module and output module.
After second judge module is used for the atomic operation in obtaining operation set, judge atomic operation the need of operation
Second data object.
After atomic operation in obtaining operation set, this atomic operation can also be judged the need of peration data pair
As user-selected number can be pointed out if necessary to be operated accordingly according to object.
Output module is used for, when judging that atomic operation needs to operate the second data object, exporting information, wherein,
Information is used for pointing out user to select to need the second data object of operation.
When judging that atomic operation needs peration data object, then export information, to point out user to select needs
Data object.
Preferably, the 3rd acquisition module is additionally operable to obtain all atomic operations in operation set.
After the atomic operation in operation set, obtain all atomic operations in operation set, in order to in operation set
Each atomic operation judged and processed.
First judge module is additionally operable to judge each of operation set atomic operation the need of operating the second data pair
As.
After all atomic operations in obtaining operation set, judge each atomic operation the need of operation second number
According to object, in order to point out user-selected number to be operated accordingly according to object.
Output module is used for judging that atomic operation needs to operate the second data object, then export information, wherein,
Information is used for pointing out user to select to need the second data object of operation.
After judging each atomic operation the need of operating the second data object, for needing to operate the second data
The atomic operation of object, needs to export information, the data object needing to point out user to select.
Second judge module is additionally operable to judge whether each of operation set atomic operation is effective successively.
After being the atomic operation in obtaining operation set, whether effectively to judge this atomic operation, former when obtain
When child-operation is invalid, then can obtain the next atomic operation in operation set, and whether rejudge next atomic operation
Effectively.When judging that this atomic operation is effective, then can operate using this atomic operation is corresponding to data object execution.
Performing module is also used for judging that effective atomic operation executes operation to the second data.
After judging whether each of operation set atomic operation is effective successively, given birth to using effective atomic operation
Become or modification data object.
The embodiment of the present invention additionally provides a kind of data processing method for computer graphical processing.The method operates in
On computer equipment.It should be noted that the data processing method for computer graphical processing of the embodiment of the present invention is permissible
Executed by the data processing equipment for computer graphical processing that the embodiment of the present invention is provided, the embodiment of the present invention
For computer graphical processing data processing equipment can be used for execute the embodiment of the present invention provided for computer
The data processing method of graphics process.
Fig. 3 is the flow chart of the data processing method for computer graphical processing according to a first embodiment of the present invention.
As shown in figure 3, the data processing method that this is used for computer graphical processing to include step as follows:
Step S101, the first operation to the first data object in identification computer graphical processing.
Computer graphical processing can be the process that in computer, graphics software carries out graphics process, and wherein graphics software can
To be the graphics softwares such as such as CAD software.First data object can be a Drawing Object, such as circle, straight line etc. it is also possible to
It is the object of multiple Drawing Object combinations, such as bilinear etc..The first operation to the first data object can be drawn
The operating process of the first data object, for example, draw circle, draw straight line etc. or the operation of modification object properties, for example, change
The starting point of straight line or terminal etc..First operation can be the atomic operation in graphics software, and atomic operation is to be provided by software
Minimum operation, for example:Draw circle, setting-out etc., atomic operation includes the necessary parameter of this operation.Certain first operation
Can be one group of combination operation, such as operation set etc..Operation set is to be combined by multiple atomic operations with parameter
The set of one operation.Operation set can directly be patterned software using the operation that simultaneously reappearing user needs.When the first data pair
As multiple Drawing Objects combination object when, first operation can be the operation set that multiple Drawing Objects are operated.
For example, when user needs 2 straight lines of picture, the operation with regard to drawing 2 straight lines being pre-created can first be identified from function library
Collection, operates by the execution of this function collection is corresponding.The first operation to the first data object can be previously generated by atom
The operation set of operative combination or user enter to being pre-created the attribute generating related atomic operation in operation set
The operation set being formed after row modification.
Step S102, the second operation to the second data object in identification computer graphical processing.
Second operation of the second data object can be the operation after the first operation to the first data object, permissible
It is the operation that user executes to data object.For example, when user needs 2 straight lines of picture, wherein, the terminal of straight line and
Article two, the starting point of straight line is identical, then the second data object is 2 straight lines, by identifying that this operation can be with direct access and second
Data object is first operation to picture for first data of same type, and for example bilinear operation set is right using the first operation
Second data object is operated.
Step S103, judges whether the type of the first data object and the second data object is identical.
After identifying the second operation to the first of the first data object the operation with to the second data object, judge the
Whether the type of one data object and the second data object is identical, in order to directly be executed to the second data object with the first operation
Operation, from without the operation that the second data object execution is repeated.For example, when the first data object is bilinear, second
Data object is 2 straight lines, because the first data object and the second data object are all straight line, then can be using being pre-created
To the first of the first data object the operation or the first operation to the first data object of prestoring is to the second data pair
As executing operation.
Step S104, if it is judged that the type of the first data object and the second data object is identical, then adopts the first behaviour
Second data object of opposing executes operation.
When the type judging the first data object and the second data object is identical, then can using this first operate into
Row generate or modification the second data object, when first operates as atomic operation, generated using this atomic operation or
Change the second data object.When first operates as operation set, operation is executed to the second data object using this operation set, thus
Can avoid, when to the second data object execution operation, repeating the operation of some identicals.
According to embodiments of the present invention, when the first data object is identical with the type of the second data object, grasp by first
Make the second data object and execute operation, thus when to the second data object execution operation, minimizing repeats, and solves existing
In technology in the data handling procedure of computer graphical processing, user needs to repeat the problem of the operation of same type,
And then reached the operation to same type without the effect re-operating.
Fig. 4 is the flow chart of the data processing method for computer graphical processing according to a second embodiment of the present invention.
The data processing method for computer graphical processing of this embodiment can be as above-described embodiment for computer graphical
A kind of preferred embodiment of the data processing method processing.As shown in figure 4, this is used for the data processing of computer graphical processing
It is as follows that method includes step:
Step S201, obtains the operation set being pre-created, and operation set is the set of the operation of multiple operational group synthesis.
Operation set is the set of the operation being combined by multiple atomic operations with parameter.Operation set can be direct
It is patterned software using the operation that simultaneously reappearing user needs.Obtaining the operation set being pre-created can make the function from graphics software
The operation set previously generating is obtained, wherein, function library refers to the set of all operations collection in storehouse, in this function library, Yong Huke
To increase new operation set or to delete existing operation set.As shown in figure 5, the operation set of the embodiment of the present invention can walk below
Rapid generation:
Step S1, creates a new operation set in function library.Atomic operation can be added in this new operation set
To form the set of atomic operation.
Step S2, selects the atomic operation needing to use in atomic operation storehouse.Atomic operation can be from atomic operation
Storehouse selects, and wherein, atomic operation storehouse is the set storehouse of all atomic operations, and atomic operation storehouse is carried out according to the type of atomic operation
Sorting placement, includes the set storehouse of all of classified atomic operation that graphics software is supported, for example, draws storehouse, repaiies
Change storehouse, annotation repository etc., in each set storehouse, include all atomic operations of the type.By putting to the classification of atomic operation
Put, facilitate user to quickly find the atomic operation of needs.
Step S3, is atomic operation |input paramete.Because atomic operation all carries necessary parameter, therefore selecting to need
Atomic operation after, can as needed to atomic operation input corresponding parameter, for example, circle radius, the starting point of straight line
Parameter with attributes such as terminals.Certainly, after having created new operation set, for the atomic operation in operation set parameter also
Can modify such that it is able to meet the different needs of user, flexible Application.
Step S4, the atomic operation after |input paramete is stored in new operation set.After to atomic operation |input paramete,
This atomic operation is stored in operation set, thus completing the interpolation of the atomic operation to operation set.
Step S5, judges whether to need to continue to add atomic operation.If necessary to continue to add atomic operation, then return step
Rapid S2 adds atomic operation again;If not needing to add atomic operation, complete the establishment of new operation set.When having added one
After individual atomic operation, needing to judge whether atomic operation also to be added, if also needing to add atomic operation, can return
Step S2 adds the atomic operation of needs again;If not needing to add atomic operation, the establishment of operation set completes.
Step S6, function library preserves operation set.After the establishment of operation set completes, newly-generated behaviour is preserved by function library
Work collects, to facilitate user can reuse the operation set of generation after restarting software.
For example, 2 straight lines are drawn in software, the starting point then changing Article 2 straight line is identical with the terminal of straight line.Right
This operation generates corresponding operation set needs the process carrying out to include:
An entitled operation set drawing two-wire is created in function library.
Draw the first atomic operation taking and creating new drafting straight line storehouse from atomic operation storehouse, first former for this
Child-operation adds the numerical value of straight line beginning and end, then puts into this second atom in operation set.
Continue to draw, from atomic operation storehouse, the second atomic operation taking and creating new drafting straight line storehouse, for this
Two atomic operations add the numerical value of Article 2 straight line beginning and end, equally put into this second atom in operation set.
Take and create the 3rd atomic operation of new modification straight line attribute from the modification storehouse in atomic operation storehouse, this 3rd
To be acted on being specified by user when reusing three atomic operations to liking of atomic operation, when creating operation set need not be
Its specified data object.It is similarly this 3rd atomic operation setting attribute to be changed and property value, be then placed in operation set.
So far a complete operation set has created and has completed, and can see this operation set, operation set in function library
In each atomic operation and determinant attribute can also check, facilitate user to change 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, due to including multiple atomic operations in operation set, collected using operation work
When, in this operation set, not all of atomic operation can use, and therefore obtains from the operation set being pre-created to
First operation of one data object can be one of operation set atomic operation, or the atomic operation of a part, certainly,
It can be all of operation.
Step S203, the second operation to the second data object in identification computer graphical processing.
Second operation of the second data object can be the operation after the first operation to the first data object, permissible
It is the operation that user executes to data object.For example, when user needs 2 straight lines of picture, wherein, the terminal of straight line and
Article two, the starting point of straight line is identical, then the second data object is 2 straight lines, by identifying that this operation can be with direct access and second
Data object is first operation to picture for first data of same type, and for example bilinear operation set is right using the first operation
Second data object is operated.
Step S204, judges whether the type of the first data object and the second data object is identical.
After identifying the second operation to the first of the first data object the operation with to the second data object, judge the
Whether the type of one data object and the second data object is identical, in order to directly be executed to the second data object with the first operation
Operation, from without the operation that the second data object execution is repeated.For example, when the first data object is bilinear, second
Data object is 2 straight lines, because the first data object and the second data object are all straight line, then can be using being pre-created
To the first of the first data object the operation or the first operation to the first data object of prestoring is to the second data pair
As executing operation.
Step S205, if it is judged that the type of the first data object and the second data object is identical, then adopts operation set
Operation is executed to the second data object.
If it is judged that the type of the first data object and the second data object is identical, then adopt operation set to the second data
Object is operated, for example, when the second data object is 2 straight lines of picture, can be directly double using the entitled picture being pre-created
The operation set of line executes operation to the second data object, and the data object in order to user is drawn with 2 straight lines executes operation.
Preferably, step S205 can be realized by following steps:
Step S2051, obtains the atomic operation in operation set, and atomic operation is the operation of least unit in operation set.
After atomic operation in acquisition operation set can be this operation set in traversal function library, obtain in operation set
Each atomic operation, in order to whether effectively to judge this atomic operation, such that it is able to judge whether using this atomic operation logarithm
The operation being generated according to object or being changed.
Step S2052, judges whether atomic operation is effective.
After atomic operation in obtaining operation set, whether effectively to judge this atomic operation, when the atomic operation obtaining
When invalid, then can obtain the next atomic operation in operation set, and whether rejudge next atomic operation effective.?
When judging that this atomic operation is effective, then can operate using this atomic operation is corresponding to data object execution.
Step S2053, if it is judged that atomic operation effectively, then executes behaviour using atomic operation to the second data object
Make.
After judging whether atomic operation is effective, when judging that atomic operation is effective, then using this atomic operation logarithm
Execute operation according to object, for example, it is desired to draw 2 straight lines in graphics software, then change the starting point and first of Article 2 straight line
The terminal of bar straight line is identical, and in function library, has created corresponding operation set, selects this operation set in function library.
Get the first atomic operation, this first atomic operation is picture straight line, and is independent of other data objects, and have correct
Beginning and end numerical value, so this first atomic operation effectively, can be drawn in software.Using this atomic operation to data
After object execution operation, the next atomic operation in operation set can also be obtained, repetition above step, thus realize right
Each atomic operation is processed.
Preferably, after step S2051, and before step S2052, data processing method also includes following step
Suddenly:
Step 1, judges atomic operation the need of operating the second data object.
After atomic operation in obtaining operation set, this atomic operation can also be judged the need of peration data pair
As user-selected number can be pointed out if necessary to be operated accordingly according to object.
Step 2, if it is judged that atomic operation needs to operate the second data object, then exports information, wherein, points out
Information is used for pointing out user to select to need the second data object of operation.
When judging that atomic operation needs peration data object, then export information, to point out user to select needs
Data object.
Preferably, step S205 can also comprise the following steps:
Step S251, obtains all atomic operations in operation set.
After the atomic operation in operation set, obtain all atomic operations in operation set, in order to in operation set
Each atomic operation judged and processed.
Step S252, judges each of operation set atomic operation the need of operating the second data object.
After all atomic operations in obtaining operation set, judge each atomic operation the need of operation second number
According to object, in order to point out user-selected number to be operated accordingly according to object.
Step S253, if it is judged that atomic operation needs to operate the second data object, then exports information, wherein,
Information is used for pointing out user to select to need the second data object of operation.
After judging each atomic operation the need of operating the second data object, for needing to operate the second data
The atomic operation of object, needs to export information, the data object needing to point out user to select.
Step S254, judges whether each of operation set atomic operation is effective successively.
After being the atomic operation in obtaining operation set, whether effectively to judge this atomic operation, former when obtain
When child-operation is invalid, then can obtain the next atomic operation in operation set, and whether rejudge next atomic operation
Effectively.When judging that this atomic operation is effective, then can operate using this atomic operation is corresponding to data object execution.
Step S255, using judging that effective atomic operation executes operation to the second data.
After judging whether each of operation set atomic operation is effective successively, given birth to using effective atomic operation
Become or modification data object.
It is described to being generated using operation machine in the embodiment of the present invention or changing data object below according to Fig. 6, such as
Shown in Fig. 6,
Step S11, one of selection function storehouse operation set.By operation set to data to as executing operation, Ke Yishi
One function collection is selected by user, computer identifies this operation set to be processed accordingly.
Step S12, the atomic operation that traversing operation is concentrated.After one of selection function storehouse operation set, identification behaviour
Make to concentrate all atomic operations.
Step S13, judges whether to obtain next atomic operation, without then directly terminating, if there are then entering
Enter next step.Judge whether that can obtain next atomic operation can be to judge whether also have untreated atom in operation set
Operation.Due to, when using operation set generation or processing data object, needing each atomic operation to be judged and locates
Reason.After having processed an atomic operation, before obtaining next atomic operation, need to judge whether to obtain next former
Child-operation, if bought the atomic operation being judged and being processed in need, using the place to data object for the operation set
Reason flow process terminates.
Step S14, obtains atomic operation.After judging to get next atomic operation, obtain corresponding
Atomic operation, in order to be operated to data object using this atomic operation.
Step S15, judges this atomic operation the need of peration data object.
Step S16, if it is determined that this atomic operation needs peration data object, then prompting user-selected number is according to object.As
Fruit judges that this atomic operation does not need peration data object to be then directly for further processing.
Whether effectively step S17, judge this atomic operation, if being efficiently entering next step, if invalid, return to step
S13, rejudges and whether can obtain next atomic operation, thus carrying out repeating the above to next atomic operation
Journey.
Step S18, is generated using this atomic operation or is changed data object, after the completion of return to step S13.When sentencing
Break atomic operation effective after, then generated or changed data object using this atomic operation, generate or changed
Rejudging whether can obtain next atomic operation after data object, thus on next atomic operation is repeated
State processing procedure.
For example:Draw 2 straight lines in graphics software, then change the starting point of Article 2 straight line and the terminal phase of straight line
Same, in the flow process that operation set is generated by atomic operation storehouse, create corresponding operation set.Select this in function library
Operation set, starts reproduction process:
The atomic operation that traversing operation is concentrated.
Find first atomic operation, first atomic operation is picture straight line, is independent of other data objects, and just has
True beginning and end numerical value, so the first atomic operation is effectively, can directly draw in graphics software.
Find second atomic operation, second atomic operation is identical with first atomic operation, difference be starting point and
Terminal is different, so can also draw in graphics software.
Graphics software has drawn two straight lines by the first and second atomic operations, finds the 3rd atomic operation, by
It is modification straight line starting point in the 3rd atomic operation, function library reminds user to select to need the data object of modification.When user's choosing
After having selected data object, the 3rd atomic operation changes the starting point of this data object.
Due to only having 3 atomic operations in operation set, after the completion of 3 atomic operations, generated using operation set or repair
The flow process changing data object terminates.
It should be noted that the step that illustrates of flow process in accompanying drawing can be in such as one group of computer executable instructions
Execute in computer system, and although showing logical order in flow charts, but in some cases, can be with not
It is same as the step shown or described by order execution herein.
Obviously, those skilled in the art should be understood that each module of the above-mentioned present invention or each step can be with general
Computing device realizing, they can concentrate on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the executable program code of computing device, it is thus possible to they are stored
To be executed by computing device in the storage device, or they be fabricated to each integrated circuit modules respectively, or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention be not restricted to any specific
Hardware and software combines.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.
Claims (8)
1. a kind of data processing method for computer graphical processing is it is characterised in that include:
The first operation to the first data object in identification computer graphical processing;
The second operation to the second data object in identification computer graphical processing;
Judge whether described first data object is identical with the type of described second data object;And
If it is judged that described first data object is identical with the type of described second data object, then adopt described first operation
Operation is executed to described second data object,
In identification computer graphical processing, the first operation of the first data object is included:Obtain the operation set being pre-created, institute
State the set that operation set is the operation of multiple operational group synthesis;Obtain from the described operation set being pre-created to the described first number
The first operation according to object;
Using the described first operation, described second data object execution operation is included:Using described operation set to the described second number
Execute operation according to object.
2. data processing method according to claim 1 is it is characterised in that adopt described operation set to described second data
Object execution operation includes:
Obtain the atomic operation in described operation set, described atomic operation is the operation of least unit in described operation set;
Judge whether described atomic operation is effective;And
If it is judged that described atomic operation effectively, then executes operation using described atomic operation to described second data object.
3. data processing method according to claim 2 it is characterised in that obtain described operation set in atomic operation
Afterwards, and before judging whether described atomic operation is effective, described data processing method also includes:
Judge described atomic operation the need of described second data object of operation;And
If it is judged that described atomic operation needs to operate described second data object, then export information, wherein, described carry
Show that information is used for described second data object pointing out user to select needs operation.
4. data processing method according to claim 1 is it is characterised in that adopt described operation set to described second data
Object execution operation includes:
Obtain all atomic operations in described operation set;
Judge the described atomic operation of each of described operation set the need of described second data object of operation;
If it is judged that described atomic operation needs to operate described second data object, then export information, wherein, described carry
Show that information is used for described second data object pointing out user to select needs operation;
Judge whether the described atomic operation of each of described operation set is effective successively;And
Using judging that effectively described atomic operation executes operation to described second data.
5. a kind of data processing equipment for computer graphical processing is it is characterised in that include:
Recognition unit, for identifying the first operation and the identification computer graphical to the first data object in computer graphical processing
The second operation to the second data object in process;
Whether judging unit is identical with the type of described second data object for judging described first data object;And
Performance element, for when judging that described first data object is identical with the type of described second data object, adopting
Described first operation executes operation to described second data object,
Wherein, described recognition unit includes:First acquisition module, for obtaining the operation set being pre-created, described operation set is
The set of the operation of multiple operational group synthesis;Second acquisition module, for obtaining to institute from the described operation set being pre-created
State the first operation of the first data object;
Described performance element is additionally operable to execute operation using described operation set to described second data object.
6. data processing equipment according to claim 5 is it is characterised in that described performance element includes:
3rd acquisition module, for obtaining the atomic operation in described operation set, described atomic operation be described operation set in
The operation of subsection;
First judge module, whether effective for judging described atomic operation;And
Performing module, for when judging that described atomic operation is effective, using described atomic operation to described second data pair
As executing operation.
7. data processing equipment according to claim 6 is it is characterised in that described performance element also includes:
Second judge module, for, after obtaining the atomic operation in described operation set, judging whether described atomic operation needs
Operate described second data object;And
Output module, for when judging that described atomic operation needs to operate described second data object, exporting information,
Wherein, described information is used for pointing out user to select to need described second data object of operation.
8. data processing equipment according to claim 7 it is characterised in that
Described 3rd acquisition module is additionally operable to obtain all atomic operations in described operation set;
Described first judge module is additionally operable to judge the described atomic operation of each of described operation set the need of operation institute
State the second data object;
Described output module is used for judging that described atomic operation needs to operate described second data object, then output prompting letter
Breath, wherein, described information is used for pointing out user to select to need described second data object of operation;
Described second judge module is additionally operable to judge whether the described atomic operation of each of described operation set is effective successively;And
Described performing module is also used for judging that effectively described atomic operation executes operation to described second data.
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 CN103605851A (en) | 2014-02-26 |
CN103605851B true 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)
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 |
-
2013
- 2013-11-22 CN CN201310598550.3A patent/CN103605851B/en active Active
Patent Citations (2)
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 |
---|---|
CN103605851A (en) | 2014-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105389402B (en) | A kind of ETL method and apparatus towards big data | |
CN107909107A (en) | Fiber check and measure method, apparatus and electronic equipment | |
CN108628947A (en) | A kind of business rule matched processing method, device and processing equipment | |
CN103761276B (en) | Methods of exhibiting and device that a kind of tree structure data compares | |
EP2186025B1 (en) | Configuring of intelligent electronic device | |
US20100318476A1 (en) | Rule processing method and apparatus providing automatic user input selection | |
CN103761249B (en) | Data lead-in method and system based on Data Matching | |
EP3427163B1 (en) | Node-centric analysis of dynamic networks | |
Jiang et al. | Learning to solve 3-D bin packing problem via deep reinforcement learning and constraint programming | |
CN106909543A (en) | The method for mode matching and device of a kind of regulation engine | |
CN110473528A (en) | Audio recognition method and device, storage medium and electronic device | |
CN112417569B (en) | Revit primitive labeling method, device, equipment and storage medium | |
JP7031627B2 (en) | Analytical equipment, analysis method, and analysis program | |
CN107590592A (en) | Job dependence relation method for expressing, operation displaying and dispatch control method and device | |
CN104317502B (en) | The edit methods and editing device of picture | |
CN112199407B (en) | Data packet ordering method, device, equipment and storage medium | |
CN114239237A (en) | Power distribution network simulation scene generation system and method supporting digital twinning | |
CN103605851B (en) | Data processing method and data processing device for computer graphic processing | |
CN107342857A (en) | Group technology and device | |
CN116227566A (en) | Calculation graph visualization method, device, equipment and medium applied to AI chip | |
CN106528141A (en) | Task sweep-out method and system | |
CN107292841A (en) | Medelling image processing techniques | |
CN104461549B (en) | The arrangement display methods and device of graphical interfaces | |
CN103593532B (en) | Data processing method and device for drawing | |
CN109508410A (en) | A kind of industrial service parametrization configuration searching algorithm |
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 |