WO2012072043A1 - 用于调整化学键图形的角度的方法和装置 - Google Patents

用于调整化学键图形的角度的方法和装置 Download PDF

Info

Publication number
WO2012072043A1
WO2012072043A1 PCT/CN2011/083394 CN2011083394W WO2012072043A1 WO 2012072043 A1 WO2012072043 A1 WO 2012072043A1 CN 2011083394 W CN2011083394 W CN 2011083394W WO 2012072043 A1 WO2012072043 A1 WO 2012072043A1
Authority
WO
WIPO (PCT)
Prior art keywords
chemical bond
angle
bond pattern
input
rotation
Prior art date
Application number
PCT/CN2011/083394
Other languages
English (en)
French (fr)
Inventor
赵志刚
Original Assignee
北大方正集团有限公司
北京北大方正电子有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北大方正集团有限公司, 北京北大方正电子有限公司 filed Critical 北大方正集团有限公司
Priority to EP11845632.6A priority Critical patent/EP2648113A4/en
Priority to US13/991,153 priority patent/US20130335332A1/en
Priority to JP2013541199A priority patent/JP2014501972A/ja
Publication of WO2012072043A1 publication Critical patent/WO2012072043A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0238Programmable keyboards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/04845Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0489Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using dedicated keyboard keys or combinations thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/37Details of the operation on graphic patterns
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/80Data visualisation

Definitions

  • This invention relates to the field of digital typography and, in particular, to a method and apparatus for adjusting the angle of a chemical bond pattern. Background technique
  • Prior art interactive chemical typesetting software typically only provides a method of mouse operation to adjust the angle of the chemical bond graphic.
  • Figure 1 shows a state diagram of a single chemical bond endpoint selection
  • Figure 2 shows an endpoint selection state diagram with multiple chemical bonds connected.
  • the user moves the focus of the chemical bond by moving the mouse, thereby changing the angle of the chemical bond.
  • the present invention is directed to a method and apparatus for adjusting the angle of a chemical bond pattern to at least solve the cumbersome operation of the prior art mouse operation method.
  • a method for adjusting an angle of a chemical bond graphic comprising: accepting an input from a keyboard specific key when the layout focus is at one end of the chemical key graphic; setting a rotation corresponding to the input Direction; set the angle of rotation of the chemical bond pattern in the direction of rotation; rotate the chemical bond pattern around its other end in the direction of rotation.
  • an apparatus for adjusting an angle of a chemical bond graphic comprising: an input module for accepting input from a keyboard specific key if the layout focus is at one end of the chemical key graphic; Module, used to set the rotation corresponding to the input The angle module is configured to determine a rotation angle of the chemical bond pattern in the rotation direction; and the rotation module is configured to rotate the chemical key pattern around the other end thereof in a rotation direction.
  • the method and apparatus for adjusting the angle of the chemical bond pattern in the embodiment of the present invention overcomes the cumbersome operation of the prior art because the angle of the chemical bond pattern is adjusted by the keyboard, and the operation efficiency of adjusting the chemical bond pattern is improved.
  • Figure 1 shows a state diagram selected for the endpoint of a single chemical bond
  • Figure 2 shows a selected state diagram of an endpoint having a plurality of chemical bonds connected
  • FIG. 3 shows a flow chart of a method for adjusting the angle of a chemical bond pattern in accordance with one embodiment of the present invention
  • Figure 4 is a schematic view showing the angular state of three to eight equilateral shapes
  • FIG. 5 and FIG. 6 are schematic diagrams showing a cue angle according to a preferred embodiment of the present invention.
  • Figure 7 shows a schematic diagram of an apparatus for adjusting the angle of a chemical bond pattern in accordance with one embodiment of the present invention. detailed description
  • FIG. 3 shows a flow chart of a method for adjusting the angle of a chemical bond pattern, including:
  • Step S10 accepting input from a keyboard specific key when the layout focus is at one end of the chemical key graphic
  • Step S20 setting a rotation direction corresponding to the input
  • Step S30 setting a rotation angle of the chemical key pattern in the rotation direction
  • Step S40 rotating the chemical bond pattern around the other end thereof in the direction of rotation.
  • the angle of the chemical bond pattern can be adjusted by using a mouse operation.
  • the input from the keyboard is used as an adjustment operation of the chemical key pattern, and the interactive chemical typesetting is performed.
  • the operation of the keyboard can greatly improve the efficiency of the user, eliminating the need to use the mouse to find a large number of various chemical key types and operation buttons, which is convenient for the user to make various desired structures, and improve the chemical typesetting. Usability and typesetting efficiency.
  • the selected focus can be judged in advance. Only when one end of the chemical bond is selected, the chemical bond pattern has the possibility of rotating around the other end, otherwise the translation operation is performed on the chemical bond pattern.
  • step S20 comprises: determining that the input is an input from the first key, then setting the rotation direction to be clockwise; and determining that the input is an input from the second key, setting the rotation direction to be an inverse clock.
  • the input of the left cursor key "-” can be set to the inverse clock
  • the input of the right cursor key “ ⁇ ” can be set to a clockwise state, which allows the user to easily rotate the chemical key graphic with a click of a button.
  • step S20 comprises: determining that the input is an input from the first key, and the angle of the chemical bond pattern is within a threshold range, then setting the rotation direction to be clockwise; determining that the input is an input from the first key, and the angle of the chemical key graphic Outside the threshold range, set the rotation direction to be counterclockwise; to determine that the input is from the input of the second key, and the angle of the chemical bond pattern is within the threshold range, then set the rotation direction to be the inverse clock; determine that the input is the input from the second key , and the angle of the chemical bond pattern is outside the threshold range, then the direction of rotation is set to be clockwise.
  • some users are prone to errors in clockwise and inverse clocking. For example, when the chemical bond pattern is rotated at 1 o'clock to 2 o'clock and 7 o'clock to 8 o'clock, some users may think that they are in two different directions, and click " ⁇ " and "-" respectively.
  • the threshold range can be set to the first quadrant and the fourth quadrant, and when the chemical bond pattern is allowed to be in the first quadrant and the fourth quadrant, the " ⁇ " operation is used to rotate clockwise, using "-" The operation is rotated counterclockwise; when the chemical bond pattern is in the second quadrant and the third quadrant (ie outside the threshold range), the " ⁇ " operation is used to rotate counterclockwise, and the "-" operation is rotated clockwise.
  • the threshold range can be set to the first quadrant and the second quadrant, allowing the chemical bond pattern to rotate clockwise with the "i” operation and counterclockwise with the " ⁇ ” operation when the chemical bond pattern is in the first quadrant and the second quadrant;
  • the chemical bond pattern is in the third quadrant and the fourth quadrant (ie outside the threshold range), it is rotated counterclockwise with a "1" operation and clockwise with a " ⁇ " operation.
  • step S30 includes: determining that the end of the typographic focus is simultaneously connected to otherizations At the end of the key pattern, the rotation angle is set to a minimum unit (for example;) for each input, and the angle and length of adjustment required for the other chemical bond pattern to maintain the connection relationship with the operated chemical key pattern are set.
  • a minimum unit for example;
  • the typeset focus is at the end of multiple chemical bond patterns.
  • adjusting the angle of a chemical bond pattern also affects other chemical bond patterns.
  • the angle adjusted by each button click operation is set to a minimum unit, and the length and angle of the other connected chemical key patterns are automatically adjusted to maintain the connection relationship, which enables the user to realize a stepless operation by keyboard operation.
  • the adjustment mode realizes fine adjustment of the angle of the chemical bond pattern.
  • Figure 4 shows a schematic diagram of the angular states of the three to eight equilateral shapes.
  • chemical bond patterns are usually required to be connected in sequence to form a multi-equilateral shape (usually an equilateral to 8-equal shape, up to a 10 equilateral shape). Therefore, when, for example, the angle between the chemical bond pattern and the adjacent chemical bond pattern is, for example, 5 equilateral and 6 equilateral, when it is determined that the direction of rotation is the direction of increasing the angle, it may be desirable for the user's operation to be a chemical bond pattern. Adjust to the angular position of the 6-equal, instead of adjusting to the angular position of the 7-equal, or a position around the angle of the 6-equal.
  • the preferred embodiment is in this case, because the chemical bond pattern is rotated to form an equilateral shape with the adjacent chemical bond pattern (instead of 5 equilateral or 7 equilateral), the minimum angle is rotated in the direction of rotation, so Set the rotation angle to this minimum angle.
  • the preferred embodiment provides a stepped adjustment mode that can quickly rotate a certain angle (rather than just one) each time by intelligently recognizing the angle of the ring, thereby significantly reducing the number of times the user operates the keyboard.
  • the multi-equilateral shape can be made very standard.
  • is calculated for each adjacent chemical bond pattern, and the smallest ⁇ is selected as the rotation angle.
  • the chemical bond pattern constitutes edge a
  • the chemical bond pattern has two Adjacent chemical bond patterns form the side b and the side c on the left and right sides of the side a, respectively. If it is determined that the rotation direction is the clockwise direction, the side a is rotated clockwise by ⁇ 1 and the side b is equilateral, and the clockwise rotation ⁇ 2 and the side c are N 2 equilateral. If 0 ! ⁇ 0 2 , according to the preferred embodiment, ⁇ should be set to ⁇ ⁇ (corresponding to the recommended angle).
  • is less than or equal to 10.
  • the molecular ring is from an equilateral triangle to an 8 equilateral shape, up to a 10 equilateral shape, and the preferred embodiment conforms to the physical law and is capable of better mathematically expecting user operations.
  • step S30 comprises: determining that the end where the layout focus is not connected to the end of the other chemical bond pattern, and the angle between the chemical bond pattern and the adjacent chemical bond pattern is outside the threshold range, and setting the rotation angle for each input Is a minimum unit.
  • the user-adjusted chemical key pattern angle may have exceeded the range of angles set by the corresponding equi-triangle to 10-equal, in this case it is difficult to mathematically expect the user's adjustment angle, so the stepless adjustment is used to respond to the user.
  • the keyboard operation is the most suitable.
  • the method further comprises at least one of the following steps: prompting an angle value of an angle between the chemical bond pattern and its adjacent chemical bond pattern; when the angle between the chemical bond pattern and the adjacent chemical bond pattern is equal to a multi-equivalent inner angle, Prompt the angle angle value and the number of sides of the multi-equate.
  • FIG. 5 and FIG. 6 are schematic diagrams showing a cue angle according to a preferred embodiment of the present invention.
  • the angle of the adjacent angle is displayed on both sides of the counterclockwise of the chemical button selected for rotation, and when an angle is exactly some When the inner corner of an equilateral polygon is attached, the number of sides of the polygon is appended to the angle.
  • the rotation of the chemical bond pattern is not prompted, because the more the number of sides of the ring structure, the closer the angle is, making it difficult for the user to judge how many degrees the angle is, and what is the ring shape, resulting in It is difficult for the user to achieve the desired ring structure.
  • the preferred embodiment facilitates the user to know if it is the ring structure that he or she desires.
  • Figure 7 shows a schematic diagram of an apparatus for adjusting the angle of a chemical bond pattern, including:
  • the input module 10 is configured to accept an input from a specific key of the keyboard if the layout focus is at one end of the chemical key graphic;
  • the direction module 20 is configured to set a rotation direction corresponding to the input
  • An angle module 30, configured to determine a rotation angle of the chemical bond pattern in a rotation direction;
  • the rotation module 40 is configured to rotate the chemical bond pattern around the other end thereof in an angle of rotation.
  • the device improves the ease of use and layout efficiency of chemical typesetting.
  • the angle module 30 comprises:
  • a stepless module for determining the end of the layout focus at the same time connecting the ends of other chemical key patterns, setting the rotation angle to a minimum unit for each input, and setting other chemical key patterns to maintain the connection with the operated chemical key pattern The angle and length of the adjustment required for the relationship; or determining that the end of the layout focus is not connected to the end of the other chemical bond pattern, and the angle between the chemical bond pattern and the adjacent chemical bond pattern is outside the threshold range, for each input Set the rotation angle to a minimum unit;
  • a stepped module for determining that the end of the layout focus is not connected to the end of the other chemical bond pattern, and the angle between the chemical bond pattern and the adjacent chemical bond pattern is within a threshold range, and the rotation angle is set for each input. It is: ⁇ ⁇ - ⁇ , where ⁇ is the internal angle angle of the chemical bond pattern and the adjacent chemical bond pattern forming the equilateral shape, and the equilateral shape is the minimum angle of the chemical bond pattern rotating in the rotation direction and the adjacent chemical bond pattern. Multi-equal, the angle between the ⁇ chemical bond pattern and the current angle of the adjacent chemical bond pattern.
  • the apparatus further comprises at least one of the following modules: a first prompting module, configured to prompt an angle of an angle between the chemical key graphic and the adjacent chemical key graphic; and a second prompting module, configured to use an angle between the chemical key graphic and the adjacent chemical key graphic
  • a first prompting module configured to prompt an angle of an angle between the chemical key graphic and the adjacent chemical key graphic
  • a second prompting module configured to use an angle between the chemical key graphic and the adjacent chemical key graphic
  • the preferred embodiment of the present invention can perform a combination of stepwise and stepless adjustment angles, and at the same time provide a clear indication to the user, which facilitates the user to adjust the angle of the chemical key graphic through keyboard operation.
  • the above-described embodiment of the present invention can realize a user operation of a flexible and fast rotary chemical key, which not only increases the efficiency of typesetting but also reduces the learning difficulty of the user.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device so that they can be stored in the storage device by calculation
  • the devices are implemented, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.

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)
  • Chemical & Material Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • User Interface Of Digital Computer (AREA)
  • Input From Keyboards Or The Like (AREA)

Description

用于调整化学键图形的角度的方法和装置 技术领域
本发明涉及数字排版领域, 具体而言, 涉及用于调整化学键图形的 角度的方法和装置。 背景技术
目前在交互式化学排版软件中, 通常以矢量图形的方式提供化学 键。 用户在对化学键图形执行排版操作时, 经常需要调整化学键图形的 角度。
现有技术的交互式化学排版软件通常只提供鼠标操作的方法来调 整化学键图形的角度。 图 1示出了单个化学键端点选中的状态图, 图 2 示出了有多个化学键相连的端点选中状态图。 如图 1和图 2所示, 现有 技术的交互式化学排版软件中,用户通过移动鼠标来自由移动化学键的 焦点, 从而使化学键的角度发生变化。
然而对于化学内容进行排版时,通常要求将化学键构成标准的多边 形, 发明人发现现有技术的鼠标操作方法由于鼠标操作自由度不受控 制, 导致化学键图形的角度调整不但操作比较繁瑣, 而且很难调整得到 标准的多边形。 发明内容
本发明旨在提供一种用于调整化学键图形的角度的方法和装置, 以 至少解决现有技术的鼠标操作方法操作比较繁瑣的问题。
在本发明的实施例中, 提供了一种用于调整化学键图形的角度的方 法, 包括: 在排版焦点处于化学键图形的一端的情况下, 接受来自键盘 特定键的输入; 设置输入所对应的旋转方向; 设置化学键图形在旋转方 向下的旋转角度; 使化学键图形围绕其另一端以旋转方向旋转角度。
在本发明的实施例中, 提供了一种用于调整化学键图形的角度的装 置, 包括: 输入模块, 用于在排版焦点处于化学键图形的一端的情况下, 接受来自键盘特定键的输入; 方向模块, 用于设置输入所对应的旋转方 向; 角度模块, 用于确定化学键图形在旋转方向下的旋转角度; 旋转模 块, 用于使化学键图形围绕其另一端以旋转方向旋转角度。
本发明实施例的用于调整化学键图形的角度的方法和装置因为釆用 键盘调整化学键图形的角度,所以克服了现有技术操作比较繁瑣的问题, 提高了调整化学键图形的操作效率。 附图说明
此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的 一部分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对 本发明的不当限定。 在附图中:
图 1示出了单个化学键端点选中的状态图;
图 2示出了有多个化学键相连的端点选中状态图;
图 3示出了根据本发明一个实施例的用于调整化学键图形的角度的 方法的流程图;
图 4示出了三到八等边形的角度状态示意图;
图 5与图 6根据本发明优选实施例的提示角度的示意图;
图 7示出了根据本发明一个实施例的用于调整化学键图形的角度的 装置的示意图。 具体实施方式
下面将参考附图并结合实施例, 来详细说明本发明。
图 3示出了根据本发明一个实施例的用于调整化学键图形的角度的 方法的流程图, 包括:
步骤 S 10, 在排版焦点处于化学键图形的一端的情况下, 接受来自 键盘特定键的输入;
步骤 S20, 设置输入所对应的旋转方向;
步骤 S30, 设置化学键图形在旋转方向下的旋转角度;
步骤 S40 , 使化学键图形围绕其另一端以旋转方向旋转角度。
现有技术中只能用鼠标操作来调整化学键图形的角度, 而本实施例 中, 将来自键盘的输入作为化学键图形的调整操作, 交互式的化学排版 软件里, 键盘的操作可以很大地提高用户的效率, 省去了用鼠标寻找大 量的各种化学键的类型和操作的按钮,方便用户做出各种想要的结构出 来, 提高了化学排版的易用性和排版效率。
值得注意的是, 可以预先对选中的焦点进行判断。 只有化学键的一 端被选中时, 化学键图形才有绕另一端旋转的可能, 不然就是对化学键 图形执行平移操作。
优选地, 步骤 S20包括: 确定输入是来自第一键的输入, 则设置旋 转方向是顺时针; 确定输入是来自第二键的输入, 则设置旋转方向是逆 时钟。例如可以将左游标键 "―"的输入设置为逆时钟,将右游标键"→" 的输入设置为顺时钟, 这使得用户可以轻松地点击一下按键, 即可使化 学键图形旋转。
优选地, 步骤 S20包括: 确定输入是来自第一键的输入, 且化学键 图形的角度处于阈值范围内, 则设置旋转方向是顺时针; 确定输入是来 自第一键的输入, 且化学键图形的角度处于阈值范围外, 则设置旋转方 向是逆时针; 确定输入是来自第二键的输入, 且化学键图形的角度处于 阈值范围内,则设置旋转方向是逆时钟;确定输入是来自第二键的输入, 且化学键图形的角度处于阈值范围外, 则设置旋转方向是顺时钟。
在某些情况下, 部分用户对顺时钟和逆时钟的判断容易发生失误。 例如, 当化学键图形处于 1点钟向 2点钟旋转, 以及处于 7点钟向 8点 钟旋转, 部分用户可能会认为是两个不相同的方向, 而分别点击 "→" 和 "―"。 而在本优选实施例中, 例如可以将阈值范围设为第一象限和 第四象限, 允许化学键图形在第一象限和第四象限内时, 用 "→" 操作 顺时钟旋转, 用 "―" 操作逆时钟旋转; 而化学键图形在第二象限和第 三象限内 (即阈值范围之外) 时, 用 "→" 操作逆时钟旋转, 用 "―" 操作顺时钟旋转。 又例如, 可以将阈值范围设为第一象限和第二象限, 允许化学键图形在第一象限和第二象限内时,用 " i "操作顺时钟旋转, 用 "† " 操作逆时钟旋转; 而化学键图形在第三象限和第四象限内 (即 阈值范围之外)时, 用 " 1 " 操作逆时钟旋转, 用 "† " 操作顺时钟旋 转。
优选地, 步骤 S30包括: 确定排版焦点所处的端部同时连接其他化 学键图形的端部, 则对于每一次输入设置旋转角度为一个最小单位(例 如 ;),且设置其他化学键图形保持与被操作的化学键图形的连接关系 所需调整的角度和长度。
如图 2所示, 排版焦点处于多个化学键图形共同的端部, 这种方式 下, 调整一个化学键图形的角度会对其他化学键图形也产生影响。 在本 优选实施例中设置每次按键点击操作所调整的角度为最小单位,并且自 动地调整其他相连的化学键图形的长度和角度以保持连接关系,这使得 用户可以通过键盘操作实现一种无级调整模式, 实现了化学键图形角度 的细微调整。
优选地, 步骤 S30包括: 确定排版焦点所处的端部不连接其他化学 键图形的端部,且化学键图形与相邻的化学键图形的夹角在阈值范围之 内, 则对于每一次输入设置旋转角度 Θ为: θ = α - β , 其中, α是化学 键图形与相邻化学键图形构成 Ν等边形的内角角度 , Ν等边形是化学键 图形在旋转方向上旋转最小角度与相邻化学键图形所构成的多等边形, β化学键图形与相邻化学键图形当前夹角的角度。
图 4示出了三到八等边形的角度状态示意图。在实际的化学排版软 件中, 通常要求化学键图形顺次相连, 构成一个多等边形(通常是等三 角形到 8等边形, 最多到 10等边形)。 因此, 当例如化学键图形与相邻 化学键图形的夹角处于例如 5等边形和 6等边形时, 当确定旋转方向是 增大夹角的方向时,可以期望用户的操作是要将化学键图形调整到 6等 边形的角度位置, 而不是调整到 7等边形的角度位置, 或者是 6等边形 的角度周围的某个位置。 本优选实施例在这种情况下, 因为将化学键图 形旋转到与相邻化学键图形构成 6等边形(而不是 5等边形或 7等边形) 是在旋转方向上旋转最小角度, 所以就将旋转角度设置为该最小角度。
该优选实施例提供的是一种有级调整模式, 通过智能地识别环角 度, 可以迅速地每次旋转一定的角度(而不仅仅是 1。 ), 因此显著地减 少了用户操作键盘的次数, 而且可以使构成的多等边形非常标准。
优选地, 当相邻化学键图形为多个时, 则分别对各个相邻化学键图 形计算 Θ , 选择其中最小的 Θ作为旋转角度。
例如, 假设所调整的化学键图形构成边 a, 而该化学键图形有两个 相邻的化学键图形, 分别在边 a的左右侧, 构成边 b和边 c。 如果确定 旋转方向是顺时钟方向, 边 a在顺时针方向上旋转 θ 1可以和边 b构成 ^等边形, 在顺时钟方向上旋转 Θ 2可以和边 c构成 N2等边形。 如果 0 !< 0 2, 根据本优选实施例, 则应该设置 Θ为 θ ι (相当于推荐角度)。
优选地, Ν 小于等于 10。 物理世界中, 分子环为从等三角形到 8 等边形, 最多到 10等边形, 本优选实施例符合物理规律, 能够更好地 数学期望用户操作,
优选地, 步骤 S30包括: 确定排版焦点所处的端部不连接其他化学 键图形的端部,且化学键图形与相邻的化学键图形的夹角在阈值范围之 外, 则对于每一次输入设置旋转角度为一个最小单位。 因为在某些情况 下, 用户调整的化学键图形角度可能已经超出对应等三角形到 10等边 形所设置的角度范围, 这种情况下难以数学期望用户的调整角度, 所以 用无级调整来响应用户的键盘操作是最合适的。
优选地, 本方法还包括以下至少一个步骤: 提示化学键图形与其相 邻化学键图形的夹角的角度值; 当化学键图形与其相邻化学键图形的夹 角角度等于一个多等边形内角的时候, 同时提示夹角角度值和多等边形 的边数。
图 5与图 6根据本发明优选实施例的提示角度的示意图,相邻夹角 角度的显示, 夹角显示在被选中旋转的化学键的顺逆时针两侧, 并且当 某个角度正好是某个等边多边形的内角的时候,在角度后面附加显示多 边形的边数。 现有技术中, 化学键图形的旋转没有提示, 因为环状结构 的边数越多,夹角就越接近,使用户很难判断这个夹角到底是多少度的, 是成什么环状的, 导致用户很难实现想要的环状结构。 而本优选实施例 方便用户知道是否是自己想要的环状结构。
图 7示出了根据本发明一个实施例的用于调整化学键图形的角度的 装置的示意图, 包括:
输入模块 10,用于在排版焦点处于化学键图形的一端的情况下,接 受来自键盘特定键的输入;
方向模块 20, 用于设置输入所对应的旋转方向;
角度模块 30, 用于确定化学键图形在旋转方向下的旋转角度; 旋转模块 40, 用于使化学键图形围绕其另一端以旋转方向旋转角 度。
本装置提高了化学排版的易用性和排版效率。
优选地, 角度模块 30包括:
无级模块,用于确定排版焦点所处的端部同时连接其他化学键图形 的端部, 则对于每一次输入设置旋转角度为一个最小单位, 且设置其他 化学键图形保持与被操作的化学键图形的连接关系所需调整的角度和 长度; 或者确定排版焦点所处的端部不连接其他化学键图形的端部, 且 化学键图形与相邻的化学键图形的夹角在阈值范围之外,则对于每一次 输入设置旋转角度为一个最小单位;
有级模块,用于确定排版焦点所处的端部不连接其他化学键图形的 端部, 且化学键图形与相邻的化学键图形的夹角在阈值范围之内, 则对 于每一次输入设置旋转角度 Θ为: θ = α - β , 其中, α是化学键图形与 相邻化学键图形构成 Ν等边形的内角角度 , Ν等边形是化学键图形在旋 转方向上旋转最小角度与相邻化学键图形所构成的多等边形, β化学键 图形与相邻化学键图形当前夹角的角度。
优选地, 本装置还包括以下至少一个模块: 第一提示模块, 用于提 示化学键图形与其相邻化学键图形的夹角角度; 第二提示模块, 用于当 化学键图形与其相邻化学键图形的夹角角度等于一个多等边形内角的 时候, 同时提示夹角角度值和多等边形的边数。
本发明优选实施例可以进行有级和无级的调整角度相结合的方式, 同时提供给用户一目了然的提示方式,这些都方便了用户通过键盘操作 调整化学键图形的角度。
从以上的描述中可以看出,本发明上述的实施例可以实现艮灵活快 捷的旋转化学键的用户操作, 不仅增加了排版的效率, 而且还降低了用 户的学习难度。
显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步 骤可以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所组成的网络上, 可选地, 它们可以用计算装 置可执行的程序代码来实现,从而可以将它们存储在存储装置中由计算 装置来执行, 或者将它们分别制作成各个集成电路模块, 或者将它们中 的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限 制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对 于本领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明 的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在 本发明的保护范围之内。

Claims

权利要求:
1.一种用于调整化学键图形的角度的方法, 其特征在于, 包括: 在排版焦点处于化学键图形的一端的情况下,接受来自键盘特定键 的输入;
设置所述输入所对应的旋转方向;
设置所述化学键图形在所述旋转方向下的旋转角度;
使所述化学键图形围绕其另一端以所述旋转方向旋转所述角度。
2.根据权利要求 1所述的方法, 其特征在于, 设置所述输入所对应 的旋转方向包括:
确定所述输入是来自第一键的输入, 则设置所述旋转方向是顺时 针;
确定所述输入是来自第二键的输入, 则设置所述旋转方向是逆时 钟。
3.根据权利要求 1所述的方法, 其特征在于, 设置所述输入所对应 的旋转方向包括:
确定所述输入是来自第一键的输入,且所述化学键图形的角度处于 阈值范围内, 则设置所述旋转方向是顺时针;
确定所述输入是来自第一键的输入,且所述化学键图形的角度处于 所述阈值范围外, 则设置所述旋转方向是逆时针;
确定所述输入是来自第二键的输入,且所述化学键图形的角度处于 所述阈值范围内, 则设置所述旋转方向是逆时钟;
确定所述输入是来自第二键的输入,且所述化学键图形的角度处于 所述阈值范围外, 则设置所述旋转方向是顺时钟。
4.根据权利要求 1所述的方法, 其特征在于, 设置所述化学键图形 在所述旋转方向下的旋转角度包括:
确定所述排版焦点所处的端部同时连接其他化学键图形的端部,则 对于每一次输入设置所述旋转角度为一个最小单位,且设置所述其他化 学键图形保持与所述被操作的化学键图形的连接关系所需调整的角度 和长度。
5.根据权利要求 1所述的方法, 其特征在于, 设置所述化学键图形 在所述旋转方向下的旋转角度包括:
确定所述排版焦点所处的端部不连接其他化学键图形的端部,且所 述化学键图形与相邻的化学键图形的夹角在阈值范围之内,则对于每一 次输入设置所述旋转角度 Θ为: θ = α - β ,
其中, α是所述化学键图形与相邻化学键图形构成 Ν等边形的内角 角度,所述 Ν等边形是所述化学键图形在所述旋转方向上旋转最小角度 与所述相邻化学键图形所构成的多等边形, β所述化学键图形与所述相 邻化学键图形当前夹角的角度。
6.根据权利要求 5所述的方法, 其特征在于, 当所述相邻化学键图 形为多个时, 则分别对各个所述相邻化学键图形计算 θ , 选择其中最小 的 Θ作为所述旋转角度。
7.根据权利要求 5所述的方法, 其特征在于, Ν小于等于 10。
8.根据权利要求 1所述的方法, 其特征在于, 设置所述化学键图形 在所述旋转方向下的旋转角度包括:
确定所述排版焦点所处的端部不连接其他化学键图形的端部,且所 述化学键图形与相邻的化学键图形的夹角在阈值范围之外,则对于每一 次输入设置所述旋转角度为一个最小单位。
9.根据权利要求 1所述的方法, 其特征在于, 还包括以下至少一个 步骤:
提示所述化学键图形与其相邻化学键图形的夹角的角度值; 当所述化学键图形与其相邻化学键图形的夹角角度等于一个多等 边形内角的时候, 同时提示所述夹角角度值和所述多等边形的边数。
10. 一种用于调整化学键图形的角度的装置, 其特征在于, 包括: 输入模块, 用于在排版焦点处于化学键图形的一端的情况下, 接受 来自键盘特定键的输入;
方向模块, 用于设置所述输入所对应的旋转方向;
角度模块, 用于确定所述化学键图形在所述旋转方向下的旋转角 度;
旋转模块,用于使所述化学键图形围绕其另一端以所述旋转方向旋 转所述角度。
11. 根据权利要求 10所述的装置, 其特征在于, 所述角度模块包 括:
无级模块,用于确定所述排版焦点所处的端部同时连接其他化学键 图形的端部, 则对于每一次输入设置所述旋转角度为一个最小单位, 且 设置所述其他化学键图形保持与所述被操作的化学键图形的连接关系 所需调整的角度和长度;或者确定所述排版焦点所处的端部不连接其他 化学键图形的端部,且所述化学键图形与相邻的化学键图形的夹角在阈 值范围之外, 则对于每一次输入设置所述旋转角度为一个最小单位; 有级模块,用于确定所述排版焦点所处的端部不连接其他化学键图 形的端部,且所述化学键图形与相邻的化学键图形的夹角在阈值范围之 内, 则对于每一次输入设置所述旋转角度 Θ为: θ = α - β ,
其中, α是所述化学键图形与相邻化学键图形构成 Ν等边形的内角 角度,所述 Ν等边形是所述化学键图形在所述旋转方向上旋转最小角度 与所述相邻化学键图形所构成的多等边形, β所述化学键图形与所述相 邻化学键图形当前夹角的角度。
12. 根据权利要求 10所述的装置, 其特征在于, 还包括以下至少 一个模块:
第一提示模块,用于提示所述化学键图形与其相邻化学键图形的夹 角角度;
第二提示模块,用于当所述化学键图形与其相邻化学键图形的夹角 角度等于一个多等边形内角的时候, 同时提示所述夹角角度值和所述多 等边形的边数。
PCT/CN2011/083394 2010-12-02 2011-12-02 用于调整化学键图形的角度的方法和装置 WO2012072043A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP11845632.6A EP2648113A4 (en) 2010-12-02 2011-12-02 METHOD FOR ADJUSTING THE ANGLE OF FIGURES OF CHEMICAL COMPOUNDS AND DEVICE THEREFOR
US13/991,153 US20130335332A1 (en) 2010-12-02 2011-12-02 Method for adjusting angle of chemical bond figure and device thereof
JP2013541199A JP2014501972A (ja) 2010-12-02 2011-12-02 化学結合図の角度を調整するための方法と装置

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010578118.4 2010-12-02
CN201010578118.4A CN102486768B (zh) 2010-12-02 2010-12-02 用于调整化学键图形的角度的方法和装置

Publications (1)

Publication Number Publication Date
WO2012072043A1 true WO2012072043A1 (zh) 2012-06-07

Family

ID=46152262

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/083394 WO2012072043A1 (zh) 2010-12-02 2011-12-02 用于调整化学键图形的角度的方法和装置

Country Status (5)

Country Link
US (1) US20130335332A1 (zh)
EP (1) EP2648113A4 (zh)
JP (1) JP2014501972A (zh)
CN (1) CN102486768B (zh)
WO (1) WO2012072043A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6086188B2 (ja) * 2012-09-04 2017-03-01 ソニー株式会社 音響効果調整装置および方法、並びにプログラム
CN103336584B (zh) * 2013-06-21 2017-03-29 辽东学院 一种升级四节输入法键盘
CN105677137B (zh) * 2014-11-20 2019-02-01 北大方正集团有限公司 无机化学分子的显示方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11109940A (ja) * 1997-09-29 1999-04-23 Canon Inc 画像データの輪郭編集装置と画像データの輪郭編集方法、及び記憶媒体
CN1477892A (zh) * 2002-07-09 2004-02-25 Lg������ʽ���� 移动通信终端的屏幕显示配置方法
CN101178815A (zh) * 2007-12-10 2008-05-14 电子科技大学 一种三维图像重建体的精确测量方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3127026B2 (ja) * 1991-12-20 2001-01-22 富士通株式会社 分子設計支援システム
US5461580A (en) * 1993-04-30 1995-10-24 Xerox Corporation Computer-aided chemical illustration system
JP4984843B2 (ja) * 2006-11-16 2012-07-25 富士通株式会社 分子設計支援装置及びプログラム
US9477396B2 (en) * 2008-11-25 2016-10-25 Samsung Electronics Co., Ltd. Device and method for providing a user interface
CN101719057A (zh) * 2009-11-27 2010-06-02 广东威创视讯科技股份有限公司 绘制几何图形的方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11109940A (ja) * 1997-09-29 1999-04-23 Canon Inc 画像データの輪郭編集装置と画像データの輪郭編集方法、及び記憶媒体
CN1477892A (zh) * 2002-07-09 2004-02-25 Lg������ʽ���� 移动通信终端的屏幕显示配置方法
CN101178815A (zh) * 2007-12-10 2008-05-14 电子科技大学 一种三维图像重建体的精确测量方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2648113A4 *

Also Published As

Publication number Publication date
EP2648113A1 (en) 2013-10-09
CN102486768A (zh) 2012-06-06
JP2014501972A (ja) 2014-01-23
CN102486768B (zh) 2014-10-29
US20130335332A1 (en) 2013-12-19
EP2648113A4 (en) 2014-05-07

Similar Documents

Publication Publication Date Title
US8911165B2 (en) Overloaded typing apparatuses, and related devices, systems, and methods
JP4848006B2 (ja) エルゴノミックキーボード装置
US9880697B2 (en) Remote multi-touch control
US20140267044A1 (en) Columnar fitted virtual keyboard
US8493346B2 (en) Morphing touchscreen keyboard interface
CN101593024A (zh) 具有改进的空中光标控制并允许多个操作模式的点击设备
BRPI0715488A2 (pt) Dispositivo de entrada de caractere e seu método
WO2013177901A1 (zh) 触控解锁方法、装置和电子设备
WO2012072043A1 (zh) 用于调整化学键图形的角度的方法和装置
US20150109219A1 (en) Method of operating screen on touch screen
JP5102894B1 (ja) 文字入力装置及び携帯端末装置
JP2014164368A (ja) 入力支援装置、キーボード、情報処理端末、入力支援方法、及びプログラム
JP2012256270A5 (zh)
WO2023241106A1 (zh) 振动信号编码处理方法、装置、计算机设备及存储介质
WO2013177761A1 (zh) 显示控制方法和装置
TW200933439A (en) Method and apparatus for controlling functionalities of computer system
JP2008129617A (ja) 入力装置および入力方法
JP2003303029A (ja) コンピューティング装置のユーザを認証する方法及びシステム、並びに、コンピューティング装置
JP2004102941A (ja) 携帯電子機器
KR20110080841A (ko) 터치와 드래그를 이용하여 한글을 입력하는 방법, 단말 장치 및 컴퓨터 판독 가능한 기록 매체
TWI464635B (zh) 手持電子裝置及其控制方法
JP2008242945A (ja) 電子機器およびキー操作制御方法
WO2015169099A1 (zh) 调整滑动操作的理论值的方法和装置
WO2012083888A1 (zh) 用于编辑有机化学结构式的方法和装置
KR100953967B1 (ko) 노트북컴퓨터의 엔코더 스위치의 제어장치 및 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11845632

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2013541199

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2011845632

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2011845632

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 13991153

Country of ref document: US