CN112764644B - Object display change method, device, equipment and computer readable storage medium - Google Patents
Object display change method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN112764644B CN112764644B CN202110010082.8A CN202110010082A CN112764644B CN 112764644 B CN112764644 B CN 112764644B CN 202110010082 A CN202110010082 A CN 202110010082A CN 112764644 B CN112764644 B CN 112764644B
- Authority
- CN
- China
- Prior art keywords
- change
- display
- target object
- target
- objects
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/80—Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses an object display change method, an object display change device and a computer readable storage medium. And because the size parameters of the objects are fixed parameters, the terminal can directly obtain the size parameters, so that if the user needs to increase or reduce the number of the target objects in batches, the terminal can increase or reduce the display number of the target objects in batches in the specified moving direction only by sending corresponding moving indication information without copying or deleting the target objects one by the user, thereby greatly improving the efficiency of changing the display number of the objects.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for changing object display.
Background
With the combination of computer technology and traditional design industries, various design software brings great convenience to the daily work of designers. In the existing design software, objects such as clothes and props are often required to be copied or deleted, and the common operation mode is as follows: selecting the object by the mouse, copying and pasting the object by using shortcut keys ctrl + c and ctrl + v, deleting the object by using a delete key, or copying, pasting and deleting the object by using a right-click menu of the mouse.
However, in the design work, a large number of identical clothes and prop combinations need to be designed many times, keys need to be repeatedly pressed when the clothes and props are increased or decreased in batch copy, and if the clothes and props are operated based on the same coordinate axis, the increased objects need to be aligned in a coordinate adjusting mode one by one, so that the operation is time-consuming and labor-consuming, and the technical problem that the existing mode for changing the number of the displayed objects is low in efficiency is caused.
Disclosure of Invention
The invention mainly aims to provide an object display change method, and aims to solve the technical problem that the existing method for changing the number of displayed objects is low in efficiency.
In order to achieve the above object, the present invention provides an object display change method, including:
determining a target object, and acquiring an object size parameter and movement indication information of the target object;
and determining the change number and the change direction of the target object according to the object size parameter and the movement indication information so as to update the display content of the target object based on the change number and the change direction.
Optionally, the movement indication information includes a linear movement direction and a dragging distance,
the step of determining the change number and the change direction of the target object according to the object size parameter and the movement indication information, and updating the display content of the target object based on the change number and the change direction includes:
taking the linear moving direction as the change direction, and calculating the increased number or the decreased number of the target objects according to a preset first display interval, the dragging distance and the object size parameter to obtain the change number;
and copying or deleting the corresponding amount of target object display data according to the increased number or the decreased number so as to increase or decrease the display number of the target objects in the linear direction.
Optionally, the step of calculating the increased number or the decreased number of the target objects to obtain the changed number includes:
calculating to obtain the increased number or the decreased number of the target objects, and judging whether the increased number or the decreased number is an integer;
if so, taking the increased number or the decreased number as the changed number;
and if not, displaying two integers adjacent to the increased number or the decreased number for the user to select any one of the two integers as the change number.
Optionally, the determining a target object, and the step of obtaining the object size parameter and the movement indication information of the target object includes:
when a target selection instruction is received, determining a target object according to the target selection instruction, and acquiring starting point coordinate data and object size parameters of the target object;
when a dragging instruction is received, acquiring the coordinate data of the moving end point and the linear moving direction of the target object based on the dragging instruction;
and obtaining the dragging distance of the target object according to the coordinate data of the starting point and the coordinate data of the moving end point.
Optionally, before the step of acquiring the movement end point coordinate data and the linear movement direction of the target object based on the drag instruction when the drag instruction is received, the method further includes:
and generating and displaying a moving direction indication arrow for a user to select the linear moving direction based on the moving direction indication arrow.
Optionally, the movement indication information includes a curved movement trajectory,
the step of determining the change number and the change direction of the target object according to the object size parameter and the movement indication information, and updating the display content of the target object based on the change number and the change direction includes:
converting the curve movement track into a plurality of line segments connected end to end according to a preset second display interval and the object size parameter, and taking the line segment directions of the plurality of line segments connected end to end as the change direction;
acquiring the number of line segment end points and line segment end point coordinate data in the plurality of line segments connected end to end, and copying or deleting corresponding amount of target object display data on each line segment end point based on the number of line segment end points and the line segment end point coordinate data so as to increase or decrease the display number of the target objects in the line segment direction.
Optionally, after the step of determining the number of changes and the direction of changes of the target object according to the object size parameter and the movement indication information, so as to update the display content of the target object based on the number of changes and the direction of changes, the method further includes:
obtaining the number of actual objects based on the change number, and generating and displaying an object number editing frame containing the number of the actual objects so that a user can change the number of the actual objects in the object number editing frame;
and acquiring the number of the changed actual objects, and increasing or decreasing the number of the currently displayed target objects in the change direction according to the number of the changed actual objects.
Further, to achieve the above object, the present invention also provides an object display change apparatus including:
the parameter information acquisition module is used for determining a target object and acquiring the object size parameter and the movement indication information of the target object;
and the display content updating module is used for determining the change number and the change direction of the target object according to the object size parameter and the movement indication information so as to update the display content of the target object based on the change number and the change direction.
Optionally, the movement indication information includes a linear movement direction and a dragging distance,
the display content update module includes:
a change number calculation unit, configured to use the linear movement direction as the change direction, and calculate an increased number or a decreased number of the target objects according to a preset first display interval, the dragging distance, and the object size parameter, so as to obtain the change number;
and the display number increasing and decreasing unit is used for copying or deleting the corresponding number of target object display data according to the increasing number or the decreasing number so as to increase or decrease the display number of the target objects in the linear direction.
Optionally, the change number calculating unit is further configured to:
calculating to obtain the increased number or the decreased number of the target objects, and judging whether the increased number or the decreased number is an integer;
if so, taking the increased number or the decreased number as the changed number;
and if not, displaying two integers adjacent to the increased number or the decreased number for the user to select any one of the two integers as the change number.
Optionally, the parameter information obtaining module includes:
the coordinate parameter acquisition unit is used for determining a target object according to a target selection instruction when the target selection instruction is received, and acquiring starting point coordinate data and an object size parameter of the target object;
the coordinate direction acquiring unit is used for acquiring the moving end point coordinate data and the linear moving direction of the target object based on a dragging instruction when the dragging instruction is received;
and the dragging distance acquisition unit is used for acquiring the dragging distance of the target object according to the starting point coordinate data and the moving end point coordinate data.
Optionally, the parameter information obtaining module further includes:
and the indication arrow display unit is used for generating and displaying a movement direction indication arrow so that a user can select the linear movement direction based on the movement direction indication arrow.
Optionally, the movement indication information includes a curved movement trajectory,
the display content update module includes:
the curve segment conversion unit is used for converting the curve moving track into a plurality of end-to-end line segments according to a preset second display interval and the object size parameter, and taking the line segment directions of the plurality of end-to-end line segments as the change directions;
and the display number increasing and decreasing unit is used for acquiring the number of line segment end points and line segment end point coordinate data in the plurality of line segments connected end to end, and copying or deleting the corresponding number of target object display data on each line segment end point based on the number of the line segment end points and the line segment end point coordinate data so as to increase or decrease the display number of the target object in the line segment direction.
Optionally, the object display variation apparatus further includes:
the number editing and changing module is used for obtaining the number of the actual objects based on the changed number, and generating and displaying an object number editing frame containing the number of the actual objects so that a user can change the number of the actual objects in the object number editing frame;
and the display corresponding change module is used for acquiring the number of the changed actual objects and increasing or decreasing the number of the currently displayed target objects in the change direction according to the number of the changed actual objects.
Further, to achieve the above object, the present invention also provides an object display changing apparatus including: the system comprises a memory, a processor and an object display change program stored on the memory and capable of running on the processor, wherein the object display change program realizes the steps of the method when being executed by the processor.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon an object display change program, which when executed by a processor, implements the steps of the above method.
The invention provides an object display change method, device and equipment and a computer readable storage medium. The object display change method comprises the steps of firstly determining a target object to be changed and displayed, then obtaining the size parameter and the movement indication information of the target object, obtaining the number and the change direction of the target object to be changed according to the size parameter and the movement indication information, and further automatically updating the current display content of the target object according to the change number and the change direction. And because the size parameters of the objects are fixed parameters, the terminal can be directly obtained, so that if a user needs to increase or reduce the number of the target objects in batches, the terminal can increase or reduce the display number of the target objects in batches in the specified moving direction only by sending corresponding moving indication information without copying or deleting the target objects one by the user, thereby greatly improving the efficiency of changing the display number of the objects and solving the technical problem of low efficiency of the existing method for changing the display number of the objects.
Drawings
FIG. 1 is a schematic diagram of an object display change apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for displaying an object according to the present invention;
fig. 3 is a schematic view of a scenario in which suit coat pattern styles are copied in batch in design software according to an embodiment of a second embodiment of the object display change method according to the present invention;
FIG. 4 is a schematic view of a scenario of batch copy of shoe pattern styles in design software according to a second embodiment of an object display variation method according to the present invention;
FIG. 5 is a functional block diagram of an object display variation apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of an object display change apparatus in a hardware operating environment according to an embodiment of the present invention.
The object display change device in the embodiment of the invention is a terminal device with a display function.
As shown in fig. 1, the object display varying apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The optional user interface 1003 may include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory). The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.
It will be understood by those skilled in the art that the object display variation device configuration shown in fig. 1 does not constitute a limitation of the object display variation device, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an object display change program.
In the object display changing apparatus shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the object display change program stored in the memory 1005, and perform the following operations:
determining a target object, and acquiring an object size parameter and movement indication information of the target object;
and determining the change number and the change direction of the target object according to the object size parameter and the movement indication information so as to update the display content of the target object based on the change number and the change direction.
Further, the movement indication information includes a linear movement direction and a dragging distance,
the step of determining the change number and the change direction of the target object according to the object size parameter and the movement indication information, and updating the display content of the target object based on the change number and the change direction includes:
taking the linear moving direction as the change direction, and calculating the increased number or the decreased number of the target objects according to a preset first display interval, the dragging distance and the object size parameter to obtain the change number;
and copying or deleting the corresponding amount of target object display data according to the increased number or the decreased number so as to increase or decrease the display number of the target objects in the linear direction.
Further, the step of calculating the increased number or the decreased number of the target objects to obtain the changed number includes:
calculating to obtain the increased number or the decreased number of the target objects, and judging whether the increased number or the decreased number is an integer;
if so, taking the increased number or the decreased number as the changed number;
and if not, displaying two integers adjacent to the increased number or the decreased number for the user to select any one of the two integers as the change number.
Further, the step of determining the target object and acquiring the object size parameter and the movement indication information of the target object includes:
when a target selection instruction is received, determining a target object according to the target selection instruction, and acquiring starting point coordinate data and object size parameters of the target object;
when a dragging instruction is received, acquiring the coordinate data of the moving end point and the linear moving direction of the target object based on the dragging instruction;
and obtaining the dragging distance of the target object according to the coordinate data of the starting point and the coordinate data of the moving end point.
Further, before the step of acquiring the movement end point coordinate data and the linear movement direction of the target object based on the drag instruction when the drag instruction is received, the processor 1001 may be configured to call an object display change program stored in the memory 1005, and perform the following operations:
generating and displaying a movement direction indication arrow for a user to select the linear movement direction based on the movement direction indication arrow.
Further, the movement indication information includes a curved movement trace,
the step of determining the change number and the change direction of the target object according to the object size parameter and the movement indication information, and updating the display content of the target object based on the change number and the change direction includes:
converting the curve movement track into a plurality of line segments connected end to end according to a preset second display interval and the object size parameter, and taking the line segment directions of the plurality of line segments connected end to end as the change direction;
acquiring the number of line segment end points and line segment end point coordinate data in the plurality of line segments connected end to end, and copying or deleting corresponding amount of target object display data on each line segment end point based on the number of line segment end points and the line segment end point coordinate data so as to increase or decrease the display number of the target objects in the line segment direction.
Further, after the step of determining the number of changes and the direction of changes of the target object according to the object size parameter and the movement indication information, so as to update the display content of the target object based on the number of changes and the direction of changes, the processor 1001 may be configured to call an object display change program stored in the memory 1005, and perform the following operations:
obtaining the number of actual objects based on the change number, and generating and displaying an object number editing frame containing the number of the actual objects so that a user can change the number of the actual objects in the object number editing frame;
and acquiring the number of the changed actual objects, and increasing or decreasing the number of the currently displayed target objects in the change direction according to the number of the changed actual objects.
Based on the above hardware structure, various embodiments of the object display change method of the present invention are proposed.
With the combination of computer technology and traditional design industries, various design software brings great convenience to daily work of designers. In the existing design software, objects such as clothes and props are often required to be copied or deleted, and the common operation mode is as follows: selecting the object by the mouse, copying and pasting the object by using shortcut keys ctrl + c and ctrl + v, deleting the object by using a delete key, or copying, pasting and deleting the object by using a right-click menu of the mouse.
However, in the design work, a large number of identical clothes and prop combinations need to be designed many times, keys need to be repeatedly pressed when the clothes and props are increased or decreased in batch copy, and if the clothes and props are operated based on the same coordinate axis, the increased objects need to be aligned in a coordinate adjusting mode one by one, so that the operation is time-consuming and labor-consuming, and the technical problem that the existing mode for changing the number of the displayed objects is low in efficiency is caused.
In order to solve the technical problem, the invention provides an object display change method, namely, a target object to be changed and displayed is determined firstly, and then the size parameter and the movement indication information of the target object are obtained, so that the number and the change direction of the target object to be changed can be obtained according to the size parameter and the movement indication information, and the current display content of the target object is automatically updated according to the change number and the change direction. And because the size parameters of the objects are fixed parameters, the terminal can be directly obtained, so that if a user needs to increase or reduce the number of the target objects in batches, the terminal can increase or reduce the display number of the target objects in batches in the specified moving direction only by sending corresponding moving indication information without copying or deleting the target objects one by the user, thereby greatly improving the efficiency of changing the display number of the objects and solving the technical problem of low efficiency of the existing method for changing the display number of the objects.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of an object display change method.
A first embodiment of the present invention provides an object display change method, including:
step S10, determining a target object, and acquiring an object size parameter and movement indication information of the target object;
in the embodiment, the method is applied to the terminal equipment with the display function.
The target object refers to the single multiple object content of the display content of the target object, which needs to be changed currently, for example, if only the pattern of a shirt is drawn in the current display interface of the design software, the user wants to copy and display the shirt into ten pieces at the moment, and the pattern corresponding to the original shirt is the target object; if the current display interface of the design software is drawn with the patterns of five shirts, and the user wants to copy and display the shirts into ten pieces at the moment, the target object at the moment can be the pattern corresponding to an individual shirt or the pattern corresponding to the existing five shirts. The dimension of the target object may be two-dimensional or three-dimensional, which is not limited in this embodiment.
The object size parameter refers to a size parameter of the target object in each dimension, such as a length, a width, a height, and the like of the target object.
The movement instruction information refers to information indicating a direction, a distance, or a track of a target object moving on a page when the number of displayed objects is increased or decreased, and is generally sent by a user, and specifically, the user may send the information based on a mouse, a button, or a touch screen.
The movement trajectory of the target object indicated by the movement instruction information may be a straight line, a polygonal line, a curved line, or the like.
The terminal determines the target object in the task of increasing or decreasing the number of the objects in real time or according to a preset instruction of a user, directly detects the object size parameter of the target object after the determination, and then obtains the movement instruction information according to the real time or preset instruction of the user.
Step S20, determining the number of changes and the direction of changes of the target object according to the object size parameter and the movement instruction information, so as to update the display content of the target object based on the number of changes and the direction of changes.
In the present embodiment, the number of changes refers to the number of increases or decreases of the target object. The changing direction refers to a direction of a trajectory formed when the number of target objects increases or decreases. The display content refers to the position and number of the target objects displayed in the page.
And the terminal determines the number of changes of the target object which need to be increased or decreased at the moment and which direction of the page to increase or decrease according to the object size parameter of the target object and the movement indication information indicated by the user so as to complete the increase and decrease change of the display number of the target object.
In addition, when the user does not determine the final increase and decrease scheme, the terminal can display the increase and decrease effect preview of the display number of the target objects, which can be realized by the current instruction operation of the user, in real time, so that the user can more intuitively know the actual effect of increase and decrease, and the actually required increase and decrease instruction is made according to the effect preview.
In the embodiment, by determining a target object, an object size parameter and movement indication information of the target object are obtained; and determining the change number and the change direction of the target object according to the object size parameter and the movement indication information so as to update the display content of the target object based on the change number and the change direction. Through the mode, the target object needing to be changed and displayed is determined, and then the size parameter and the movement indication information of the target object are obtained, so that the number and the change direction of the target object needing to be changed can be obtained according to the size parameter and the movement indication information, and the current display content of the target object is automatically updated according to the change number and the change direction. And because the size parameters of the objects are fixed parameters, the terminal can directly obtain the size parameters, so that if a user needs to increase or reduce the number of the target objects in batch, the terminal can increase or reduce the display number of the target objects in batch in the specified moving direction only by sending corresponding moving indication information without copying or deleting the target objects one by the user, thereby greatly improving the efficiency of changing the display number of the objects and solving the technical problem of low efficiency of the conventional method for changing the display number of the objects.
Further, based on the first embodiment shown in fig. 2, a second embodiment of the object display change method according to the present invention is proposed, in this embodiment, the movement indication information includes a linear movement direction and a dragging distance, and step S20 includes:
taking the linear moving direction as the changing direction, and calculating the increased number or the decreased number of the target objects according to a preset first display interval, the dragging distance and the object size parameter to obtain the changing number;
and copying or deleting the corresponding amount of target object display data according to the increased number or the decreased number so as to increase or decrease the display number of the target objects in the linear direction.
In this embodiment, the preset first display interval refers to a distance between each target object when the movement track of the target object indicated by the movement indication information is a straight line and a plurality of target objects need to be displayed. Can be flexibly set according to actual requirements.
Since the moving track is a straight line, the terminal can directly use the straight line moving direction as the changing direction, and then the number of the target objects which need to be increased or decreased at the moment is calculated by combining the preset first display interval, the dragging distance and the object size parameter, so that the final changing number of the target objects which need to be increased or decreased is calculated based on the increased number or the decreased number.
As a specific embodiment, the specific way of calculating the number of the increased or decreased number is divided into two cases:
first, if the linear moving direction is the X-axis direction, the object width in the object size data is needed, and the terminal can calculate by using the following formula:
increasing or decreasing the number, i.e., the dragging distance/(the object width + the preset first display interval);
second, if the linear movement direction is the Y-axis direction, the object height in the object size data is needed, and the terminal can calculate the object height by using the following companies:
the number of the increase or decrease is the dragging distance/(the object height + the preset first display interval).
It should be noted that, since the final number of changes of the target object needs to be an integer, if the result directly calculated by the terminal according to the above formula is not an integer, the result can be directly rounded to obtain an integer result, or the user can select an integer close to the non-integer result.
Further, the step of calculating the increased number or the decreased number of the target objects to obtain the changed number includes:
calculating to obtain the increased number or the decreased number of the target objects, and judging whether the increased number or the decreased number is an integer;
if so, taking the increased number or the decreased number as the changed number;
and if not, displaying two integers adjacent to the increased number or the decreased number for the user to select any one of the two integers as the change number.
In this embodiment, the case where the user selects the integer result by himself is explained.
After the terminal calculates the increased or decreased number of the target objects, it is also necessary to determine whether the number is an integer. If the terminal judges that the number is an integer, the terminal directly takes the integer as the final change number of the target object; if the terminal judges that the number is not an integer, the terminal needs to perform integer processing. For example, if the calculation result at this time is 3.5, the terminal needs to display two integers 3 and 4 adjacent to the size of 3.5, and the user selects 3 or 4 as the final number of changes.
Further, step S10 includes:
when a target selection instruction is received, determining a target object according to the target selection instruction, and acquiring starting point coordinate data and object size parameters of the target object;
when a dragging instruction is received, acquiring the coordinate data of the moving end point and the linear moving direction of the target object based on the dragging instruction;
and obtaining the dragging distance of the target object according to the coordinate data of the starting point and the coordinate data of the moving end point.
In this embodiment, the target selection instruction refers to an instruction for a user to select an object in the terminal display interface based on a mouse, a touch screen, or a key.
The starting point coordinate data refers to coordinate data of a certain point in the target object in the display interface, and usually selected is midpoint coordinate data of the target object.
The drag instruction refers to an instruction for a user to drag a target object to move through a mouse, a button, or a touch screen.
The movement destination coordinate data refers to coordinate data of a certain point in the target object in the display interface when the user drags the target object to the final position, and the selected certain point needs to be consistent with the start point coordinate, for example, the start point coordinate selects the middle point of the target object, and the movement destination coordinate also selects the middle point of the moved target object.
In addition, when the user drags the target object, the terminal can correspondingly display the preview of the dragging effect, so that the user can intuitively feel the increasing and decreasing effects of the target object along with the dragging.
Further, before the step of acquiring the movement end point coordinate data and the linear movement direction of the target object based on the drag instruction when the drag instruction is received, the method further includes:
and generating and displaying a moving direction indication arrow for a user to select the linear moving direction based on the moving direction indication arrow.
In this embodiment, the application scenario is generally a display interface in the design software.
The moving direction indication arrow may specifically indicate any linear direction, and generally indicates four directions, i.e., up, down, left, and right.
As an embodiment, as shown in fig. 3, a scenario of batch replication of a suit jacket design in design software is shown. The movement direction indication arrow at this time shows only a horizontal rightward direction due to the limitation of the belonging display area of the suit jacket in the entire program. When a user clicks and selects the first side view pattern of the suit jacket, a horizontal rightward indicating arrow can be displayed in the interface, the user drags rightward under the indication of the arrow by using a mouse, the terminal can display a plurality of same side view patterns of the suit jacket according to the increase of the actual dragging distance, and the final effect of additionally displaying four side views is displayed in the process shown in fig. 3.
As shown in fig. 4, 4 shows a scenario in which a pair of shoe pattern patterns are copied in batch in the design software. The lower right corner in fig. 4 is a display area of shoe patterns, and the terminal can intelligently judge that the patterns corresponding to the shoes can be copied and increased towards the horizontal right direction and the vertical upward direction according to the blank area, so that the displayed movement indication arrows in the horizontal right direction and the vertical upward direction can be displayed.
Furthermore, when the moving track is a straight line, the user can directly drag the moving track to increase or reduce the display number of the target objects, and a very convenient operation mode is provided for the user, so that the efficiency of increasing and decreasing the objects in batches is improved, and the user experience is greatly improved; when the calculated change number is not an integer, the user selects an integer close to the change number by himself, so that user experience is further improved; the moving direction indication arrow is displayed for the user, so that the user can directly drag in the arrow indication direction to achieve the operations of quick copying and increase and decrease.
Further, a third embodiment of the object display changing method of the present invention is proposed based on the first embodiment shown in fig. 2 described above. In this embodiment, the movement instruction information includes a curved movement trajectory, and step S20 includes:
converting the curve movement track into a plurality of line segments connected end to end according to a preset second display interval and the object size parameter, and taking the line segment directions of the plurality of line segments connected end to end as the change direction;
acquiring the number of line segment end points and line segment end point coordinate data in the plurality of line segments connected end to end, and copying or deleting corresponding amount of target object display data on each line segment end point based on the number of line segment end points and the line segment end point coordinate data so as to increase or decrease the display number of the target objects in the line segment direction.
In this embodiment, the moving trajectory of the target object may also be a curve. For the curve, the terminal only needs to be based on the differential idea, and the curve is regarded as being formed by connecting a plurality of line segments.
The preset second display interval refers to an interval distance between each target object when the moving track of the target object indicated by the moving indication information is a curve and a plurality of target objects need to be displayed. The first display interval can be kept consistent with the preset first display interval, and can also be set in a distinguishing manner, and the first display interval can be flexibly set according to actual requirements.
The terminal converts the moving track of the curve into a plurality of line segments which are connected end to end according to a preset second display interval and the width or the height of the target object, the number of the end points of the line segments except the starting point can be used as the changing number of the target object, and the end point coordinate of each line segment end point can be used as the coordinate of a certain point (such as a middle point) in the target object which needs to be copied or deleted. And the terminal correspondingly increases or decreases the display number of the target object according to the number of the line segment end points and the coordinate data.
Further, after step S20, the method further includes:
obtaining the number of actual objects based on the change number, and generating and displaying an object number editing frame containing the number of the actual objects so that a user can change the number of the actual objects in the object number editing frame;
and acquiring the number of the changed actual objects, and increasing or decreasing the number of the currently displayed target objects in the change direction according to the number of the changed actual objects.
In this embodiment, after the batch increase and decrease, the terminal may provide the user with a function of changing the number of displayed target objects by the number only according to the change trajectory of the last time.
The terminal can add the number of the changed objects to the original number of the target objects (usually 1) to obtain the number of the actual objects, for example, the number of the actually displayed coat patterns is 10, the terminal displays the number 10 in an editable display frame, and the user can change the number 10 in the frame, for example, the user changes the number 10 to 12, so that the terminal can additionally display two same coat patterns according to the original moving direction (for example, horizontal to right) on the basis of the original display of the 10 coat patterns, thereby achieving the purpose of convenient operation.
In the embodiment, when the moving track is a curve, the curve is converted into a plurality of connected line segments, and the target object is increased or decreased and displayed on the end points of the line segments, so that a user can quickly increase or decrease and display the target object by using the curve as a path; the function that the display number of the target objects can be correspondingly changed only by changing the number is provided after the moving track is specified for the first time, so that the operation of a user is further facilitated.
The invention also provides an object display change device. As shown in fig. 5, the object display changing means includes:
a parameter information obtaining module 10, configured to determine a target object, and obtain an object size parameter and movement indication information of the target object;
and a display content updating module 20, configured to determine a change number and a change direction of the target object according to the object size parameter and the movement indication information, so as to update the display content of the target object based on the change number and the change direction.
The invention also provides an object display change device.
The object display changing device comprises a processor, a memory and an object display changing program stored on the memory and capable of running on the processor, wherein the object display changing program realizes the steps of the object display changing method when being executed by the processor.
The method implemented when the object display change program is executed may refer to various embodiments of the object display change method of the present invention, and details thereof are not repeated herein.
The invention also provides a computer readable storage medium.
The computer-readable storage medium of the present invention stores thereon an object display change program which, when executed by a processor, implements the steps of the object display change method as described above.
The method implemented when the object display change program is executed may refer to various embodiments of the object display change method of the present invention, and details thereof are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing an object display changing apparatus to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (9)
1. An object display change method, characterized by comprising:
determining a target object, and acquiring an object size parameter and movement indication information of the target object;
determining the change number and the change direction of the target object according to the object size parameter and the movement indication information so as to update the display content of the target object based on the change number and the change direction;
wherein the movement instruction information includes a curved movement trajectory, and the step of determining the change number and the change direction of the target object according to the object size parameter and the movement instruction information to update the display content of the target object based on the change number and the change direction includes:
converting the curve movement track into a plurality of line segments connected end to end according to a preset second display interval and the object size parameter, and taking the line segment directions of the plurality of line segments connected end to end as the change direction;
acquiring the number of line segment end points and line segment end point coordinate data in the plurality of line segments connected end to end, and copying or deleting corresponding amount of target object display data on each line segment end point based on the number of line segment end points and the line segment end point coordinate data so as to increase or decrease the display number of the target objects in the line segment direction.
2. The object display change method according to claim 1, wherein the movement instruction information includes a straight line movement direction and a drag distance,
the step of determining the change number and the change direction of the target object according to the object size parameter and the movement indication information, and updating the display content of the target object based on the change number and the change direction includes:
taking the linear moving direction as the change direction, and calculating the increased number or the decreased number of the target objects according to a preset first display interval, the dragging distance and the object size parameter to obtain the change number;
and copying or deleting the corresponding amount of target object display data according to the increased number or the decreased number so as to increase or decrease the display number of the target objects in the change direction.
3. The object display change method according to claim 2, wherein the step of calculating the increased number or the decreased number of the target objects to obtain the changed number comprises:
calculating to obtain the increased number or the decreased number of the target objects, and judging whether the increased number or the decreased number is an integer;
if so, taking the increased number or the decreased number as the changed number;
and if not, displaying two integers adjacent to the increased number or the decreased number for the user to select any one of the two integers as the change number.
4. The object display change method according to claim 2, wherein the step of determining the target object, and acquiring the object size parameter and the movement indication information of the target object comprises:
when a target selection instruction is received, determining a target object according to the target selection instruction, and acquiring starting point coordinate data and object size parameters of the target object;
when a dragging instruction is received, acquiring the coordinate data of the moving end point and the linear moving direction of the target object based on the dragging instruction;
and obtaining the dragging distance of the target object according to the coordinate data of the starting point and the coordinate data of the moving end point.
5. The method for changing display of an object according to claim 4, wherein before the step of acquiring the coordinate data of the movement destination and the direction of the linear movement of the target object based on the drag instruction when the drag instruction is received, the method further comprises:
and generating and displaying a moving direction indication arrow for a user to select the linear moving direction based on the moving direction indication arrow.
6. The object display changing method according to any one of claims 1 to 5, wherein after the step of determining the number of changes and the direction of changes of the target object based on the object size parameter and the movement indication information to update the display content of the target object based on the number of changes and the direction of changes, the method further comprises:
obtaining the number of actual objects based on the change number, and generating and displaying an object number editing frame containing the number of the actual objects so that a user can change the number of the actual objects in the object number editing frame;
and acquiring the number of the changed actual objects, and increasing or decreasing the number of the currently displayed target objects in the change direction according to the number of the changed actual objects.
7. An object display changing apparatus, characterized in that the object display changing apparatus comprises:
the parameter information acquisition module is used for determining a target object and acquiring the object size parameter and the movement indication information of the target object;
the display content updating module is used for determining the change number and the change direction of the target object according to the object size parameter and the movement indication information so as to update the display content of the target object based on the change number and the change direction;
the display content updating module is further configured to convert the curve movement trajectory into a plurality of end-to-end line segments according to a preset second display interval and the object size parameter, and take line segment directions of the plurality of end-to-end line segments as the change directions;
and the system is also used for acquiring the number of line segment end points and line segment end point coordinate data in the plurality of line segments connected end to end, and copying or deleting the corresponding amount of target object display data on each line segment end point based on the number of line segment end points and the line segment end point coordinate data so as to increase or decrease the display number of the target objects in the line segment direction.
8. An object display change apparatus, characterized by comprising: memory, a processor and an object display variation program stored on the memory and executable on the processor, the object display variation program when executed by the processor implementing the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, having stored thereon an object display variation program, which when executed by a processor, implements the steps of the method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110010082.8A CN112764644B (en) | 2021-01-04 | 2021-01-04 | Object display change method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110010082.8A CN112764644B (en) | 2021-01-04 | 2021-01-04 | Object display change method, device, equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112764644A CN112764644A (en) | 2021-05-07 |
CN112764644B true CN112764644B (en) | 2022-06-28 |
Family
ID=75699818
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110010082.8A Active CN112764644B (en) | 2021-01-04 | 2021-01-04 | Object display change method, device, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112764644B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106779977A (en) * | 2017-01-16 | 2017-05-31 | 深圳市娜尔思时装有限公司 | A kind of garment coordination method and its system based on intelligent mobile terminal |
CN108268206A (en) * | 2017-01-04 | 2018-07-10 | 阿里巴巴集团控股有限公司 | The method, apparatus of display result of the regulating object in interface and mobile equipment |
CN111338546A (en) * | 2020-02-28 | 2020-06-26 | 歌尔科技有限公司 | Method for controlling head-mounted display device, terminal and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100435171C (en) * | 2006-03-31 | 2008-11-19 | 北京北大方正电子有限公司 | Method for arranging three dimension figure |
US9865069B1 (en) * | 2014-11-25 | 2018-01-09 | Augmented Reality Concepts, Inc. | Method and system for generating a 360-degree presentation of an object |
CN109068053B (en) * | 2018-07-27 | 2020-12-04 | 香港乐蜜有限公司 | Image special effect display method and device and electronic equipment |
US10832525B2 (en) * | 2018-08-10 | 2020-11-10 | Aristocrat Technologies Australia Pty Limited | Systems and methods of electronic gaming including an upgradeable game object |
CN111450527A (en) * | 2020-04-30 | 2020-07-28 | 网易(杭州)网络有限公司 | Information processing method and device |
-
2021
- 2021-01-04 CN CN202110010082.8A patent/CN112764644B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108268206A (en) * | 2017-01-04 | 2018-07-10 | 阿里巴巴集团控股有限公司 | The method, apparatus of display result of the regulating object in interface and mobile equipment |
CN106779977A (en) * | 2017-01-16 | 2017-05-31 | 深圳市娜尔思时装有限公司 | A kind of garment coordination method and its system based on intelligent mobile terminal |
CN111338546A (en) * | 2020-02-28 | 2020-06-26 | 歌尔科技有限公司 | Method for controlling head-mounted display device, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112764644A (en) | 2021-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107870887B (en) | Computing device, graph display method for computing device, and recording medium | |
CN108920048B (en) | Large drawing browsing method, system, server and computer readable storage medium | |
CN108108194B (en) | User interface editing method and user interface editor | |
WO2005104041A1 (en) | Image plotting device and method thereof | |
KR20160003683A (en) | Automatically manipulating visualized data based on interactivity | |
CN109669617A (en) | Method and apparatus for switching the page | |
CN110704769A (en) | Flow chart generation method, device and equipment and computer storage medium | |
JP5981175B2 (en) | Drawing display device and drawing display program | |
CN110990431A (en) | Method for realizing synchronous linkage carousel of China map and line graph data | |
CN112162687A (en) | Picture generation method and device, storage medium and electronic equipment | |
CN112764644B (en) | Object display change method, device, equipment and computer readable storage medium | |
CN113407878B (en) | Page adaptation method, display terminal and readable storage medium | |
JP6863918B2 (en) | Control programs, control methods and information processing equipment | |
JP2996933B2 (en) | Drawing display device | |
CN106933463A (en) | A kind of method and apparatus that object is shown in screen | |
CN110751417B (en) | Storage model establishing method and device, electronic equipment and storage medium | |
CN113204297B (en) | Method and device for selecting elements in graphic primitive, electronic equipment and storage medium | |
CN113448473B (en) | Visual operation method and device for picture cropping area | |
JP6587237B2 (en) | Program, information processing method, image processing apparatus, and server | |
CN111782309B (en) | Method and device for displaying information and computer readable storage medium | |
JP2015022524A (en) | Terminal device and system | |
US11531465B2 (en) | Display control apparatus, non-transitory recording medium and display controlling method for creating first tag, second tag not overlapping other tags displayed, and indicator correlating second tag with first tag | |
CN113126866A (en) | Object determination method and device, electronic equipment and storage medium | |
CN111225005B (en) | Push content generation method and device, electronic equipment and computer storage medium | |
CN107220335B (en) | Map plotting method and device, terminal device and readable storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |