CN109117234A - The customized cartoon implementing method of system control and electronic equipment based on educational system - Google Patents

The customized cartoon implementing method of system control and electronic equipment based on educational system Download PDF

Info

Publication number
CN109117234A
CN109117234A CN201810969664.7A CN201810969664A CN109117234A CN 109117234 A CN109117234 A CN 109117234A CN 201810969664 A CN201810969664 A CN 201810969664A CN 109117234 A CN109117234 A CN 109117234A
Authority
CN
China
Prior art keywords
animation
animated type
system control
customized
resealed
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.)
Pending
Application number
CN201810969664.7A
Other languages
Chinese (zh)
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.)
Shenzhen Dianmao Technology Co Ltd
Original Assignee
Shenzhen Dianmao 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 Shenzhen Dianmao Technology Co Ltd filed Critical Shenzhen Dianmao Technology Co Ltd
Priority to CN201810969664.7A priority Critical patent/CN109117234A/en
Publication of CN109117234A publication Critical patent/CN109117234A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention discloses the customized cartoon implementing method of system control and electronic equipment based on educational system, and method is comprising steps of the animated type that A, succession are specified;B, the timeline and global displacement effect of animation are rewritten on demand;C, animated type is Resealed;D, the animated type Resealed is added on system control on demand.The present invention is after the rewriting for realizing basic animation library frame, more convenient, direct, the better animation effect of encapsulation can be provided for self-defined control library, the development amount of later period system particular demands is reduced, and can assist providing good animation interaction effect to education operating system.

Description

The customized cartoon implementing method of system control and electronic equipment based on educational system
Technical field
The present invention relates to field of computer technology more particularly to a kind of customized animations of system control based on educational system Implementation method and electronic equipment.
Background technique
For various controls in system, in advanced human-computer interaction, it is desirable to provide relevant customized animation improves User experience.So needing a set of customized system control of correlation of abstract definition dynamic on the basis of completing self-defined control library It draws, to realize all kinds of system controls for being more bonded human-computer interaction engineering.
But in the prior art, there are no the methods that can quickly develop customized animation.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of system controls based on educational system Customized cartoon implementing method and electronic equipment, it is intended to which there are no can quickly develop customized animation in the prior art for solution The problem of method.
Technical scheme is as follows:
A kind of customized cartoon implementing method of system control based on educational system, wherein comprising steps of
A, specified animated type is inherited;
B, the timeline and global displacement effect of animation are rewritten on demand;
C, animated type is Resealed;
D, the animated type Resealed is added on system control on demand.
The customized cartoon implementing method of system control based on educational system, wherein also wrapped after the step D It includes:
E, animation interaction is carried out on the basis of the animated type Resealed to write.
The customized cartoon implementing method of system control based on educational system, wherein the animation in the step A Class includes parallel animated type, serial animated type, abstract base class, easement curve class and time shaft class.
The customized cartoon implementing method of system control based on educational system, wherein in the step B, pass through The function of time of animated type is written over, realizes the timeline and global displacement effect for rewriteeing animation.
The customized cartoon implementing method of system control based on educational system, wherein the step D is specifically wrapped It includes:
Create the object of the animated type Resealed;
The parameter of the object is set on demand.
The customized cartoon implementing method of system control based on educational system, wherein the parameter includes animation Time and travel path.
A kind of electronic equipment, wherein include:
Processor is adapted for carrying out each instruction, and
Equipment is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
Inherit specified animated type;
The timeline and global displacement effect of animation are rewritten on demand;
Reseal animated type;
The animated type Resealed is added on system control on demand.
The electronic equipment, wherein described instruction is further adapted for being loaded by processor and being executed:
Animation interaction is carried out on the basis of the animated type Resealed to write.
A kind of non-volatile computer readable storage medium storing program for executing, wherein the non-volatile computer readable storage medium storing program for executing is deposited Computer executable instructions are contained, when which is executed by one or more processors, may make described one A or multiple processors execute the customized cartoon implementing method of the system control based on educational system.
A kind of computer program product, wherein the computer program product can including being stored in non-volatile computer The computer program on storage medium is read, computer program includes program instruction, when program instruction is executed by processor, makes institute It states processor and executes the customized cartoon implementing method of the system control based on educational system.
The utility model has the advantages that the present invention after the rewriting for realizing basic animation library frame, can be self-defined control library More convenient, direct, the better animation effect of encapsulation is provided, reduces the development amount of later period system particular demands, and can be auxiliary It helps and provides good animation interaction effect to education operating system.
Detailed description of the invention
Fig. 1 is a kind of stream of the customized cartoon implementing method preferred embodiment of system control based on educational system of the invention Cheng Tu.
Fig. 2 is the structural block diagram of a kind of electronic equipment preferred embodiment of the present invention.
Specific embodiment
The present invention provides a kind of customized cartoon implementing method of the system control based on educational system and electronic equipment, to make The purpose of the present invention, technical solution and effect are clearer, clear, and the present invention is described in more detail below.It should be appreciated that The specific embodiments described herein are merely illustrative of the present invention, is not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is that a kind of customized cartoon implementing method of system control based on educational system of the invention is preferable The flow chart of embodiment, as shown, itself comprising steps of
S1, specified animated type is inherited;
S2, the timeline and global displacement effect for rewriteeing animation on demand;
S3, animated type is Resealed;
S4, the animated type Resealed is added on system control on demand.
The present invention can provide more square after the rewriting for realizing basic animation library frame for self-defined control library Just, directly, the better animation effect of encapsulation, reduce the development amount of later period system particular demands, and can assist to education Operating system provides good animation interaction effect.
Specifically, in step sl, specified animated type is first inherited.
Such as need to realize the parallel animation an of button, then need to inherit QParallelAnimationGroup this Parallel animated type.
The present invention, for the demand of customized animated type control, using on the basis of the animation library in Qt open source library, in conjunction with Educational system interactive software demand, modifies to frame, to realize matching accurately educational system animation demand.
Qt is the cross-platform C++ graphical user interface application program development frame of Qt Company exploitation.It can both be opened Send out gui program, it can also be used to develop non-gui program, such as console tool and server.Qt is the frame of object-oriented, is made With special code building extension (referred to as meta object compiler (Meta Object Compiler, moc)) and some macro, Qt It is easy to extend, and allows veritably component programming.
Further, the animated type in the step S1 includes parallel animated type, serial animated type, abstract base class, mitigates song Line class and time shaft class.
The structure of basic Qt animation framework is as follows:
QabstractAnimation include QanimationGroup, QpauseAnimation and Tri- subclasses of QvariantAnimation.
QanimationGroup includes QparallelAnimationGroup and QsequentialAnimationGroup Two subclasses.
QvariantAnimation includes mono- subclass of QpropertyAnimation.
Wherein, QabstractAnimation is the base class of all animated types.QAbstractAnimation defines institute There is the relevant basic function of animated type, by inheriting such, other functions of animation, or the customized spy of addition may be implemented Effect.
QanimationGroup is the abstract base class of animation container class.QanimationGroup class is one and includes other The container class of animated type, while QAnimationGroup class is also the subclass of QAbstractAnimation class, therefore one is held Device may include other containers.
QpauseAnimation provides a pause for QSequentialAnimationGroup.It is if necessary Delay is added between QSequentialAnimationGroup animation, and a QPauseAnimation can be inserted.It does not have Any animation, but will not terminate when bringing into operation within specified millisecond number.The specified pause of constructed fuction can be passed through Time can also be arranged by setDuration ().
QvariantAnimation is the abstract base class of animated type.Its subclass for belonging to QabstractAnimatio.
QparallelAnimationGroup is parallel animation container, provides parallel group of animation.When it starts All animations inside it also start, it may be assumed that run all animations parallel, the animation group when the duration, longest animation was completed It completes therewith.
QsequentialAnimationGroup is serial animation container, provides serial group of animation.It is broadcast in an animation After putting end, open a new animation, according to be added to animation group sequence (using addAnimation () or InsertAnimation ()) carry out playing animation, after the completion of the last one animation, animation group is completed therewith.
QPropertyAnimation is the animation attributes of Qt.The Similar integral in QvariantAnimation class, for pair The animation operation (a part that Qt property system is Qt meta object system) of Qt attribute.
In the step S2, the timeline and global displacement effect of animation are rewritten on demand.
Further, it in the step S2, is written over by the function of time to animated type, realizes the time for rewriteeing animation Line and global displacement effect.
Such as need to realize two buttons while forward, while to the same direction, with the animation that identical speed is translated, Need to rewrite the timeline of animation and the animation binding displacement effect of corresponding button.So just needing to this class of definition Event event functions are written over, such as can be rewritten are as follows:
QParallelAnimationGroup*group=new QParallelAnimationGroup;
group->addAnimation(anim1);
group->addAnimation(anim2);
group->start();
Then above-mentioned anim1 and anim2 is the button animation for needing oneself to go definition, exactly realizes that button displacement is imitated Then fruit is formed the parallel animation group of a button.
In the step S3, animated type is Resealed.
For example, exactly the parallel button animation class finished writing above is packaged, forms a new class, such as TwoButtonParallelAnimation is encapsulated, and is added some variable attributes and be supplied to external use, such as parallel Animation duration time, parallel animation start-stop position: start_index, end_index and some other attributes.
In the step S4, the animated type Resealed is added on system control on demand.
That is, control adds new abstract animated type on demand.
Further, the step S4 is specifically included:
Create the object of the animated type Resealed;
The parameter of the object is set on demand.The parameter includes animation time and travel path.
For example, needing to have the button of animation in some interface using this, so that it may directly state and create one The object of this class, the specific method is as follows:
TwoButtonParallelAnimation*buttons=new TwoButtonParallelAnimation ();
Then some parameters can be set according to demand, for example, 2 seconds animation times, conduct path is from interface 0-200, then can be carried out similar following setting:
buttons->settime(2);
button->setRoute(0,200);
So be achieved that the operation for being previously required to nearly hundred line code by three line codes above, just for it is specific certain A animation demand is simplified and has been encapsulated.
Further, after the step S4 further include:
S5, the interaction of progress animation is write on the basis of the animated type Resealed.
This step is to carry out more efficient animation interaction using newly abstract animated type to write.It can be all kinds of by writing Specific animation realizes that typewrite automatically display, flying into for control of such as parallel button translation, button interior gradual change, text flies out Etc a series of effect technology encapsulation.It can be improved the development efficiency of the control animation under Linux through the invention.
The present invention can provide more square after the rewriting for realizing basic animation library frame for self-defined control library Just, directly, the better animation effect of encapsulation, reduce the development amount of later period system particular demands, operated with applying in education For system, the present invention can assist providing good animation interaction effect to education operating system.
Referring to Fig. 2, the present invention also provides a kind of electronic equipment 10 comprising:
Processor 110 is adapted for carrying out each instruction, and
Equipment 120 is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
Inherit specified animated type;
The timeline and global displacement effect of animation are rewritten on demand;
Reseal animated type;
The animated type Resealed is added on system control on demand.
The processor 110 can for general processor, digital signal processor (DSP), specific integrated circuit (ASIC), Field programmable gate array (FPGA), single-chip microcontroller, ARM (Acorn RISC Machine) or other programmable logic device are divided Any combination of vertical door or transistor logic, discrete hardware component or these components.In addition, processor can also be any Conventional processors, microprocessor or state machine.Processor also may be implemented as calculating the combination of equipment, for example, DSP and Wei Chu Manage combination, multi-microprocessor, one or more microprocessors combination DSP core, any other this configuration of device.
It stores equipment 120 and is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software Program, non-volatile computer executable program and module, such as the system control based on educational system in the embodiment of the present invention The corresponding program instruction of the customized cartoon implementing method of part.Processor is stored in non-volatile soft in storage equipment by operation Part program, instruction and unit, thereby executing the various function of the customized cartoon implementing method of system control based on educational system It can apply and data processing, i.e. realization above method embodiment.
Further, described instruction is further adapted for being loaded and being executed by processor 110:
Animation interaction is carried out on the basis of the animated type Resealed to write.
It has been described in detail in the method for particular technique details in front about above-mentioned electronic equipment 10, so it will not be repeated.
The present invention also provides a kind of non-volatile computer readable storage medium storing program for executing, the non-volatile computer readable storage Media storage has computer executable instructions, when which is executed by one or more processors, may make One or more of processors execute the customized cartoon implementing method of the system control based on educational system.
The present invention also provides a kind of computer program product, computer program product includes being stored in non-volatile computer Computer program on readable storage medium storing program for executing, computer program include program instruction, when program instruction is executed by processor, are made The processor executes the customized cartoon implementing method of the system control based on educational system.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention Protect range.

Claims (10)

1. a kind of customized cartoon implementing method of system control based on educational system, which is characterized in that comprising steps of
A, specified animated type is inherited;
B, the timeline and global displacement effect of animation are rewritten on demand;
C, animated type is Resealed;
D, the animated type Resealed is added on system control on demand.
2. the customized cartoon implementing method of the system control according to claim 1 based on educational system, which is characterized in that After the step D further include:
E, animation interaction is carried out on the basis of the animated type Resealed to write.
3. the customized cartoon implementing method of the system control according to claim 1 based on educational system, which is characterized in that Animated type in the step A includes parallel animated type, serial animated type, abstract base class, easement curve class and time shaft class.
4. the customized cartoon implementing method of the system control according to claim 1 based on educational system, which is characterized in that It in the step B, is written over by the function of time to animated type, realizes the timeline for rewriteeing animation and global displacement effect Fruit.
5. the customized cartoon implementing method of the system control according to claim 1 based on educational system, which is characterized in that The step D is specifically included:
Create the object of the animated type Resealed;
The parameter of the object is set on demand.
6. the customized cartoon implementing method of the system control according to claim 5 based on educational system, which is characterized in that The parameter includes animation time and travel path.
7. a kind of electronic equipment characterized by comprising
Processor is adapted for carrying out each instruction, and
Equipment is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
Inherit specified animated type;
The timeline and global displacement effect of animation are rewritten on demand;
Reseal animated type;
The animated type Resealed is added on system control on demand.
8. electronic equipment according to claim 7, which is characterized in that described instruction is further adapted for being loaded by processor and being held Row:
Animation interaction is carried out on the basis of the animated type Resealed to write.
9. a kind of non-volatile computer readable storage medium storing program for executing, which is characterized in that the non-volatile computer readable storage medium Matter is stored with computer executable instructions, when which is executed by one or more processors, may make institute It states one or more processors perform claim and requires the customized animation of the described in any item system controls based on educational system of 1-6 Implementation method.
10. a kind of computer program product, which is characterized in that the computer program product includes being stored in non-volatile calculating Computer program on machine readable storage medium storing program for executing, computer program include program instruction, when program instruction is executed by processor, The processor perform claim is set to require the customized animation realization side of the described in any item system controls based on educational system of 1-6 Method.
CN201810969664.7A 2018-08-23 2018-08-23 The customized cartoon implementing method of system control and electronic equipment based on educational system Pending CN109117234A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810969664.7A CN109117234A (en) 2018-08-23 2018-08-23 The customized cartoon implementing method of system control and electronic equipment based on educational system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810969664.7A CN109117234A (en) 2018-08-23 2018-08-23 The customized cartoon implementing method of system control and electronic equipment based on educational system

Publications (1)

Publication Number Publication Date
CN109117234A true CN109117234A (en) 2019-01-01

Family

ID=64860974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810969664.7A Pending CN109117234A (en) 2018-08-23 2018-08-23 The customized cartoon implementing method of system control and electronic equipment based on educational system

Country Status (1)

Country Link
CN (1) CN109117234A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976755A (en) * 2019-02-27 2019-07-05 深圳点猫科技有限公司 Language is the method and electronic equipment of Vue making of cartoon effect based on programming

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160132216A1 (en) * 2014-11-07 2016-05-12 Pixrating Ltd. Business-to-business solution for picture-, animation- and video-based customer experience rating, voting and providing feedback or opinion based on mobile application or web browser
CN107203372A (en) * 2016-03-18 2017-09-26 百度在线网络技术(北京)有限公司 Control shows method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160132216A1 (en) * 2014-11-07 2016-05-12 Pixrating Ltd. Business-to-business solution for picture-, animation- and video-based customer experience rating, voting and providing feedback or opinion based on mobile application or web browser
CN107203372A (en) * 2016-03-18 2017-09-26 百度在线网络技术(北京)有限公司 Control shows method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
GUNDUMW100: "继承Animation自定义动画", 《HTTPS://BLOG.CSDN.NET/GUNDUMW100/ARTICLE/DETAILS/84605659》 *
霍亚飞: "《Qt Creator快速入门》", 31 January 2017, 北京航空航天大学出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976755A (en) * 2019-02-27 2019-07-05 深圳点猫科技有限公司 Language is the method and electronic equipment of Vue making of cartoon effect based on programming

Similar Documents

Publication Publication Date Title
Wu React Native vs Flutter, Cross-platforms mobile application frameworks
CN109146084B (en) Machine learning method and device based on cloud computing
US9542509B2 (en) Context-based synthesis of simulation models from functional models of cyber-physical systems
CN107463367A (en) Transition cartoon implementing method and device
US20120256928A1 (en) Methods and Systems for Representing Complex Animation Using Scripting Capabilities of Rendering Applications
US8918758B2 (en) Systems and methods for storing object and action data during media content development
CN105739983A (en) Script program edition device and realization method thereof
US11244090B2 (en) Systems and methods for extracting adjustable attributes of model components
US20140049547A1 (en) Methods and Systems for Representing Complex Animation using Style Capabilities of Rendering Applications
US20140223408A1 (en) Integration project center
CN109445832A (en) Language carries out the method and electronic equipment of hot update to application program based on programming
Kato et al. Programming with examples to develop data-intensive user interfaces
CN109117234A (en) The customized cartoon implementing method of system control and electronic equipment based on educational system
Topley JavaFX Developer's Guide
JP2017522639A5 (en)
Magni Delphi GUI Programming with FireMonkey: Unleash the full potential of the FMX framework to build exciting cross-platform apps with Embarcadero Delphi
Neuburg IOS 8 Programming Fundamentals with Swift: Swift, Xcode, and Cocoa Basics
CN109377424A (en) A kind of self-defined control implementation method and electronic equipment based on education operating system
Mzahm et al. Software analysis for Agents of Things (AoT) applications
Tsichritzis et al. Application development using objects
Lang Panda3D 1.7 Game Developer's Cookbook
Grinev Mastering JavaFX 10: Build advanced and visually stunning Java applications
Markopoulos Case Study in the formal specification of the Simple Player graphical interface for playing QuickTime movies, using the ADC interactor model
Bouyer On the optimal reachability problem in weighted timed automata and games.
CN115081402B (en) Storyline expansion method, device, equipment and medium based on traceability reasoning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190101