Summary of the invention
Purpose of the present invention is to provide a kind of device of controlling thumbnail position in the thumbnail pane of current playing lantern slides, make complete being presented in the thumbnail pane of thumbnail of each lantern slide of current playing lantern slides and front and back, user friendly speech is used.
Another object of the present invention is, a kind of method of controlling current playing lantern slides thumbnail position in the thumbnail pane is provided, make complete being presented in the thumbnail pane of thumbnail of each lantern slide of current playing lantern slides and front and back, user friendly speech is used.
The objective of the invention is to be achieved through the following technical solutions:
A kind of device of controlling thumbnail position in the thumbnail pane of lantern slide comprises:
Be used to be provided with the message input device of current document page parameter and trigger slides conversion of page;
Be used for storing current document and need the lantern slide sum play and the storer of current document page parameter;
Be used for reading the read module of storer memory contents;
Be used for calculating and determine the computing module of current playing lantern slides thumbnail set in thumbnail pane assigned address desired parameters;
The parameter that is used for calculating according to described computing module is set to current playing lantern slides thumbnail in the set device of thumbnail pane assigned address;
Be used on display screen, showing the display device of current playing lantern slides thumbnail at thumbnail pane assigned address.
A kind of method of controlling thumbnail position in the thumbnail pane of lantern slide comprises:
Read the read step that needs the lantern slide sum play in the current document page parameter that is stored in the storer and the current document by read module;
Calculate the calculation procedure of determining current playing lantern slides thumbnail set assigned address desired parameters in the thumbnail pane by computing module;
Triggering step by message input device trigger slides conversion of page;
The parameter that calculates according to described computing module by the set device is set to current playing lantern slides thumbnail the set step of assigned address in the thumbnail pane;
By the step display of display device at the current playing lantern slides thumbnail of demonstration assigned address in the thumbnail pane on the display screen.
It also comprises,
The information setting step of current document page parameter is set by message input device;
The storing step of the current document page parameter after being provided with by the above-mentioned process of memory stores.
Summit with described thumbnail pane is an initial point, is that coordinate axis is set up coordinate system with the both sides of crossing this point; Be located at along in the orientation of described lantern slide thumbnail, it is Sz from be of a size of TW, described assigned address distance for D, described thumbnail pane perpendicular to the value along the coordinate axis of described lantern slide thumbnail orientation that each lantern slide thumbnail is of a size of not plotted between S, lantern slide thumbnail, and (S+D)≤Sz≤(TW-(2S+D)) then arranged.
If the lantern slide of playing adds up to N, current lantern slide thumbnail be numbered n (1≤n≤N), current lantern slide thumbnail reference position distance is Sstn=(n* (S+D)-S) perpendicular to the value along the coordinate axis of described lantern slide thumbnail orientation; If in described thumbnail pane during assigned address, described current lantern slide thumbnail is SOffset along described lantern slide thumbnail orientation offset distance with the set of current lantern slide thumbnail, then,
SOffset=Sz-Sstn=Sz-(n*(S+D)-S)。
When described assigned address is positioned at described thumbnail pane mid point, then
SOffset=TW/2-(n*(S+D)-S)。
The present invention is by controlling the position of thumbnail in the thumbnail pane of each lantern slide of current playing lantern slides and front and back automatically, can avoid current playing lantern slides thumbnail to be positioned at the head end or the end of thumbnail pane, make thumbnail complete demonstration in the thumbnail pane of each lantern slide of current playing lantern slides and front and back.During playing lantern slides, in case determine each position that lantern slide shows of current playing lantern slides thumbnail and front and back in the thumbnail pane, this is play the lantern slide thumbnail of the current broadcast of uniform maintenance and each position of lantern slide thumbnail in the thumbnail pane, front and back.Can make things convenient for the speaker to the contextual understanding of current playing lantern slides, make the speaker be absorbed in the content of current lantern slide, it is more calm to give a lecture.
Embodiment
The present invention is in order to express conveniently, and the spy is defined as follows:
Summit with described thumbnail pane is an initial point, is that coordinate axis is set up coordinate system with the both sides of crossing this point; Be located at along in the orientation of described lantern slide thumbnail, each lantern slide thumbnail is of a size of between S, lantern slide thumbnail not plotted from being of a size of TW for D, described thumbnail pane; Described assigned address distance is Sz perpendicular to the value along the coordinate axis of described lantern slide thumbnail orientation; Current lantern slide thumbnail reference position distance is Sstn perpendicular to the value along the coordinate axis of described lantern slide thumbnail orientation; In described thumbnail pane during assigned address, described current lantern slide thumbnail is SOffset along described lantern slide thumbnail orientation offset distance with the set of current lantern slide thumbnail.
Embodiment one
Shown in Fig. 1,3A, a kind of device of controlling thumbnail position in the thumbnail pane of lantern slide comprises:
Be used to be provided with the message input device 1 of current document page parameter and trigger slides conversion of page;
Be used for storing current document and need the lantern slide sum play and the storer 2 of current document page parameter;
Be used for reading the read module 3 of storer memory contents;
The size (breviary Figure 30 of lantern slide and thumbnail pane 20 are in level or horizontally set in the present embodiment, only need read width data) that is used for the size that is stored in lantern slide sum N, lantern slide breviary Figure 30 that needs in the storer current document play obtained according to described read module 3 and thumbnail pane 20 is calculated the computing module 4 of determining current playing lantern slides thumbnail 300 is placed thumbnail pane 20 assigned address desired parameters (distance of every page of lantern slide thumbnail reference position, thumbnail horizontal direction skew pane);
The parameter that is used for calculating according to described computing module 4 is set to current playing lantern slides thumbnail 300 in the set device 5 of thumbnail pane 20 assigned addresses;
Be used on display screen, showing the display device 6 of current playing lantern slides thumbnail 300 at thumbnail pane 20 assigned addresses.
As Fig. 3 B be utilize provided by the invention as described in the control lantern slide thumbnail position in the thumbnail pane device to as described in the process flow diagram of the thumbnail method that the position is controlled in the thumbnail pane of lantern slide, comprise the steps:
Start;
The information setting step of current document page parameter is set by message input device 1;
Store the storing step of the current document page parameter after above-mentioned process is provided with by storer 2; Above-mentioned information setting step and storing step be as associated steps, and optional step in whole flow process is carried out according to speaker's needs.
Read the read step that needs the lantern slide sum play in the current document page parameter that is stored in the storer 2 and the current document by read module 3;
Calculate the calculation procedure of determining current playing lantern slides thumbnail is placed the required partial parameters of thumbnail pane assigned address by computing module 4; This step according to being stored in the storer of obtaining of the described read module 4 lantern slide sum that needs are play in the current document, current document page parameter (include but not limited to the width of width, the thumbnail pane 20 of lantern slide breviary Figure 30, between lantern slide breviary Figure 30 not plotted from, current playing lantern slides thumbnail placed the location parameter of thumbnail pane assigned address), calculate and determine current playing lantern slides thumbnail 300 is placed the required partial parameters of thumbnail pane 20 assigned addresses---every page of lantern slide thumbnail reference position.
Be transformed into the triggering step of current page from last current page by the message input device 1 trigger slides page;
In conjunction with trigger message, calculate the calculation procedure of determining current playing lantern slides thumbnail is placed the required partial parameters of thumbnail pane assigned address by computing module 4 once more; This step mainly is to calculate the distance of thumbnail horizontal direction skew pane by computing module in conjunction with trigger message according to the parameter that last computation obtains.
The data that calculate according to described computing module 4 by set device 5 are set to current playing lantern slides thumbnail 300 the set step of assigned address in the thumbnail pane 20;
By the step display of display device 6 at the current playing lantern slides thumbnail 300 of demonstration assigned address in thumbnail pane 20 on the display screen; So just can be in described thumbnail pane 20 the current playing lantern slides of complete demonstration and each lantern slide thumbnail (300,301,302) of front and back.
The cyclic transformation page or end.
Remain the design sketch of a certain assigned address that is positioned at the thumbnail pane for the thumbnail of controlling current playing lantern slides according to said method as Fig. 5 a and Fig. 5 b.
As shown in Figure 4, present embodiment provides the auxiliary calculating view that current playing lantern slides thumbnail is placed an assigned address 40 of thumbnail pane, is convenient to set forth needed data of above-mentioned control procedure and formula:
Consider the singularity of specific embodiment, present embodiment,
The lower left corner with described thumbnail pane 20 is that initial point is set up coordinate system, because the pane of thumbnail described in the present embodiment 20 is horizontally disposed with, therefore the ordinate of described lantern slide breviary Figure 30 remains unchanged, and only needs to consider the conversion of horizontal ordinate.
Suppose that it is that the width of leaving a blank between SlideW (i.e. this moment S=SlideW), lantern slide is DiffW (promptly D=DiffW) at this moment that the lantern slide of playing adds up to N, lantern slide thumbnail width
Suppose that described thumbnail pane width is TW, in a single day the length of thumbnail pane play and just immobilized in demonstrator's view;
If current lantern slide thumbnail be numbered n, in order to realize that purpose of the present invention need be with n-1, n, the n+1 (1 ≦ n ≦ N) assigned address 40 of three whole set of continuous lantern slide thumbnail in described thumbnail pane 20, and complete being presented in the described thumbnail pane 20; Of particular note, when n=1, said n-1=0, there is not prevpage in promptly current lantern slide thumbnail, only need consider that in order to realize the object of the invention the complete of current lantern slide and the next page thumbnail is presented in the described thumbnail pane 20; Equally, when n=N, there is not the next page in current lantern slide thumbnail, only need consider that in order to realize the object of the invention the complete of current lantern slide and prevpage thumbnail is presented in the described thumbnail pane 20.
If the horizontal ordinate of assigned address 40 is SlideX (i.e. this moment Sz=SlideX), this value is also play the beginning back at current document and is just determined that this is determined can be by default setting or by manually setting;
The lantern slide thumbnail reference position (apart from the distance of ordinate) of supposing to be numbered n then has for SlideXn (promptly Sstn=SlideXn) at this moment
SlideXn=(n*(SlideW+DiffW)-SlideW);
If with n-1, n, the assigned address of three whole set of continuous lantern slide thumbnail of n+1 in described thumbnail pane 20, described current thumbnail horizontal direction offset distance is xOffset (i.e. this moment Soffset=xOffset), then, xOffset=SlideX-SlideXn
=SlideX-(n*(SlideW+DiffW)-SlideW);
(SlideW+DiffW)≤SlideX≤TW-(2SlideW+DiffW)
When described assigned address 40 is positioned at described thumbnail pane 20 mid points, then
xOffset=TW/2-(n*(SlideW+DiffW)-SlideW)。
This value xOffset is the value that thumbnail pane horizontal scroll bar need move.
Embodiment two
As shown in Figure 6, the difference of the present embodiment and first embodiment is that the lantern slide thumbnail of present embodiment and breviary pane are vertical or vertically are provided with.
Described step will become:
Start;
The information setting step of current document page parameter is set by message input device 1;
Store the storing step of the current document page parameter after above-mentioned process is provided with by storer 2;
Read the read step that needs the lantern slide sum play in the current document page parameter that is stored in the storer 2 and the current document by read module 3;
Calculate the calculation procedure of determining current playing lantern slides thumbnail is placed the required partial parameters of thumbnail pane assigned address by computing module 4; This step according to being stored in the storer of obtaining of the described read module 4 lantern slide sum that needs are play in the current document, current document page parameter (include but not limited to the width of width, the thumbnail pane 20 of lantern slide breviary Figure 30, between lantern slide breviary Figure 30 not plotted from, current playing lantern slides thumbnail placed the location parameter of thumbnail pane assigned address), calculate and determine current playing lantern slides thumbnail 300 is placed the required partial parameters of thumbnail pane 20 assigned addresses---every page lantern slide thumbnail reference position.
Be transformed into the triggering step of current page from last current page by the message input device 1 trigger slides page;
In conjunction with trigger message, calculate the calculation procedure of determining current playing lantern slides thumbnail is placed the required partial parameters of thumbnail pane assigned address by computing module 4 once more; This step mainly is to calculate the distance of thumbnail vertical offset pane by computing module in conjunction with trigger message according to the parameter that last computation obtains.
The data that calculate according to described computing module 4 by set device 5 are set to current playing lantern slides thumbnail 300 the set step of assigned address in the thumbnail pane 20;
By the step display of display device 6 at the current playing lantern slides thumbnail 300 of demonstration assigned address in thumbnail pane 20 on the display screen; So just can be in described thumbnail pane 20 the current playing lantern slides of complete demonstration and each lantern slide thumbnail (300,301,302) of front and back.
The cyclic transformation page or end.
Correspondingly, needed data of control procedure and formula:
The upper left corner with described thumbnail pane 20 is that initial point is set up coordinate system, because the pane of thumbnail described in the present embodiment 20 vertically or vertically is provided with, therefore the horizontal ordinate of described lantern slide breviary Figure 30 remains unchanged, and only needs the conversion of consideration ordinate.
Suppose the lantern slide of playing add up to N, lantern slide thumbnail height be between SlideH (i.e. this moment S=SlideH), lantern slide not plotted from being DiffH (promptly D=DiffH) at this moment
Suppose that described thumbnail pane height is TW, high in a single day broadcast of thumbnail pane just immobilizes in demonstrator's view;
If current lantern slide thumbnail be numbered n, in order to realize that purpose of the present invention need be with n-1, n, the n+1 (1 ≦ n ≦ N) assigned address 40 of three whole set of continuous lantern slide thumbnail in described thumbnail pane 20, and complete being presented in the described thumbnail pane 20;
If the horizontal ordinate of assigned address 40 is SlideY (i.e. this moment Sz=SlideY), this value is also play the beginning back at current document and is just determined that this is determined can be by default setting or by manually setting;
The lantern slide thumbnail reference position (apart from the distance of ordinate) of supposing to be numbered n then has for SlideYn (promptly Sstn=SlideYn) at this moment
SlideYn=(n*(SlideH+DiffH)-SlideH);
If with n-1, n, the assigned address of three whole set of continuous lantern slide thumbnail of n+1 in described thumbnail pane 20, described current thumbnail vertical offset distance be yOffset (promptly Soffset=yOffset) at this moment, then, yOffset=SlideY-SlideYn
=SlideY-(n*(SlideH+DiffH)-SlideH);
(SlideH+DiffH)≤SlideY≤TW-(2SlideH+DiffH)
When described assigned address is positioned at described thumbnail pane 20 mid points, then
yOffset=TW/2-(n*(SlideH+DiffH)-SlideH)。
This value yOffset is the value that thumbnail pane vertical scroll bar need move.
Above disclosed embodiment can not think qualification that the present invention's scope required for protection is made; for the person of an ordinary skill in the technical field; that some obtain without creative work, based on the simple change that the present invention design is done, still should not take off the scope of protection of the invention.