CN110533746B - Method, device, device and storage medium for generating responsive hotspot view - Google Patents
Method, device, device and storage medium for generating responsive hotspot view Download PDFInfo
- Publication number
- CN110533746B CN110533746B CN201910736358.3A CN201910736358A CN110533746B CN 110533746 B CN110533746 B CN 110533746B CN 201910736358 A CN201910736358 A CN 201910736358A CN 110533746 B CN110533746 B CN 110533746B
- Authority
- CN
- China
- Prior art keywords
- view
- hotspot
- generating
- responsive
- storage device
- 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
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000004590 computer program Methods 0.000 claims description 12
- 230000006870 function Effects 0.000 claims description 12
- 230000000694 effects Effects 0.000 claims description 8
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 2
- 230000008676 import Effects 0.000 description 2
- 239000000725 suspension Substances 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
Abstract
本发明公开了一种存储设备的响应式热点视图的生成方法,包括:接收矢量绘图指令和设备视图,其中,设备视图为拍摄设备部件获得的图片;在设备视图上生成圈定设备视图的热点区域的线条,获得以设备视图为背景的热点视图;根据矢量绘图指令包含的设备视图对应的设备部件类型,按照预定命名规则为热点视图命名,并导出SVG格式的热点视图。本申请中采用矢量图绘制工具,获得以设备部件的真实图像为背景的热点视图,在用户对热点视图进行缩放时,即可实现热点图像的相对定位,避免热点图像定位发生偏移的问题。本申请中还提供了一种存储设备的响应式热点视图的生成装置、设备以及计算机可读存储介质,具有上述有益效果。
The invention discloses a method for generating a responsive hot spot view of a storage device, comprising: receiving a vector drawing instruction and a device view, wherein the device view is a picture obtained by photographing a device component; and generating a hot spot area delimiting the device view on the device view to obtain the hotspot view with the device view as the background; according to the device component type corresponding to the device view contained in the vector drawing instruction, name the hotspot view according to the predetermined naming rules, and export the hotspot view in SVG format. In the present application, a vector drawing tool is used to obtain a hotspot view with the real image of the device component as the background. When the user zooms the hotspot view, the relative positioning of the hotspot image can be realized to avoid the problem of the positional deviation of the hotspot image. The present application also provides an apparatus, device, and computer-readable storage medium for generating a responsive hotspot view of a storage device, which have the above beneficial effects.
Description
技术领域technical field
本发明涉及计算机技术领域,特别是涉及一种存储设备的响应式热点视图的生成方法、装置、设备以及计算机可读存储介质。The present invention relates to the field of computer technologies, and in particular, to a method, apparatus, device, and computer-readable storage medium for generating a responsive hotspot view of a storage device.
背景技术Background technique
在存储管理软件中,为了更直观的为用户呈现存储设备的各个关键部件,如控制器、风扇、电池以及各种端口等;可以在显示界面上向用户呈现设备视图,以供用户参考。当鼠标悬浮或点击某个部件的设备视图时,能通过增加特殊的强调性样式突出显示该部件,并可为其添加响应事件。In the storage management software, in order to more intuitively present the key components of the storage device, such as the controller, fan, battery, and various ports, the device view can be presented to the user on the display interface for the user's reference. When the mouse hovers or clicks on the device view of a component, the component can be highlighted by adding a special emphasis style, and a response event can be added to it.
但是传统的设备视图在鼠标悬浮或点击时,若缩放整图,将导致热点偏移错乱,使得用户难以准确选择热点区域的问题。However, in the traditional device view, when the mouse is hovered or clicked, if the entire image is zoomed and zoomed, the hotspot will be offset and confused, making it difficult for the user to accurately select the hotspot area.
发明内容SUMMARY OF THE INVENTION
本发明的目的是提供一种存储设备的响应式热点视图的生成方法、装置、设备以及计算机可读存储介质,解决了设备的热点视图缩放时,用户难以准确选择热点区域的问题。The purpose of the present invention is to provide a method, apparatus, device and computer-readable storage medium for generating a responsive hotspot view of a storage device, which solves the problem that it is difficult for a user to accurately select a hotspot area when the hotspot view of the device is zoomed.
为解决上述技术问题,本发明提供一种存储设备的响应式热点视图的生成方法,包括:In order to solve the above technical problems, the present invention provides a method for generating a responsive hotspot view of a storage device, including:
接收矢量绘图指令和设备视图,其中,所述设备视图为拍摄设备部件获得的图片;receiving a vector drawing instruction and a device view, wherein the device view is a picture obtained by photographing a device component;
在所述设备视图上生成圈定所述设备视图的热点区域的线条,获得以所述设备视图为背景的热点视图;generating a line delineating the hotspot area of the device view on the device view to obtain a hotspot view with the device view as a background;
根据所述矢量绘图指令包含的所述设备视图对应的设备部件类型,按照预定命名规则为所述热点视图命名,并导出SVG格式的所述热点视图。According to the device component type corresponding to the device view included in the vector drawing instruction, the hotspot view is named according to a predetermined naming rule, and the hotspot view in SVG format is exported.
其中,所述设备视图的像素宽度为1600PX以上。Wherein, the pixel width of the device view is more than 1600px.
其中,所述在所述设备视图上生成圈定所述设备视图的热点区域的线条包括:Wherein, the generating, on the device view, a line delineating the hotspot area of the device view includes:
识别所述设备视图的边缘线,沿所述设备视图的边缘线生成圈定所述热点区域的线条。An edge line of the device view is identified, and a line encircling the hot spot area is generated along the edge line of the device view.
其中,在导出SVG格式的所述热点视图之后,还包括:Wherein, after exporting the hotspot view in SVG format, the method further includes:
根据所述热点视图的命名对所述热点视图进行识别;Identifying the hotspot view according to the name of the hotspot view;
将识别到的所述热点视图绑定对应事件,以及所述热点图像的悬浮和单击效果的功能。The identified hotspot view is bound to a corresponding event, as well as the functions of hovering and clicking effects of the hotspot image.
本申请中还提供了一种存储设备的响应式热点视图的生成装置,包括:The present application also provides an apparatus for generating a responsive hotspot view of a storage device, including:
指令接收模块,用于接收矢量绘图指令和设备视图,其中,所述设备视图为拍摄设备部件获得的图片;an instruction receiving module for receiving vector drawing instructions and a device view, wherein the device view is a picture obtained by photographing a device component;
视图生成模块,用于在所述设备视图上生成圈定所述设备视图的热点区域的线条,获得以所述设备视图为背景的热点视图;a view generation module, configured to generate a line delimiting a hotspot area of the device view on the device view, and obtain a hotspot view with the device view as a background;
命名导出模块,用于根据所述矢量绘图指令包含的所述设备视图对应的设备部件类型,按照预定命名规则为所述热点视图命名,并导出SVG格式的所述热点视图。A naming and exporting module, configured to name the hotspot view according to a predetermined naming rule according to the device component type corresponding to the device view included in the vector drawing instruction, and export the hotspot view in SVG format.
其中,包括:Among them, including:
所述指令接收模块接收的所述设备视图的像素宽度为1600PX以上。The pixel width of the device view received by the instruction receiving module is more than 1600px.
其中,所述视图生成模块具体用于识别所述设备视图的边缘线,沿所述设备视图的边缘线生成圈定所述热点区域的线条。Wherein, the view generation module is specifically configured to identify the edge line of the device view, and generate a line delineating the hot spot area along the edge line of the device view.
其中,还包括功能绑定模块,用于根据所述热点视图的命名对所述热点视图进行识别;将识别到的所述热点视图绑定对应事件,以及所述热点图像的悬浮和单击效果的功能。It also includes a function binding module for identifying the hotspot view according to the name of the hotspot view; binding the identified hotspot view to a corresponding event, as well as the hovering and clicking effects of the hotspot image function.
本申请中还提供了一种存储设备的响应式热点视图的生成设备,包括:The present application also provides a device for generating a responsive hotspot view of a storage device, including:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序,以实现如上任一项所述的存储设备的响应式热点视图的生成方法的步骤。The processor is configured to execute the computer program to implement the steps of the method for generating a responsive hotspot view of a storage device according to any one of the above.
本申请中还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上任一项所述存储设备的响应式热点视图的生成方法方法的步骤。The present application also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, realizes the responsive hotspot view of the storage device according to any one of the above The steps of the generation method method.
本发明所提供的存储设备的响应式热点视图的生成方法,包括:接收矢量绘图指令和设备视图,其中,设备视图为拍摄设备部件获得的图片;在设备视图上生成圈定设备视图的热点区域的线条,获得以设备视图为背景的热点视图;根据矢量绘图指令包含的设备视图对应的设备部件类型,按照预定命名规则为热点视图命名,并导出SVG格式的热点视图。The method for generating a responsive hotspot view of a storage device provided by the present invention includes: receiving a vector drawing instruction and a device view, wherein the device view is a picture obtained by shooting a device component; line to obtain the hotspot view with the device view as the background; according to the device component type corresponding to the device view contained in the vector drawing instruction, name the hotspot view according to the predetermined naming rules, and export the hotspot view in SVG format.
本申请中采用矢量图绘制工具,在设备视图上绘制出热点区域,获得以设备视图为背景图片的热点视图,其中,该设备视图是对设备部件拍摄而获得的图像,在用户对热点视图进行缩放时,即可实现热点图像的相对定位,避免热点图像定位发生偏移的问题;与此同时还采用对设备部件拍摄的图像作为背景,有利于用户对热点视图的识别,增强热点视图的可读性,为用户的操作提供便利,提高用户使用体验。In this application, a vector drawing tool is used to draw a hotspot area on the device view to obtain a hotspot view with the device view as a background picture, wherein the device view is an image obtained by photographing a device component, and the user performs the hotspot view on the hotspot view. When zooming, the relative positioning of the hotspot image can be realized to avoid the problem of the positional deviation of the hotspot image; at the same time, the image captured by the device components is used as the background, which is conducive to the user's identification of the hotspot view and enhances the availability of the hotspot view. Readability, provides convenience for user operations and improves user experience.
本申请中还提供了一种存储设备的响应式热点视图的生成装置、设备以及计算机可读存储介质,具有上述有益效果。The present application also provides an apparatus, device, and computer-readable storage medium for generating a responsive hotspot view of a storage device, which have the above beneficial effects.
附图说明Description of drawings
为了更清楚的说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following will briefly introduce the accompanying drawings used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only For some embodiments of the present invention, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1为本发明实施例提供的存储设备的响应式热点视图的生成方法的流程示意图;1 is a schematic flowchart of a method for generating a responsive hotspot view of a storage device according to an embodiment of the present invention;
图2为本发明实施例提供的存储设备的响应式热点视图的生成装置的结构框图;2 is a structural block diagram of an apparatus for generating a responsive hotspot view of a storage device according to an embodiment of the present invention;
图3为本发明实施例提供的存储设备的响应式热点视图的生成设备的结构示意图。FIG. 3 is a schematic structural diagram of a device for generating a responsive hotspot view of a storage device according to an embodiment of the present invention.
具体实施方式Detailed ways
本发明的核心是提供一种存储设备的响应式热点视图的生成方法、装置、设备及计算机可读存储介质,解决了热点视图缩放后,定位不准确的问题。The core of the present invention is to provide a method, apparatus, device and computer-readable storage medium for generating a responsive hotspot view of a storage device, which solves the problem of inaccurate positioning after the hotspot view is zoomed.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make those skilled in the art better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
如图1所示,图1为本发明实施例提供的存储设备的响应式热点视图的生成方法的流程示意图,该方法可以包括:As shown in FIG. 1, FIG. 1 is a schematic flowchart of a method for generating a responsive hotspot view of a storage device according to an embodiment of the present invention, and the method may include:
步骤S11:接收矢量绘图指令和设备视图。Step S11: Receive vector drawing instructions and device views.
具体地,用户在绘制热点视图时,开启矢量绘图工具后,可以直接输入设备视图。该矢量绘图工具可以是Adobe Illustrator绘图软件或CorelDRAW绘图软件。Specifically, when the user draws the hotspot view, after starting the vector drawing tool, the user can directly input the device view. The vector drawing tool can be Adobe Illustrator drawing software or CorelDRAW drawing software.
其中,本实施例中的设备视图为拍摄设备部件获得的图片,设备部件具体可以是控制器、风扇、电池等等部件。Wherein, the device view in this embodiment is a picture obtained by photographing a device component, and the device component may specifically be a controller, a fan, a battery, and the like.
需要说明的是,本申请中的设备视图也可以是通过绘图工具绘制的图片,甚至可以是设备部件的简图。但是采用绘图工具绘制图片时为了降低绘图难度,往往绘制的是设备部件的简图或者代表符号图,用户在读取识别图片代表的设备部件时,就需要用户具有相对较高的专业知识,或者时对符号图非常熟悉,否则难以快速的获知每个图片所代表的设备部件,这显然会为用户读取识别图片代表的部件的难度,降低用户使用体验。It should be noted that the device view in this application may also be a picture drawn by a drawing tool, or even a schematic diagram of a device component. However, in order to reduce the difficulty of drawing when using drawing tools to draw pictures, the sketches or representative symbols of equipment components are often drawn. When users read and identify the equipment components represented by the pictures, the user needs to have relatively high professional knowledge, or If you are very familiar with the symbol diagram, it is difficult to quickly know the device components represented by each picture, which obviously will make it difficult for the user to read and identify the components represented by the picture, and reduce the user experience.
本实施例中采用实际设备部件拍摄获得的图片作为设备视图更具有真实性,用户可以直接根据对照设备部件轻易的识别出每个设备视图所代表的部件,便于用户操作。In this embodiment, a picture obtained by using actual device components as a device view is more realistic, and a user can easily identify the components represented by each device view directly according to the comparison device components, which is convenient for user operations.
考虑到后续用户需要对生成的热点视图进行缩放,为了避免缩放后的热点视图画面不清晰,本实施例中的设备视图可以进一步地采用图像像素宽度在1600PX以上的图像。那么根据该设备视图生成的热点视图无论是因用户操作缩放,还是在不同分辨率的显示屏上,均具有较高的清晰度,提升用户使用体验。Considering that subsequent users need to zoom the generated hotspot view, in order to prevent the zoomed hotspot view from being unclear, the device view in this embodiment may further use an image with an image pixel width of more than 1600px. Then, whether the hotspot view generated according to the device view is scaled due to a user operation or on a display screen of different resolutions, it has high definition, which improves the user experience.
步骤S2:在设备视图上生成圈定设备视图的热点区域的线条,获得以设备视图为背景的热点视图。Step S2: Generate a line on the device view to delineate the hotspot area of the device view to obtain a hotspot view with the device view as a background.
具体地,以设备视图为背景图片,在设备视图上圈画出热点区域,即可生成SVG格式的热点视图。当用户对热点视图进行缩放时,设备视图和热点区域的大小也随之同步缩放。而对于SVG格式的热点视图在显示屏上的定位是相对定位,随着热点视图的缩放,其覆盖显示屏上像素点的位置也相应的发生变化,同步地SVG格式的热点视图的定位也相对产生变化。Specifically, taking the device view as a background image, and drawing a hotspot area on the device view, the hotspot view in SVG format can be generated. When the user zooms in and out of the hotspot view, the size of the device view and the hotspot area also scales synchronously. The positioning of the hotspot view in SVG format on the display screen is relative positioning. As the hotspot view zooms, the position of the pixels covered by the hotspot view on the display screen also changes accordingly, and the positioning of the hotspot view in SVG format is also relative. make a difference.
目前常规的热点视图,一般采用JPG等格式的图片,这种格式的图片的定位方式是通过位图进行绝对定位的。当用户对热点视图进行缩放时,尽管展现给用户的热点视图大小发生了变化,但是热点视图的热点区域定位并未随之迁移改变,而用户在点击操作热点区域时,是按照缩放后的热点视图进行操作的,也就存在显示屏上显示的热点区域和显示屏上实际定位的热点区域发生偏移,导致用户基于热点区域执行对应的功能操作失败。At present, conventional hotspot views generally use pictures in formats such as JPG, and the positioning method of pictures in this format is absolute positioning through bitmaps. When the user zooms the hotspot view, although the size of the hotspot view displayed to the user changes, the location of the hotspot area of the hotspot view does not change accordingly. If the view is operated, there is a deviation between the hotspot area displayed on the display screen and the hotspot area actually located on the display screen, which causes the user to fail to perform the corresponding function operation based on the hotspot area.
而本申请中的热点视图是SVG格式的,其定位方式是相对定位,当热点视图发生缩放时,其定位位置可以随之发生变化,进而使得用户根据缩放后展示的热点视图可以准确无误的对热点区域进行操作,避免了热点偏移的问题。The hotspot view in this application is in SVG format, and its positioning method is relative positioning. When the hotspot view is zoomed, its positioning position can change accordingly, so that the user can accurately match the hotspot view displayed after zooming. The hotspot area is operated to avoid the problem of hotspot offset.
可选地,在设备视图上画出热点区域的具体过程可以包括:Optionally, the specific process of drawing the hotspot area on the device view may include:
识别所述设备视图的边缘线,沿所述设备视图的边缘线生成圈定所述热点区域的线条。An edge line of the device view is identified, and a line encircling the hot spot area is generated along the edge line of the device view.
为了热点区域能够最大程度上覆盖设备视图,可以沿设备视图的边缘画线,沿设备视图的边缘形成闭合区域,从而生成热点视图。In order for the hotspot area to cover the device view to the greatest extent, you can draw a line along the edge of the device view to form a closed area along the edge of the device view to generate the hotspot view.
步骤S3:根据矢量绘图指令包含的设备视图对应的设备部件类型,按照预定命名规则为热点视图命名,并导出SVG格式的热点视图。Step S3: Name the hotspot view according to a predetermined naming rule according to the device component type corresponding to the device view included in the vector drawing instruction, and export the hotspot view in SVG format.
具体地,各热点视图的命名(在导出的svg格式的图片中表现为ID属性),命名规则要能保证区分出不同的部件类型和标识,如fan-3,表示第3个风扇部件。也即是相同类型的设备可以采用同相的简写字母加序号进行命名。Specifically, the naming of each hotspot view (expressed as an ID attribute in the exported svg format image), the naming rules must ensure that different component types and identifiers can be distinguished, such as fan-3, which represents the third fan component. That is, devices of the same type can be named with the same phase abbreviation and serial number.
热点区域绘制完毕后,导出格式为SVG的图形,具体地,可以建立专门存储热点视图的SVG数据库,在需要展现存储设备的热点视图的页面时引入即可。对于热点视图的页面引入具体可以参考下述步骤S4和步骤S5。After the hotspot area is drawn, the graphic in the SVG format is exported. Specifically, an SVG database dedicated to storing the hotspot view can be established, and it can be imported when the page of the hotspot view of the storage device needs to be displayed. For details on page introduction of the hotspot view, reference may be made to the following steps S4 and S5.
步骤S4:根据热点视图的命名对热点视图进行识别;Step S4: identifying the hotspot view according to the name of the hotspot view;
步骤S5:将识别到的热点视图绑定对应事件,以及热点图像的悬浮和单击效果的功能。Step S5: Bind the identified hotspot view to a corresponding event, as well as the functions of hovering and clicking effects of the hotspot image.
具体地,使用js(或svg类库)获取热点区域的dom元素(通常为path元素),根据元素ID和上述命名规则识别出部件类型和标识,并据此分别绑定事件实现悬浮和单击效果,完成热点的实现。Specifically, use js (or svg class library) to obtain the dom element (usually the path element) of the hotspot area, identify the component type and logo according to the element ID and the above naming rules, and bind events accordingly to achieve suspension and click. effect, complete the realization of the hot spot.
例如:(1)确定需引入图形的网页,可根据具体情况引入svg类库(如Snap.svg)中svg图片(即热点视图),便于svg图片的编程;For example: (1) Determine the webpage that needs to import graphics, and import svg pictures (ie hotspot views) in the svg class library (such as Snap.svg) according to the specific situation, which is convenient for the programming of svg pictures;
(2)html中引入上述绘制的svg图片,方式:<embed>、<object>或者<iframe>;(2) Introduce the above drawn svg image into html, the method is: <embed>, <object> or <iframe>;
(3)通过css(绝对定位)设置svg图片的尺寸,可设置为百分比(如:width为80%),实现在不同分辨率显示器下显示比例一致;(3) Set the size of the svg image through css (absolute positioning), which can be set as a percentage (for example: width is 80%) to achieve the same display ratio under different resolution monitors;
(4)使用js(或svg类库)获取热点区域的dom元素(通常为path元素),根据元素ID和上述命名规则识别出部件类型和标识,并据此分别绑定事件实现悬浮和单击效果,完成热点的实现。(4) Use js (or svg class library) to obtain the dom element (usually the path element) in the hotspot area, identify the component type and logo according to the element ID and the above naming rules, and bind events accordingly to achieve suspension and click effect, complete the realization of the hot spot.
本申请中采用对设备部件实际拍摄的图像作为设备视图,便于用户在对热点视图操作时,对热点视图的辨认,提高用户使用体验;且在设备视图的基础上通过矢量绘图工具绘制出热点区域,生成了SVG格式的热点视图,避免热点视图因缩放而产生的定位偏移问题,便于用户对热点区域准确地操作。In this application, the image actually shot of the device components is used as the device view, which is convenient for users to identify the hotspot view when operating the hotspot view, and improves the user experience; and on the basis of the device view, a vector drawing tool is used to draw the hotspot area. , generates a hotspot view in SVG format, avoids the positioning offset problem caused by zooming in the hotspot view, and facilitates users to accurately operate the hotspot area.
下面对本发明实施例提供的存储设备的响应式热点视图的生成装置进行介绍,下文描述的存储设备的响应式热点视图的生成装置与上文描述的存储设备的响应式热点视图的生成方法可相互对应参照。The following describes an apparatus for generating a responsive hotspot view of a storage device provided by an embodiment of the present invention. The apparatus for generating a responsive hotspot view of a storage device described below and the method for generating a responsive hotspot view of a storage device described above are mutually compatible. corresponding reference.
图2为本发明实施例提供的存储设备的响应式热点视图的生成装置的结构框图,参照图2的存储设备的响应式热点视图的生成装置可以包括:2 is a structural block diagram of an apparatus for generating a responsive hotspot view of a storage device according to an embodiment of the present invention. Referring to FIG. 2 , the apparatus for generating a responsive hotspot view of a storage device may include:
指令接收模块100,用于接收矢量绘图指令和设备视图,其中,所述设备视图为拍摄设备部件获得的图片;an
视图生成模块200,用于在所述设备视图上生成圈定所述设备视图的热点区域的线条,获得以所述设备视图为背景的热点视图;A
命名导出模块300,用于根据所述矢量绘图指令包含的所述设备视图对应的设备部件类型,按照预定命名规则为所述热点视图命名,并导出SVG格式的所述热点视图。The naming and exporting
可选地,在本发明的另一具体实施例中,还可以进一步地包括:Optionally, in another specific embodiment of the present invention, it may further include:
指令接收模块100导入的设备视图的像素宽度为1600PX以上。The pixel width of the device view imported by the
可选地,在本发明的另一具体实施例中,视图生成模块300具体用于识别所述设备视图的边缘线,沿所述设备视图的边缘线生成圈定所述热点区域的线条。Optionally, in another specific embodiment of the present invention, the
可选地,在本发明的另一具体实施例中,还可以进一步地包括功能绑定模块,用于根据热点视图的命名对热点视图进行识别;将识别到的热点视图绑定对应事件,以及热点图像的悬浮和单击效果的功能。Optionally, in another specific embodiment of the present invention, it may further include a function binding module for identifying the hotspot view according to the name of the hotspot view; binding the identified hotspot view to a corresponding event, and The function of hover and click effect of hotspot image.
本实施例的存储设备的响应式热点视图的生成装置用于实现前述的存储设备的响应式热点视图的生成方法,因此存储设备的响应式热点视图的生成装置中的具体实施方式可见前文中的存储设备的响应式热点视图的生成方法的实施例部分,例如,指令接收模块100,视图生成模块200,命名导出模块300,分别用于实现上述方法中步骤S1,S2和S3,以及功能绑定模块用于实现上述方法中的步骤S4和S5。所以,其具体实施方式可以参照相应的各个部分实施例的描述,在此不再赘述。The apparatus for generating a responsive hotspot view of a storage device in this embodiment is used to implement the foregoing method for generating a responsive hotspot view of a storage device. Therefore, the specific implementation in the apparatus for generating a responsive hotspot view of a storage device can be found in the foregoing section. The embodiment part of the method for generating a responsive hotspot view of a storage device, for example, the
本申请中还提供了一种存储设备的响应式热点视图的生成设备,如图3所示,图3为本发明实施例提供的存储设备的响应式热点视图的生成设备的结构示意图,包括:The present application also provides a device for generating a responsive hotspot view of a storage device. As shown in FIG. 3 , FIG. 3 is a schematic structural diagram of a device for generating a responsive hotspot view of a storage device according to an embodiment of the present invention, including:
存储器11,用于存储计算机程序;
处理器12,用于执行所述计算机程序,以实现如上任意实施例中所述的存储设备的响应式热点视图的生成方法的步骤。The
本申请中还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上任意实施例中所述存储设备的响应式热点视图的生成方法方法的步骤。The present application also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, implements the responsive hotspot of the storage device described in any of the above embodiments The steps of the generation method method of the view.
具体地,该计算机可读存储介质可以是随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质。Specifically, the computer-readable storage medium may be random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs , or any other form of storage medium known in the art.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the possibilities of hardware and software. Interchangeability, the above description has generally described the components and steps of each example in terms of functionality. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910736358.3A CN110533746B (en) | 2019-08-09 | 2019-08-09 | Method, device, device and storage medium for generating responsive hotspot view |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910736358.3A CN110533746B (en) | 2019-08-09 | 2019-08-09 | Method, device, device and storage medium for generating responsive hotspot view |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110533746A CN110533746A (en) | 2019-12-03 |
CN110533746B true CN110533746B (en) | 2022-07-08 |
Family
ID=68662267
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910736358.3A Active CN110533746B (en) | 2019-08-09 | 2019-08-09 | Method, device, device and storage medium for generating responsive hotspot view |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110533746B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107203453A (en) * | 2017-05-23 | 2017-09-26 | 郑州云海信息技术有限公司 | A kind of generation method of device view, device and electronic equipment |
CN107391140A (en) * | 2017-07-25 | 2017-11-24 | 郑州云海信息技术有限公司 | The method and system that a kind of picture of storage device is shown |
-
2019
- 2019-08-09 CN CN201910736358.3A patent/CN110533746B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107203453A (en) * | 2017-05-23 | 2017-09-26 | 郑州云海信息技术有限公司 | A kind of generation method of device view, device and electronic equipment |
CN107391140A (en) * | 2017-07-25 | 2017-11-24 | 郑州云海信息技术有限公司 | The method and system that a kind of picture of storage device is shown |
Also Published As
Publication number | Publication date |
---|---|
CN110533746A (en) | 2019-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7317070B2 (en) | Method, device, electronic equipment, storage medium, and program for realizing super-resolution of human face | |
WO2015131787A1 (en) | Screen adaptation method and apparatus | |
US20140380178A1 (en) | Displaying interactive charts on devices with limited resources | |
WO2016206559A1 (en) | Method and device for full size adaptation of object to be displayed | |
CN104216691A (en) | Application creating method and device | |
CN110362307A (en) | Form page configuration method and server | |
CN111399831A (en) | Page display method and device, storage medium and electronic device | |
CN105930464B (en) | Web rich media cross-screen adaptation method and device | |
WO2023071861A1 (en) | Data visualization display method and apparatus, computer device, and storage medium | |
CN108536467B (en) | Code positioning processing method, device, terminal device and storage medium | |
CN111581208A (en) | Data visualization display method and device | |
CN114357345A (en) | Image processing method, apparatus, electronic device, and computer-readable storage medium | |
CN106598410A (en) | Display method, device and terminal equipment of electronic book | |
CN115904152A (en) | HTML 5-based flow chart drawing method, device, equipment and storage medium | |
CN107463413A (en) | A kind of nodal information display methods and device | |
CN106648571A (en) | Application interface correction method and apparatus | |
CN110533746B (en) | Method, device, device and storage medium for generating responsive hotspot view | |
CN115375812A (en) | CAD data rendering method and device, electronic equipment and storage medium | |
CN111913566A (en) | Data processing method and device, electronic equipment and computer storage medium | |
CN113835595B (en) | Image display method, device, electronic device and computer storage medium | |
CN118915947A (en) | Picture marking method, device, equipment and storage medium | |
CN117974790A (en) | Image labeling method and device, electronic equipment and storage medium | |
US20170017370A1 (en) | Device and method for processing data | |
CN106547891A (en) | For the quick visualization method of the pictured text message of palm display device | |
CN117390195A (en) | Knowledge traceability connection methods, systems, equipment and media based on graph editor |
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 |