Drawing assistance program, drawing assistance device, and drawing assistance method
The drawing support program and device streamline the process of setting up parent-child relationships by automatically determining selection orders based on user input, reducing manual effort and enhancing efficiency in managing multiple components.
Patent Information
- Application Number
- PCT/JP2023/004545
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-10
- Publication Date
- 2024-08-15
AI Technical Summary
Existing drawing support technologies require significant effort to set up parent-child relationships between multiple parts displayed on a screen, especially when dealing with large numbers of components, as users need to manually select and arrange relationships, which is time-consuming and labor-intensive.
A drawing support program and device that automatically determine the selection order of parts based on user input, such as linear trajectories or rectangular areas, to establish parent-child relationships, reducing the manual effort required for setting up these relationships by determining the positional order and applying settings recursively.
This solution significantly reduces the effort needed to set up parent-child relationships, allowing for intuitive and efficient manipulation of multiple parts by automatically determining selection orders and applying settings, thereby simplifying the process and reducing user input for complex arrangements.
Smart Images

Figure JP2023004545_15082024_PF_FP
Abstract
Description
Drawing support program, drawing support device, and drawing support method
[0001] The present disclosure relates to a drawing support program, a drawing support device, and a drawing support method.
[0002] One known technique for supporting drawing is to set a parent-child relationship between multiple components displayed on a screen. Among multiple components with a parent-child relationship, the parent component's settings can be inherited by the child components, making it easier to operate the components. For example, Patent Document 1 discloses a technique for setting a parent-child relationship between shapes displayed on a screen in an application for creating a GUI (Graphical User Interface) screen.
[0003] Patent No. 3402350
[0004] In the technology described above, there is a demand for reducing the effort required to set parent-child relationships for multiple components by making it easier to set parent-child relationships for multiple components.
[0005] The present disclosure has been made to solve the above-mentioned problems, and aims to provide a drawing support program etc. that can reduce the effort required to set multiple parts.
[0006] In order to achieve the above object, the drawing support program according to the present disclosure functions as an operation receiving means for receiving a selection operation for selecting a plurality of parts displayed on a screen, a selection order determination means for determining the selection order of the plurality of parts based on the selection operation received by the operation receiving means and the positional relationship of the plurality of parts on the screen, and a parent-child relationship setting means for setting a parent-child relationship between the plurality of parts, with the part that comes earlier in the selection order being a parent part and the part that comes later in the selection order being a child part.
[0007] In the present disclosure, the selection order of multiple parts displayed on the screen is determined based on a selection operation for selecting multiple parts and the positional relationship of the multiple parts on the screen, and a parent-child relationship is set for the multiple parts such that the part selected earlier in the selection order is the parent part and the part selected later in the selection order is the child part. Therefore, according to the present disclosure, it is possible to reduce the effort required to set multiple parts.
[0008] FIG. 1 is a block diagram showing a configuration of a drawing support device according to embodiment 1; FIG. 2 is a diagram showing an example of a plurality of components displayed on the drawing support device according to embodiment 1; FIG. 3 is a diagram showing a first example of a selection operation for drawing a linear locus input to the drawing support device according to embodiment 1 and a parent-child relationship set by the selection operation; FIG. 4 is a diagram showing a second example of a selection operation for drawing a linear locus input to the drawing support device according to embodiment 1 and a parent-child relationship set by the selection operation; FIG. 5 is a diagram showing a selection operation for drawing a rectangular area input to the drawing support device according to embodiment 1 and a first example of a parent-child relationship set by the selection operation; FIG. 6 is a diagram showing a selection operation for drawing a rectangular area input to the drawing support device according to embodiment 1 and a second example of a parent-child relationship set by the selection operation; FIG. 1 shows an example of parent-child relationship information generated in the drawing support device according to the first embodiment. FIG. 2 shows an example of applying settings to multiple components for which a parent-child relationship is set in the drawing support device according to the first embodiment. FIG. 3 shows a flowchart illustrating the flow of a parent-child relationship setting process executed by the drawing support device according to the first embodiment. FIG. 4 shows an example of changing an edge for which a parent-child relationship is set in the drawing support device according to the third embodiment. FIG. 5 shows an example of changing a component for which a parent-child relationship is set in the drawing support device according to the fourth embodiment. FIG. 6 shows an example of changing a component for which a parent-child relationship is set in the drawing support device according to the fifth embodiment. FIG. 7 shows an example of reversing a parent-child relationship set between components in the drawing support device according to the sixth embodiment.
[0009] Hereinafter, embodiments will be described in detail with reference to the drawings, in which the same or corresponding parts are designated by the same reference numerals.
[0010] 1 shows the configuration of a drawing support device 10 according to embodiment 1. The drawing support device 10 is a device in which drawing software is installed, and has a function of supporting a user's operations related to drawing.
[0011] Here, the drawing software is screen design software for an HMI (Human Machine Interface) that is used to design the appearance and internal behavior of the screen in the HMI. The drawing software is GUI application software that has the function of collectively aligning and editing multiple components arranged on the screen. As an example, the drawing software is software for creating a display screen that is displayed on a programmable display device that displays the status of devices such as a programmable logic controller (PLC) or a sensor and accepts operations for the device.
[0012] The drawing support device 10 is a terminal device operated by a user. The drawing support device 10 may be any device that can be operated by a user, such as a personal computer, a tablet terminal, or a smartphone. As shown in FIG. 1 , the drawing support device 10 includes a control unit 11, a storage unit 12, an operation unit 13, a display unit 14, and a communication unit 15.
[0013] The control unit 11 includes a CPU (Central Processing Unit). The CPU is also called a central processing unit, central arithmetic unit, processor, microprocessor, or microcomputer, and functions as a processing unit that executes processing and calculations related to the control of the drawing support device 10. In the control unit 11, the CPU reads and operates programs and data stored in the storage unit 12, and performs overall control of the drawing support device 10.
[0014] The storage unit 12 includes a ROM (Read Only Memory), a RAM (Random Access Memory), a flash memory, etc. The storage unit 12 stores programs and data used by the control unit 11 to perform various processes. The storage unit 12 also stores data generated or acquired by the control unit 11 performing various processes. Specifically, the storage unit 12 stores selection order information 121 and parent-child relationship information 122.
[0015] The operation unit 13 includes input devices such as a touch panel, a touch pad, a keyboard, a mouse, and physical buttons, and receives operational input from a user. The user can input various instructions to the drawing support device 10 by operating the operation unit 13.
[0016] The display unit 14 includes a display device such as a liquid crystal panel, an organic EL (Electro-Luminescence) panel, etc. The display unit 14 is driven by a display drive circuit (not shown) to display various images.
[0017] The communication unit 15 includes a communication interface for communicating with devices external to the drawing support device 10. For example, the communication unit 15 communicates with devices external to the drawing support device 10 in accordance with well-known communication standards such as a local area network (LAN) or a universal serial bus (USB).
[0018] The control unit 11 functionally comprises an operation reception unit 111 which is an example of an operation reception means, a selection order determination unit 112 which is an example of a selection order determination means, a parent-child relationship setting unit 113 which is an example of a parent-child relationship setting means, and a setting application unit 114 which is an example of a setting application means.
[0019] Each of these functions is realized by software, firmware, or a combination of software and firmware. The software and firmware are written as programs and stored in the storage unit 12. The control unit 11 then executes the programs stored in the storage unit 12 to realize each function.
[0020] <Acceptance of Selection Operation> The operation acceptance unit 111 accepts a selection operation for selecting multiple parts displayed on the screen. Here, a part is an element included as an image on the display screen. More specifically, a part corresponds to a GUI component, a figure, etc. used to operate the HMI. Examples of parts include a desk placed in a room, a specific object such as a part that constitutes a product, a specific function such as a switch or a meter, and data such as text or a figure.
[0021] 2 shows an example in which five parts A to E are displayed on the screen of the display unit 14. The user operates the operation unit 13 to input a selection operation for selecting a plurality of parts to be grouped from among the five parts A to E displayed on the screen in this manner. The operation reception unit 111 receives an operation for selecting a plurality of parts from among the five parts A to E displayed on the screen in accordance with the selection operation input by the user.
[0022] 2, for ease of understanding, each of the parts A to E is shown as a rectangle of the same size. However, each of the multiple parts displayed on the screen is not limited to a rectangle, and may have other shapes, including other polygonal shapes, circles, ellipses, etc., and may be different sizes.
[0023] The following describes, as an example, a case where the operation reception unit 111 receives a selection operation for selecting three parts A to C from the five parts A to E shown in Fig. 2. The operation reception unit 111 can receive the selection operation using two selection methods: (1) a method for inputting a linear trajectory at a position on the screen that crosses multiple parts, and (2) a method for inputting a rectangular area at a position on the screen that overlaps multiple parts.
[0024] (1) As a first selection method, the operation receiving unit 111 receives a selection operation for inputting a linear trajectory at a position on the screen that intersects multiple components. Here, the linear trajectory is a linear trajectory drawn by the user on the screen, and may be a straight trajectory or a curved trajectory.
[0025] The user operates the operation unit 13 to input a selection operation that draws a straight or curved linear locus on the screen so that at least a portion of the locus overlaps the multiple components to be selected. Specifically, the user moves a finger, a touch pen, or the like on the touch panel, or drags a mouse, a tracker, or the like, so as to trace the multiple components to be selected. The operation acceptance unit 111 accepts the selection operation thus input.
[0026] 3, if the user inputs a selection operation to draw a linear trajectory L1 at a position that crosses three parts A to C out of five parts A to E, the three parts A to C are selected. The linear trajectory L1 starts from the upper start point of part A and ends below part C, crossing part A from its upper side to its lower side, crossing part B from its upper side to its left side, and crossing part C from its upper side to its right side.
[0027] 4, if the user inputs a selection operation to draw a linear locus L2 at a position that crosses three of the five parts A to E, namely, parts C, B, and D, then three parts B to D are selected. The linear locus L2 runs from a starting point below part C to an end point on the right side of part D, crossing part C from its bottom edge to its top edge, crossing part B from its bottom edge to its top edge, and crossing part D from its left edge to its right edge.
[0028] In this way, the user inputs a linear locus on the screen that crosses multiple components to be selected. By selecting components in this way, multiple components can be selected intuitively with a few operations.
[0029] (2) As a second selection method, the operation receiving unit 111 receives a selection operation for inputting a rectangular area at a position on the screen that overlaps with a plurality of components. Here, the rectangular area is a rectangular area created by the user on the screen.
[0030] The user operates the operation unit 13 to input a selection operation in which a two-dimensional area is drawn on the screen so that at least a portion of the area overlaps with the multiple components to be selected. Specifically, the user moves a finger, a touch pen, or the like on the touch panel from a start point to an end point so as to cover the multiple components to be selected, or drags a cursor displayed on the screen. The operation reception unit 111 receives the selection operation thus input.
[0031] 5, if the user inputs a selection operation to draw a rectangular region R1 at a position that overlaps three of five parts A to E, namely, parts A to C, then the three parts A to C are selected. The rectangular region R1 covers the range from the start point at the upper left of part A to the end point at the lower right of part C, with the start point and end point being opposite vertices.
[0032] 6, if the user inputs a selection operation to draw a rectangular region R2 at a position that overlaps three of the five parts A to E, namely, parts B, C, and E, then the three parts B, C, and E are selected. Rectangular region R2 covers the range from the start point at the upper left of part B to the end point at the lower right of part E, with the start point and end point being opposite vertices.
[0033] In this way, the user inputs a rectangular area on the screen that overlaps multiple components to be selected. By selecting components in this way, multiple components can be selected intuitively with minimal operations.
[0034] 1 , the selection order determination unit 112 determines the selection order of the multiple selected parts based on the selection operation accepted by the operation acceptance unit 111 and the positional relationship of the multiple selected parts on the screen. Specifically, the selection order determination unit 112 determines the selection order of the multiple parts based on the selection method of the multiple parts in the accepted selection operation and the positional relationship of the multiple parts on the screen.
[0035] (1) When the operation receiving unit 111 receives a selection operation for inputting a linear trajectory, the selection order determination unit 112 determines the selection order of the parts among the selected multiple parts, starting with the parts that are crossed by the linear trajectory.
[0036] For example, when the operation receiving unit 111 receives a selection operation to input the linear trajectory L1 shown in the upper part of Fig. 3, the selection order determination unit 112 determines the order of selection of parts to be part A, part B, and part C, which is the order in which the linear trajectory L1 crosses. The selection order of parts determined in this way is indicated by numbers in boxes in the lower part of Fig. 3.
[0037] Alternatively, when the operation receiving unit 111 receives a selection operation to input the linear trajectory L2 shown in the upper part of Fig. 4, the selection order determination unit 112 determines the order of parts to be selected as part C, part B, and part D, which is the order in which the linear trajectory L2 crosses. The selection order of parts determined in this manner is indicated by numbers in boxes in the lower part of Fig. 4.
[0038] In this way, the selection order determination unit 112 determines the selection order of a plurality of parts that are located at positions that overlap with the linear trajectory in the order that the linear trajectory input as the selection operation crosses them.
[0039] (2) When the operation receiving unit 111 receives a selection operation for inputting a rectangular area, the selection order determination unit 112 determines the selection order of the selected parts, starting with the part closest to the starting point of the rectangular area.
[0040] More specifically, when a rectangular area has a vertically elongated shape, the selection order determination unit 112 determines the selection order of parts in ascending order of the absolute value of the difference in vertical coordinate from the start point of the rectangular area. When a rectangular area contains multiple parts with the same vertical coordinate, the selection order determination unit 112 determines the selection order of the part with the smallest absolute value of the difference in horizontal coordinate from the start point of the rectangular area, among the multiple parts. Furthermore, when a rectangular area contains multiple parts with the same vertical coordinate and horizontal coordinate, the selection order determination unit 112 determines the selection order of the part that is located behind the multiple parts, among the multiple parts, in descending order of the absolute value of the difference in horizontal coordinate from the start point of the rectangular area.
[0041] On the other hand, if the rectangular area is horizontally long, the selection order determination unit 112 determines the selection order of the parts in ascending order of the absolute value of the difference in horizontal coordinate from the start point of the rectangular area. If there are multiple parts with the same horizontal coordinate within the rectangular area, the selection order determination unit 112 determines the selection order of the part with the smallest absolute value of the difference in vertical coordinate from the start point of the rectangular area to be earlier among the multiple parts. Furthermore, if there are multiple parts with the same vertical coordinate and horizontal coordinate within the rectangular area, the selection order determination unit 112 determines the selection order of the part that is located behind the multiple parts to be earlier among the multiple parts.
[0042] For example, when the operation receiving unit 111 receives a selection operation to input the vertically long rectangular region R1 shown in the upper part of Fig. 5, the selection order determination unit 112 determines the order of parts to be selected as follows: part A, part B, and part C, which are closest to the start point of the rectangular region R1 in a comparison of their vertical coordinates. The selection order of parts determined in this way is indicated by numbers enclosed in squares in the lower part of Fig. 5.
[0043] Alternatively, when the operation receiving unit 111 receives a selection operation to input the horizontally long rectangular region R2 shown in the upper part of Fig. 6, the selection order determination unit 112 determines the order of parts to be selected as follows: part C, part B, and part E, which are closest to the start point of rectangular region R1 in a comparison of their horizontal coordinates. The selection order of parts determined in this way is indicated by numbers in squares in the lower part of Fig. 6.
[0044] In this way, the selection order determination unit 112 determines the selection order of multiple parts that overlap the rectangular area based on the positions of the start and end points of the rectangular area input as a selection operation and the aspect ratio of the rectangular area.
[0045] <Determining the Selection Order of Edges> In addition to determining the selection order of parts in this way, the selection order determination unit 112 further determines the selection order of edges for the multiple parts whose selection orders have been determined. The selection order determination unit 112 determines the selection order of edges from among the four edges of a rectangle circumscribing each part whose selection order has been determined, in accordance with a predetermined criterion.
[0046] (1) When the operation receiving unit 111 receives a selection operation for inputting a linear trajectory, the selection order determination unit 112 first determines the order of one side of a rectangle circumscribing the first part in the selection order among the selected multiple parts, which last intersects with the linear trajectory. Next, the selection order determination unit 112 determines the order of two sides of the circumscribing rectangle that first and last intersect with the linear trajectory, starting from second, for each of at least one part other than the first and last parts in the selection order among the selected multiple parts. Furthermore, the selection order determination unit 112 last determines the order of one side of the four sides of the rectangle circumscribing the last part in the selection order, which first intersects with the linear trajectory.
[0047] For example, when the operation receiving unit 111 receives a selection operation to input the linear trajectory L1 shown in the upper part of Fig. 3, the selection order determination unit 112 determines the order of edge selection to be the bottom edge of component A, the top edge of component B, the left edge of component B, and the top edge of component C. The edge selection order determined in this manner is indicated by circled numbers in the lower part of Fig. 3.
[0048] Alternatively, when the operation receiving unit 111 receives a selection operation to input the linear trajectory L2 shown in the upper part of Fig. 4, the selection order determination unit 112 determines the order of edge selection to be the top edge of component C, the bottom edge of component B, the top edge of component B, and the left edge of component D. The edge selection order determined in this manner is indicated by circled numbers in the lower part of Fig. 4.
[0049] (2) When the operation receiving unit 111 receives a selection operation for inputting a rectangular area, the selection order determination unit 112 selects, for each pair of two consecutively selected parts from among the selected multiple parts, a pair of sides having the shortest distance between them from among pairs of sides including one side of a rectangle circumscribing the earlier selected part and one side of a rectangle circumscribing the later selected part. Then, the selection order determination unit 112 determines the order of selection of the two sides of the pair selected from each pair of two consecutively selected parts, in the order of the side of the earlier selected part and the side of the later selected part.
[0050] Here, the distance between the sides is, for example, the Euclidean distance between the midpoint of one side and the midpoint of the other side. When there are multiple pairs with the same distance, the selection order determination unit 112 selects one of the multiple pairs with the same distance according to a predetermined rule. Specifically, when the rectangular area is vertically long, the selection order determination unit 112 selects, from the multiple pairs with the same distance, the pair with the smallest absolute value of the difference in vertical coordinate between the midpoint of the side of the component with the earliest selection order and the start point of the rectangular area. When there are still multiple pairs with the same distance, the selection order determination unit 112 selects, from the multiple pairs, the pair with the smallest absolute value of the difference in horizontal coordinate between the midpoint of the side of the component with the earliest selection order and the start point of the rectangular area. On the other hand, when the rectangular area is horizontally long, the selection order determination unit 112 selects, from the multiple pairs with the same distance, the pair with the smallest absolute value of the difference in horizontal coordinate between the midpoint of the side of the component with the earliest selection order and the start point of the rectangular area. If there are still multiple pairs with equal distances, the selection order determination unit 112 selects the pair with the smallest absolute value of the difference in vertical coordinate between the midpoint of the side of the component with the earlier selection order and the starting point of the rectangular area.
[0051] For example, when the operation receiving unit 111 receives a selection operation to input the rectangular region R1 shown in the upper part of Fig. 5, the selection order determination unit 112 determines the order of edge selection as follows: the bottom edge of component A, the top edge of component B, the bottom edge of component B, and the top edge of component C. The edge selection order determined in this way is indicated by circled numbers in the lower part of Fig. 5.
[0052] Alternatively, when the operation receiving unit 111 receives a selection operation to input the rectangular region R2 shown in the upper part of Fig. 6 , the selection order determination unit 112 determines the order of edge selection to be the top edge of component C, the bottom edge of component B, the right edge of component B, and the left edge of component E. The edge selection order determined in this manner is indicated by circled numbers in the lower part of Fig. 6 .
[0053] Note that, when the shape of a component is rectangular as shown in FIGS. 2 to 6 , the rectangle circumscribing the component coincides with the sides forming the periphery of the component. Therefore, in the above and following descriptions, expressions such as "bottom side of component A" and "top side of component B" have the same meaning as "bottom side of the rectangle circumscribing component A" and "top side of the rectangle circumscribing component B." In contrast, as shown in FIG. 7 , for example, the shapes of multiple components displayed on the screen may be other than rectangular. When the shape of a component is other than rectangular, the rectangle circumscribing the component is located outside the periphery of the component, as indicated by the dashed line in the lower part of FIG. 7 . In this case, the selection order determination unit 112 determines the selection order of the sides of the virtual rectangle located outside the periphery of such a component.
[0054] In the following, for ease of understanding, it is assumed that the shape of the part is rectangular. Therefore, expressions such as "side of the part" may be rephrased as "side of the rectangle circumscribing the part." Furthermore, for parts other than rectangular shapes, the same explanation can be achieved by rephrasing expressions such as "side of the part" as "side of the rectangle circumscribing the part."
[0055] After determining the selection order of the parts and edges in this manner, the selection order determination unit 112 stores the determined selection order in selection order information 121. The selection order information 121 is data that temporarily holds the selection order determined by the selection order determination unit 112.
[0056] 8, the selection order information 121 defines the selection order of parts and the selection order of edges. As an example, the selection order information 121 holds the selection order of parts in the order of part A, part B, and part C, and holds the selection order of edges in the order of the bottom edge of part A, the top edge of part B, the left edge of part B, and the top edge of part C.
[0057] <Setting Parent-Child Relationships of Components> Returning to FIG. 1 , the parent-child relationship setting unit 113 sets parent-child relationships between the selected components based on the selection order determined by the selection order determination unit 112. Here, the parent-child relationship means a subordinate relationship set between the components. In general grouping, the relationships between the components are equal, but in the parent-child relationship, a subordinate relationship is set between the components. By setting parent-child relationships between the components, advanced component operations can be performed, such as automatically changing the settings of a child component in response to a change in the settings of a parent component.
[0058] More specifically, the parent-child relationship setting unit 113 sets a parent-child relationship for the selected multiple parts, with the part that comes first in the selection order being the parent part and the part that comes later in the selection order being the child part. At this time, if the selected multiple parts are only two parts, the parent-child relationship setting unit 113 sets a parent-child relationship for a combination of the two selected parts, with the part that comes first in the selection order being the parent part and the part that comes later in the selection order being the child part. On the other hand, if the selected multiple parts are at least three parts, the parent-child relationship setting unit 113 sets a parent-child relationship for each of a plurality of combinations, each of which is a combination of two parts of the at least three selected parts that are consecutive in the selection order determined by the selection order determination unit 112, with the part that comes first in the selection order being the parent part and the part that comes later in the selection order being the child part.
[0059] 3, 5, and 7, when the selection order determined by selection order determination unit 112 is part A, part B, and part C, parent-child relationship setting unit 113 first sets a parent-child relationship between the combination of parts A and B, with part A being the parent part and part B being the child part. Then, parent-child relationship setting unit 113 second sets a parent-child relationship between the combination of parts B and C, with part B being the parent part and part C being the child part.
[0060] 4, when the selection order determined by the selection order determination unit 112 is the order of parts C, B, and D, the parent-child relationship setting unit 113 first sets a parent-child relationship between the combination of parts C and B, with part C as the parent part and part B as the child part. Then, the parent-child relationship setting unit 113 second sets a parent-child relationship between the combination of parts B and D, with part B as the parent part and part D as the child part.
[0061] 6, when the selection order determined by selection order determination unit 112 is part C, part B, and part E, parent-child relationship setting unit 113 first sets a parent-child relationship between the combination of parts C and B, with part C as the parent part and part B as the child part. Then, parent-child relationship setting unit 113 second sets a parent-child relationship between the combination of parts B and E, with part B as the parent part and part E as the child part.
[0062] <Setting Parent-Child Relationships of Sides> In addition to the parent-child relationships of these components, the parent-child relationship setting unit 113 also sets parent-child relationships of sides. Here, the parent-child relationship of sides corresponds to the corresponding relationship between the sides in the layout of two components for which a parent-child relationship has been set. When a parent-child relationship is set between one side of a parent component and one side of a child component, the parent component and the child component are placed in the layout of multiple components including them so that the sides for which the parent-child relationship has been set face each other or so that the sides for which the parent-child relationship has been set are connected.
[0063] For example, if each component represents a desk to be placed in a room, the components with parent-child relationships are arranged so that the sides with the parent-child relationships face each other. Alternatively, if each component represents an individual part for assembling a product, the components with parent-child relationships are combined so that the sides with the parent-child relationships are connected.
[0064] For each of the plurality of combinations for which a parent-child relationship has been set, the parent-child relationship setting unit 113 sets a parent-child relationship between one side of a rectangle circumscribing the parent component and one side of a rectangle circumscribing the child component. More specifically, based on the selection order of the edges determined by the selection order determination unit 112, the parent-child relationship setting unit 113 sets a parent-child relationship in which the edge selected earlier in the selection order is the parent and the edge selected later in the selection order is the child for a combination of two edges that are consecutively selected and in which the edge selected earlier in the selection order is on the parent component side and the edge selected later in the selection order is on the child component side.
[0065] (1) When the operation receiving unit 111 receives a selection operation for inputting a linear trajectory, the parent-child relationship setting unit 113 sets a parent-child relationship for each combination of two parts for which a parent-child relationship has been set between one side of a rectangle circumscribing the parent part that last intersects with the linear trajectory and one side of a rectangle circumscribing the child part that first intersects with the linear trajectory.
[0066] 3, if the selection order of the edges determined by the selection order determination unit 112 is the bottom edge of component A, the top edge of component B, the left edge of component B, and the top edge of component C, the parent-child relationship setting unit 113 first sets a parent-child relationship of edges in which the bottom edge of component A is the parent and the top edge of component B is the child. Then, the parent-child relationship setting unit 113 second sets a parent-child relationship of edges in which the left edge of component B is the parent and the top edge of component C is the child.
[0067] 4, if the selection order of the edges determined by the selection order determination unit 112 is the top edge of component C, the bottom edge of component B, the top edge of component B, and the left edge of component D, the parent-child relationship setting unit 113 first sets a parent-child relationship of edges in which the top edge of component C is the parent and the bottom edge of component B is the child. Then, the parent-child relationship setting unit 113 second sets a parent-child relationship of edges in which the top edge of component B is the parent and the left edge of component D is the child.
[0068] (2) When the operation receiving unit 111 receives a selection operation for inputting a rectangular area, the parent-child relationship setting unit 113 sets the parent-child relationship for each combination of two parts for which a parent-child relationship has been set, to the combination of one side of a rectangle circumscribing the parent part and one side of a rectangle circumscribing the child part, with the side distance between them being the shortest.
[0069] 5, if the selection order of the edges determined by the selection order determination unit 112 is the bottom edge of component A, the top edge of component B, the bottom edge of component B, and the top edge of component C, the parent-child relationship setting unit 113 first sets a parent-child relationship of the edges in which the bottom edge of component A is the parent and the top edge of component B is the child. Then, the parent-child relationship setting unit 113 second sets a parent-child relationship of the edges in which the bottom edge of component B is the parent and the top edge of component C is the child.
[0070] 6, if the selection order of the edges determined by the selection order determination unit 112 is the top edge of component C, the bottom edge of component B, the right edge of component B, and the left edge of component E, the parent-child relationship setting unit 113 first sets a parent-child relationship of edges in which the top edge of component C is the parent and the bottom edge of component B is the child. Then, the parent-child relationship setting unit 113 second sets a parent-child relationship of edges in which the right edge of component B is the parent and the left edge of component E is the child.
[0071] 3 to 7, the parent-child relationship that is set when multiple parts are selected as in the upper parts of FIGS. 3 to 7 is indicated by an arrow pointing from the parent part to the child part. In this way, the parent-child relationship setting unit 113 displays an arrow pointing from the parent part to the child part on the screen as a symbol indicating the parent-child relationship of the parts. In this case, the parent-child relationship setting unit 113 displays the arrow pointing from the parent part to the child part so as to connect the midpoints of the pair of sides for which the parent-child relationship is set. Note that the arrow is an example of a symbol indicating a parent-child relationship, and a symbol other than an arrow may be used to indicate the parent-child relationship.
[0072] In this way, the parent-child relationship setting unit 113 performs the process of setting a parent-child relationship for two consecutive parts in the selection order for each pair of two consecutive parts included in the three or more parts selected by the selection operation. Furthermore, the parent-child relationship setting unit 113 also sets a parent-child relationship for the edges of the parts for which a parent-child relationship has been set. A group of parts for which a parent-child relationship has been set by the parent-child relationship setting unit 113 will be referred to as "parent-child relationship-set components" below.
[0073] After setting the parent-child relationships between the parts and the edges in this manner, the parent-child relationship setting unit 113 stores information indicating the set parent-child relationships in parent-child relationship information 122. The parent-child relationship information 122 is data that holds the parent-child relationships set between the parts and the edges by the parent-child relationship setting unit 113.
[0074] In order to facilitate changing the settings for each component with a parent-child relationship, the parent-child relationship information 122 is not stored separately for each component, but is stored collectively in the parent-child relationship setting component. The settings stored in the parent-child relationship information 122 are applied recursively from the parent component to the child component.
[0075] 9 , the parent-child relationship information 122 has each piece of information: a parts list, a root part, an edge list, and a setting list. The parts list has information on the multiple parts held in the selection order information 121, in the same selection order as the selection order information 121. The edge list has information on the multiple edges held in the selection order information 121, in the same selection order as the selection order information 121. In this way, the parent-child relationship information 122 holds references to the parts and edges for which a parent-child relationship is set, in accordance with the selection order determined by the selection order determination unit 112.
[0076] A root part is a part that does not have a parent part among multiple parts for which a parent-child relationship has been established, and corresponds to the highest-ranking part in the parent-child relationship. For example, if the selection order of parts determined by the selection order determination unit 112 is part A, part B, and part C, the root part is part A. The parent-child relationship setting unit 113 sets the highest-ranking part among multiple parts for which a parent-child relationship has been established as the root part.
[0077] The setting list defines settings that are applied recursively to components that have parent-child relationships. Specifically, the setting list holds information about settings, setting values, and forward offsets.
[0078] The settings are information related to the placement, alignment, and attributes of components. Here, the placement of components is, for example, the X and Y coordinates of the components on the screen. The alignment of components is, for example, the width, height, and spacing between adjacent components on the screen. The attributes of components are, for example, the fill color, line width, character string related to the components, memory address, and the like. The placement, alignment, and attributes of components are collectively referred to as "settings." In the example of FIG. 9 , the setting list holds information such as the fill color and Y coordinate of the components as settings.
[0079] The setting value is a specific value when applying a setting to a root part. The forward offset is a value added to the setting value of a parent part to derive the setting value of a child part. The forward offset is used to align multiple parts at a fixed interval or to set consecutive values for multiple parts. In the example of FIG. 9 , the setting list stores RGB (Red, Green, Blue) brightness values as the forward offset of the fill color, and stores a value corresponding to the difference in the Y coordinate between the parent part and the child part as the forward offset of the Y coordinate. The user can operate the operation unit 13 to input the setting value and forward offset of each setting in the setting list.
[0080] <Application of Settings> The setting application unit 114 applies settings based on the settings of the parent component to the settings of the child components for each of the multiple combinations for which parent-child relationships have been set by the parent-child relationship setting unit 113. The user operates the operation unit 13 to input an operation to apply the settings from the operation screen of the parent-child relationship information 122. In response to this operation, the setting application unit 114 recursively applies the settings defined in the setting list of the parent-child relationship information 122 to the group of components for which parent-child relationships have been set.
[0081] Specifically, for each of a plurality of combinations in which a parent-child relationship is established, the setting application unit 114 sets the setting value of the child component to a value obtained by adding an offset to the setting value of the parent component. First, the setting application unit 114 applies the setting value of each setting defined in the setting list to the root component. Second, the setting application unit 114 applies a value obtained by adding a forward offset to the setting value of each setting applied to the root component to a child component having the root component as its parent. Third, the setting application unit 114 applies a value obtained by further adding a forward offset to the setting value of each setting to a child component having the child component to which the setting has been applied as its parent. By repeating this process, the setting application unit 114 recursively applies the setting to each combination of two components in which a parent-child relationship is established.
[0082] 10 specifically shows an example in which settings are applied to multiple parts by the setting application unit 114. In a state in which settings are independently made for parts A to C in which a parent-child relationship is set, as shown in the upper part of Fig. 10, when the setting application unit 114 applies the settings in the setting list shown in Fig. 9, the settings are applied to parts A to C as shown in the lower part of Fig. 10.
[0083] Specifically, the setting application unit 114 sets the fill color of part A, which is the root part, to blue, and sets the Y coordinate of part A to 10. Next, in accordance with the setting that there is no forward offset for the fill color and the forward offset for the Y coordinate is 30, the setting application unit 114 sets the fill color of part B, which is a child of part A, to blue, and sets the Y coordinate of part B to 40, which is the Y coordinate of part A plus 30. Furthermore, the setting application unit 114 sets the fill color of part C, which is a child of part B, to blue, and sets the Y coordinate of part C to 70, which is the Y coordinate of part B plus 30. This makes it possible to change the settings of multiple parts in accordance with a certain rule with fewer steps.
[0084] Next, the flow of the drawing support process executed in the drawing support device 10 will be described with reference to the flowcharts shown in Fig. 11 and Fig. 12. The parent-child relationship information process shown in Fig. 11 and the setting application process shown in Fig. 12 are examples of a drawing support method.
[0085] The parent-child relationship setting process shown in FIG. 11 is started when the user starts up drawing software pre-installed in the drawing support device 10 and displays a plurality of parts on the screen of the display unit 14.
[0086] When the parent-child relationship setting process is started, the control unit 11 functions as the operation receiving unit 111 and receives a selection operation for selecting a plurality of parts to be selected from a plurality of parts displayed on the screen (step S1). Specifically, the control unit 11 receives, as a first selection method, a selection operation for inputting linear trajectories L1, L2 at positions that intersect the plurality of parts to be selected, as shown in Fig. 3, Fig. 4, or Fig. 7. Alternatively, the control unit 11 receives, as a second selection method, a selection operation for inputting rectangular regions R1, R2 at positions that overlap the plurality of parts to be selected, as shown in Fig. 5 or Fig. 6.
[0087] When the control unit 11 receives the selection operation, the control unit 11 functions as the selection order determination unit 112 and determines the selection order of the selected parts (step S2). Specifically, the control unit 11 determines the selection order of the selected parts in the order in which the input linear trajectory crosses them, or based on the start point and aspect ratio of the input rectangular area.
[0088] After determining the selection order of the parts, the control unit 11 determines the selection order of the sides (step S3). Specifically, the control unit 11 determines the selection order of the sides from among the four sides of the rectangle circumscribing each of the parts whose selection order has been determined, in accordance with a predetermined criterion.
[0089] After determining the selection order of the components and edges, the control unit 11 updates the selection order information 121 (step S4). Specifically, the control unit 11 stores the determined selection order of the components and edges in the selection order information 121.
[0090] After updating the selection order information 121, the control unit 11 functions as the parent-child relationship setting unit 113 and sets the parent-child relationships of the parts (step S5). Specifically, for each combination of two parts whose selection order is consecutive as determined in step S2 among the multiple parts selected in step S1, the control unit 11 sets a parent-child relationship in which the part selected earlier in the selection order is the parent part and the part selected later in the selection order is the child part.
[0091] After the parent-child relationship of the parts is set, the control unit 11 sets the parent-child relationship of the sides (step S6). Specifically, for each combination of two parts for which the parent-child relationship has been set, the control unit 11 sets a parent-child relationship in which one side of a rectangle circumscribing the parent part is set as the parent, and one side of a rectangle circumscribing the child part is set as the child.
[0092] After the parent-child relationships of the parts and edges are set, the control unit 11 updates the parent-child relationship information 122 (step S7). Specifically, the control unit 11 updates the parts list, edge list, and information on the root part in the parent-child relationship information 122 based on the set parent-child relationships of the parts and edges.
[0093] After updating the parent-child relationship information 122, the control unit 11 releases the selection order of the parts and edges from the memory (step S8). This completes the parent-child relationship setting process shown in FIG.
[0094] The setting application process shown in Fig. 12 starts when an operation to apply the settings in the setting list to multiple components for which parent-child relationships have been set by the parent-child relationship setting process shown in Fig. 11 is input. In the setting application process shown in Fig. 12, the control unit 11 functions as a setting application unit 114.
[0095] When the setting application process starts, the control unit 11 acquires one setting from the setting list in the parent-child relationship information 122 (step S11). In the example of the parent-child relationship information 122 shown in Fig. 9, the control unit 11 acquires one setting from among the settings such as fill color, Y coordinate, etc. defined in the setting list.
[0096] When one setting is acquired, the control unit 11 applies the setting value of the acquired setting to the root part (step S12). In the example of Fig. 9, when a fill color setting is acquired, the control unit 11 sets the fill color of part A, which is the root part, to the setting value "blue."
[0097] After applying the setting value to the root part, the control unit 11 adds the forward offset defined in the acquired setting to the setting value applied to the root part (step S13).
[0098] When the forward offset is added to the setting value, the control unit 11 applies the setting value after the addition of the forward offset to the next part in the forward direction in the parts list (step S14). In the example of Fig. 9, parts B and C exist in the forward direction of part A, which is the root part. Therefore, the control unit 11 applies the setting value after the addition of the forward offset to part B, which is the next part after the root part.
[0099] Next, the control unit 11 determines whether there are any more components in the forward direction in the parts list (step S15). If there are any more components in the forward direction (step S15; YES), the control unit 11 returns the process to step S13. The control unit 11 then adds a forward offset to the current setting value and applies the added setting value to the next component in the forward direction in the parts list. In this way, the control unit 11 applies the setting value to which the forward offset has been added in order to each component in the forward direction in the parts list.
[0100] On the other hand, if there are no further components in the forward direction (step S15; NO), the control unit 11 determines whether or not any unapplied settings remain in the setting list (step S16). If any unapplied settings remain (step S16; YES), the control unit 11 returns the process to step S11 and acquires one unapplied setting from the setting list. The control unit 11 then executes the processes of steps S12 to S15 and applies the setting values of the acquired setting to each of the multiple components for which a parent-child relationship has been established. In this way, the control unit 11 applies the setting values of each setting included in the setting list to each of the multiple components for which a parent-child relationship has been established.
[0101] If there are no unapplied settings remaining (step S16; NO), the control unit 11 ends the setting application process shown in FIG.
[0102] As described above, the drawing support device 10 according to the first embodiment determines the selection order of multiple parts displayed on the screen based on a selection operation for selecting multiple parts and the positional relationship of the multiple parts, and establishes a parent-child relationship between the multiple parts, with the earlier selected part being the parent part and the later selected part being the child part. Because the selection order is determined based on the positional relationship of the multiple parts on the screen, parent-child relationships can be established between multiple parts through an intuitive and easy operation of inputting a linear trajectory or a rectangular area. As a result, the effort required to set multiple parts can be reduced. In particular, when setting parent-child relationships for at least three parts, multi-level parent-child relationships can be established with a single operation, eliminating the need for the user to repeatedly select each pair of parts and set the parent-child relationship. This significantly reduces the effort required by the user when there are a large number of parts.
[0103] Furthermore, the drawing support device 10 according to the first embodiment applies settings based on the settings of the parent component to the settings of the child components. This allows settings and setting changes to be performed recursively in a batch for multiple components that have a parent-child relationship, thereby reducing the time and effort required for setting multiple components. In particular, this significantly reduces the user's time and effort when there are a large number of components.
[0104] (Embodiment 2) Next, a description will be given of embodiment 2. Descriptions of the same configurations and functions as those of embodiment 1 will be omitted where appropriate.
[0105] The drawing support device 10 according to the second embodiment further sets a parent-child relationship between a group of components for which a parent-child relationship has already been set and another component. In other words, the drawing support device 10 according to the second embodiment can set multiple parent-child relationships.
[0106] 13 shows an example in which parts A and B, which are a group of parts for which a parent-child relationship has already been established by the parent-child relationship setting unit 113, and another part C are displayed on the screen of the display unit 14. On this screen, the user inputs a selection operation to draw a rectangular region R3 that extends from the lower right of part C to the upper left of part A, as an example of a new selection operation to select parts A to C. Note that the new selection operation is not limited to the operation of drawing a rectangular region R3, and may similarly be an operation of drawing a linear trajectory. In this case, in the second embodiment, the group of parts A and B is treated equivalently to a single part, parent-child relationship set part AB.
[0107] Specifically, as shown in the upper part of Figure 13, when the user inputs a new selection operation to select parent-child relationship setting component AB, which is a group of components A and B in which a parent-child relationship is set, and component C, the operation receiving unit 111 receives the new selection operation.
[0108] The selection order determination unit 112 determines the selection order of the parent-child relationship setting component AB and the component C based on the new selection operation received by the operation reception unit 111. In the example of Fig. 13 , the selection order determination unit 112 determines the selection order of the component C, which is closest to the start point of the rectangular region R3, to be first, and the selection order of the parent-child relationship setting component AB to be second.
[0109] The parent-child relationship setting unit 113 sets a new parent-child relationship between parent-child relationship setting component AB and component C based on the selection order determined by the selection order determination unit 112. In the example of Fig. 13, the parent-child relationship setting unit 113 sets a parent-child relationship in which component C is the parent component and parent-child relationship setting component AB is the child component. As a result, a parent-child relationship setting component ABC is generated that has parent-child relationship setting component AB and component C in its component list.
[0110] The parent-child relationship setting unit 113 also sets a parent-child relationship between one side of a rectangle circumscribing the parent-child relationship setting component AB and one side of a rectangle circumscribing the component C. Here, the rectangle circumscribing the parent-child relationship setting component AB corresponds to the smallest rectangle that encompasses the components A and B, as shown by the thick solid line in the lower part of FIG.
[0111] When a parent-child relationship is established in which part C is the parent part and parent-child relationship setting part AB is the child part, the setting application unit 114 applies a setting based on the setting of part C, which is the parent part, to the setting of parent-child relationship setting part AB, which is the child part. Specifically, as in the first embodiment, the setting application unit 114 sets the setting value of parent-child relationship setting part AB to a value obtained by adding a forward offset to the setting value of part C. In this case, the setting application unit 114 sets the parent-child relationship setting part AB by treating it as a single part having a rectangular shape circumscribing the parent-child relationship setting part AB.
[0112] In this way, in the second embodiment, a group of components for which a parent-child relationship has already been set can be treated as a single component, and a parent-child relationship can be further set between the component and another component. As a result, for example, if a parent-child relationship setting component ABC is generated that is higher in level than the parent-child relationship setting component AB in its component list, the parent-child relationship setting component AB can be set from the parent-child relationship setting component ABC.
[0113] Third Embodiment Next, a third embodiment will be described. Descriptions of the same configurations and functions as those of the first and second embodiments will be omitted where appropriate.
[0114] The drawing support device 10 according to the third embodiment changes at least one of a pair of sides for which a parent-child relationship has already been set to another side in the same component in response to a user operation.
[0115] 14 shows an example in which parts A to C, which are a group of parts for which parent-child relationships have been set by parent-child relationship setting unit 113, are displayed on the screen of display unit 14. More specifically, a parent-child relationship of an edge is set between the bottom edge of part A and the top edge of part B, and a parent-child relationship of an edge is set between the bottom edge of part B and the top edge of part C.
[0116] On this screen, the operation receiving unit 111 receives a change operation for changing one of a pair of edges for which a parent-child relationship has been set by the parent-child relationship setting unit 113 to another edge in the same component. Specifically, the user can use a drag operation to move one end of an arrow, which is an example of a symbol indicating a parent-child relationship and is displayed on the screen, to another edge in the same component. This allows the user to input a change operation for changing one of the pair of edges for which a parent-child relationship has been set to another edge.
[0117] When the operation receiving unit 111 receives such a change operation, the parent-child relationship setting unit 113 changes the parent-child relationship set between a pair of sides to a parent-child relationship between another side in the same part and the other side of the pair of sides.
[0118] For example, as shown by the dashed line in the upper part of Fig. 14 , the user moves one end of the arrow connecting the bottom edge of part A and the top edge of part B from the bottom edge of part A, which is one of the pair of edges, to the right edge, which is the other edge of the same part A. In this case, the parent-child relationship setting unit 113 changes the parent-child relationship set for the pair of edges between parts A and B to a parent-child relationship between the right edge of part A and the top edge of part B, which is the other edge of the pair of edges, as shown in the lower part of Fig. 14 .
[0119] In this way, in the third embodiment, a parent-child relationship of an edge already set between a parent component and a child component can be changed to a parent-child relationship between the same or a different edge of the parent component and the same or a different edge of the child component. This allows the parent-child relationship of an edge to be changed with a simple operation, without having to reset the parent-child relationship.
[0120] (Fourth Embodiment) Next, a fourth embodiment will be described. Descriptions of the same configurations and functions as those of the first to third embodiments will be omitted where appropriate.
[0121] The drawing support device 10 according to the fourth embodiment changes at least one of a pair of parts, for which a parent-child relationship has already been established, to another part in response to a user operation.
[0122] 15 shows an example in which parts A and B, which are a group of parts for which a parent-child relationship has already been set by the parent-child relationship setting unit 113, and a part C for which a parent-child relationship has not yet been set, are displayed on the screen of the display unit 14. More specifically, a parent-child relationship of an edge is set between the bottom edge of part A and the top edge of part B.
[0123] On this screen, the operation receiving unit 111 receives a change operation for changing one of a pair of parts for which a parent-child relationship has been set by the parent-child relationship setting unit 113 to a part other than the pair of parts displayed on the screen. Specifically, the user can use a drag operation to move one end of an arrow, which is an example of a symbol indicating a parent-child relationship displayed on the screen, to another part for which a parent-child relationship has not yet been set. This allows the user to input a change operation for changing one of the pair of parts for which a parent-child relationship has already been set to a different part.
[0124] When the operation receiving unit 111 receives such a change operation, the parent-child relationship setting unit 113 changes the parent-child relationship set between a pair of parts for which a parent-child relationship has already been set to a parent-child relationship between the other part of the pair of parts and another part for which a parent-child relationship has not yet been set.
[0125] For example, as shown by the dashed line in the upper part of Fig. 15 , the user moves one end of an arrow connecting a pair of parts A and B, for which a parent-child relationship has already been established, from the top side of part B, one of the pair of parts, to the left side of part C, for which a parent-child relationship has not yet been established. In this case, the parent-child relationship setting unit 113 changes the parent-child relationship established between parts A and B to a parent-child relationship in which part A, the other of the pair of parts, is the parent part and part C is the child part, as shown in the lower part of Fig. 15 . Then, the parent-child relationship setting unit 113 changes the parent-child relationship of the side established between parts A and B to a parent-child relationship in which the bottom side of part A is the parent and the left side of part C is the child.
[0126] In addition to changing the parent-child relationship in this way, the parent-child relationship setting unit 113 further sets a parent-child relationship between the other component and one of the pair of components. Specifically, as shown in the lower part of Fig. 15 , the parent-child relationship setting unit 113 sets a parent-child relationship in which component C, which is the other component, is the parent component and component B, which is one of the pair of components, is the child component. Then, the parent-child relationship setting unit 113 sets a parent-child relationship in which the right side of component C is the parent and the bottom side of component B is the child.
[0127] Here, since the child in the parent-child relationship of the side between parts A and C is the left side of part C, the parent-child relationship setting unit 113 sets the parent in the parent-child relationship of the side between parts C and B to the opposite side, the right side of part C. However, this is merely an example, and the side that becomes the parent in the parent-child relationship of the side between parts C and B may be set based on any criteria.
[0128] In this way, in the fourth embodiment, it is possible to change the parent or child part of a pair of parts for which a parent-child relationship has already been set, thereby allowing the parent-child relationship of parts to be changed with a simple operation, without having to redo the parent-child relationship setting.
[0129] (Embodiment 5) Next, a description will be given of embodiment 5. Descriptions of the same configurations and functions as those of embodiments 1 to 4 will be omitted where appropriate.
[0130] The drawing support device 10 according to embodiment 5 can reselect the constituent parts of a group of parts for which a parent-child relationship has been set by the parent-child relationship setting unit 113 after the setting application unit 114 has applied the setting to the group of parts.
[0131] 16 shows an example in which parts A to C, which are a group of parts for which parent-child relationships have been set by parent-child relationship setting unit 113, and part D, for which a parent-child relationship has not yet been set, are displayed on the screen of display unit 14. More specifically, setting application unit 114 has set the fill color of part A, which is the root part, to (0, 0, 0) and the forward offset to (64, 0, 0) for parts A to C.
[0132] On this screen, the user can input a reselection operation to reselect the constituent parts of the group of parts A to C. This allows the user to change the constituent parts of the group of parts to which a parent-child relationship has already been set and to which the setting has been applied, or the selection order of those parts.
[0133] As an example, the user selects "Reselect Part" - "Select Rectangle" from the operation screen for parent-child relationship setting parts A to C. Then, as shown in the upper part of FIG. 16 , the user inputs a reselection operation to reselect parts A to D as components of the part group of parts A to C. For example, the user inputs a selection operation to draw a rectangular region R4 that extends from the lower right of part D to the upper left of part A. Note that the reselection operation is not limited to the operation of drawing a rectangular region R4, and the same applies to the operation of drawing a linear trajectory.
[0134] When the user inputs a reselection operation to select parts A to D, the operation receiving unit 111 receives the reselection operation. The selection order determination unit 112 determines the selection order of parts A to D based on the reselection operation received by the operation receiving unit 111. In the example of Fig. 16, the selection order determination unit 112 determines the selection order as follows: part D, part C, part B, and part A, in order of proximity to the start point of rectangular region R4.
[0135] Based on the selection order determined by the selection order determination unit 112, the parent-child relationship setting unit 113 sets parent-child relationships between parts D and C, between parts C and B, and between parts B and A. At this time, the parent-child relationship setting unit 113 sets part D, which is first in the selection order, as the root part. As a result, parent-child relationship-established parts A to D, each having parts A to D in its parts list, are generated.
[0136] The setting application unit 114 reapplies the settings that were applied to the group of parts A to C before the reselection operation to the group of parts A to D after the component parts have been reselected by the reselection operation. Specifically, as shown in the lower part of Figure 16, the setting application unit 114 sets the fill color of part D, which is the root component, to (0, 0, 0). Then, the setting application unit 114 sets the fill colors of parts C, B, and A in accordance with the forward offset setting value (64, 0, 0).
[0137] In this way, the drawing support device 10 according to the fifth embodiment accepts the reselection of a component part of a component group for which a parent-child relationship has already been set, and reapplies the same settings as before the reselection operation to the component group after the component part has been reselected by the reselection operation. This eliminates the need for the user to re-input settings such as setting values and offsets, and allows the user to reselect the components and edges for which a parent-child relationship is to be set with a simple operation.
[0138] Sixth Embodiment Next, a sixth embodiment will be described. Descriptions of the same configurations and functions as those of the first to fifth embodiments will be omitted where appropriate.
[0139] The drawing support device 10 according to the sixth embodiment reverses the parent-child relationships of a plurality of components that have been set with parent-child relationships, either partway through the parent-child relationships or entirely.
[0140] 17 shows an example in which parts A to C, which are a group of parts for which parent-child relationships have been set by parent-child relationship setting unit 113, are displayed on the screen of display unit 14. More specifically, a parent-child relationship of an edge is set between the bottom edge of part A and the top edge of part B, and a parent-child relationship of an edge is set between the bottom edge of part B and the top edge of part C.
[0141] On this screen, the operation receiving unit 111 receives a reversal operation for reversing the parent-child relationship in at least one of the plurality of combinations for which the parent-child relationship has been set by the parent-child relationship setting unit 113 .
[0142] A user can reverse the start and end points of an arrow, which is an example of a symbol indicating a parent-child relationship, displayed on the screen by using a drag operation. For example, the user can reverse an arrow extending from part A to part B, changing it to an arrow extending from part B to part A. Alternatively, the user can open the operation screen for the parent-child relationship setting part ABC and change the root part of the parent-child relationship setting part ABC from part A to part B, thereby reversing the parent-child relationship in the combination of part A and part B. In this way, the user can input a reversal operation to reverse the parent-child relationship in at least one combination for which a parent-child relationship has already been set. In more detail, since the reversal of a parent-child relationship is performed by changing the root part, as described below, at least one combination for which the parent-child relationship is to be reversed must include a root part.
[0143] In response to a user operation, the parent-child relationship setting unit 113 reverses the parent-child relationship in at least one of the multiple combinations for which a parent-child relationship has been set. For example, when a reversal operation is received to reverse the parent-child relationship in a combination of part A, which is a parent part and a root part, and part B, which is a child part, the parent-child relationship setting unit 113 changes the parent-child relationship in the combination of part A and part B to a parent-child relationship in which part B is a parent part and a root part, and part A is a child part, as shown in the lower part of FIG.
[0144] When the parent-child relationship setting unit 113 changes the parent-child relationship, it updates the parent-child relationship information 122. Fig. 18 shows an example of parent-child relationship information 122 when the parent-child relationship between parts A and B is reversed. In the example of Fig. 18, the parts list remains unchanged from the original selection order of parts A, B, and C, whereas the root part has been changed to part B due to the reversal of the parent-child relationship between parts A and B.
[0145] Furthermore, the parent-child relationship information 122 holds information on backward offsets in addition to forward offsets in the setting list. Here, the backward offset is a second offset prepared separately from the forward offset, which is the first offset, and is used between components whose parent-child relationships are reversed.
[0146] As an example, as shown in Fig. 18, the backward offset is set to a value obtained by multiplying the value of the forward offset by -1. However, the backward offset is not limited to this, and any value may be set independently of the forward offset.
[0147] More specifically, the forward offset is applied to a child part that is located below the parent part in the parts list, i.e., a child part that comes after the parent part in the selection order determined by the selection order determination unit 112. In contrast, the backward offset is applied to a child part that is located above the parent part in the parts list, i.e., a child part that comes before the parent part in the selection order determined by the selection order determination unit 112.
[0148] Based on the parent-child relationship information 122 including such a backward offset, the setting application unit 114 applies settings based on the settings of the parent component to the settings of the child component for each of the multiple combinations for which the parent-child relationship has been set by the parent-child relationship setting unit 113.
[0149] Specifically, the setting application unit 114 sets the setting value of the child component to a value obtained by adding a forward offset to the setting value of the parent component for combinations other than at least one combination in which the parent-child relationship has been reversed by the reversal operation, among multiple combinations in which a parent-child relationship has been set. In other words, the setting application unit 114 applies the setting based on the forward offset to at least one combination in which the parent-child relationship has not been reversed, as in the first embodiment.
[0150] In response to this, the setting application unit 114 sets the setting value of the child component to a value obtained by adding a reverse offset to the setting value of the parent component for at least one combination of multiple combinations for which a parent-child relationship has been set, where the parent-child relationship has been reversed by a reversal operation.
[0151] The flow of the setting application process executed by the setting application unit 114 will be described in more detail with reference to FIG.
[0152] The setting application process shown in Fig. 19 starts when an operation to apply the settings in the setting list to multiple components for which parent-child relationships have been set by the parent-child relationship setting process shown in Fig. 11 is input. In the setting application process shown in Fig. 19, the control unit 11 functions as a setting application unit 114.
[0153] When the setting application process is started, the control unit 11 executes the processes of steps S11 to S15 described with reference to Fig. 12 in the first embodiment. As a result, the control unit 11 executes the process of applying the setting based on the forward offset to the setting acquired from the setting list.
[0154] After step S15, the control unit 11 returns the set value to which the forward offset has been added to the initial value, which is the value set in the root part in step S12 (step S21).
[0155] After resetting the setting value to the initial value, the control unit 11 adds the backward offset defined in the acquired setting to the setting value applied to the root part (step S22).
[0156] After adding the backward offset to the set value, the control unit 11 applies the set value after the backward offset has been added to the next part in the backward direction in the parts list (step S23). In the example of Fig. 18, part A exists in the backward direction of part B, which is the root part. Therefore, the control unit 11 applies the set value after the backward offset has been added to part A, which is the next part after the root part.
[0157] Next, the control unit 11 determines whether there are any more parts in the reverse direction in the parts list (step S24). If there are any more parts in the reverse direction (step S24; YES), the control unit 11 returns the process to step S22. The control unit 11 then adds the reverse offset to the current setting value and applies the added setting value to the next part in the reverse direction in the parts list. In this way, the control unit 11 applies the setting value to which the reverse offset has been added in order to each part in the reverse direction in the parts list.
[0158] On the other hand, if there are no more components in the reverse direction (step S24; NO), the control unit 11 determines whether or not any unapplied settings remain in the setting list (step S25). If any unapplied settings remain (step S25; YES), the control unit 11 returns the process to step S11 and acquires one unapplied setting from the setting list. The control unit 11 then executes the processes of steps S12 to S15 and S21 to S24, and applies the setting values of the acquired setting to each of the multiple components for which a parent-child relationship has been established. In this way, the control unit 11 applies the setting values of each setting included in the setting list to each of the multiple components for which a parent-child relationship has been established.
[0159] If there are no unapplied settings remaining (step S25; NO), the control unit 11 ends the setting application process shown in FIG.
[0160] In this way, in the sixth embodiment, for multiple parts for which parent-child relationships have been set, the parent-child relationships can be reversed partway through or entirely. This allows the user to change the root part that serves as the basis for the settings with a simple operation, without having to redo the parent-child relationship settings. Furthermore, different offset values can be set for the forward and reverse directions, which increases the flexibility of the settings.
[0161] (Modifications) Although the embodiments have been described above, it is possible to combine the embodiments, or to modify or omit the embodiments as appropriate.
[0162] For example, in the above embodiment, the parent-child relationship setting unit 113 sets parent-child relationships between edges in addition to setting parent-child relationships between components. However, the parent-child relationship setting unit 113 does not have to set parent-child relationships between edges. Even without setting parent-child relationships between edges, by setting parent-child relationships between components, settings based on the settings of the parent component can be applied to the settings of the child component, thereby achieving the effect of efficiently editing the settings of multiple components.
[0163] In the above embodiment, the linear trajectory L1 shown in FIG. 3 and the linear trajectory L2 shown in FIG. 4 have their starting and ending points located outside the components and completely cross the first to last components. However, the linear trajectory input as a selection operation may start midway through the first component and end midway through the last component. In other words, the components crossed by the linear trajectory may include not only components completely crossed by the linear trajectory, but also components partially crossed by the linear trajectory. The operation receiving unit 111 may select only components completely crossed by the linear trajectory, or may select all parts that overlap with the linear trajectory, including parts partially crossed by the linear trajectory. In this way, the settings of the components selected by the linear trajectory can be changed as needed.
[0164] In the above embodiment, the rectangular region R1 shown in FIG. 5 and the rectangular region R2 shown in FIG. 6 have their start and end points located outside the components and completely encompass the multiple components to be selected. The operation reception unit 111 may select only the components completely encompassed by the rectangular region and exclude components that only partially overlap with the rectangular region from the selection targets. Alternatively, the operation reception unit 111 may select not only components completely encompassed by the rectangular region, but also components that only partially overlap with the rectangular region. In this way, the settings for components selected by rectangular region can be changed as needed.
[0165] In the above embodiment, the control unit 11 of the drawing support device 10 functions as the operation reception unit 111, the selection order determination unit 112, the parent-child relationship setting unit 113, and the setting application unit 114 by the CPU executing a program stored in the ROM or the storage unit 12. However, the control unit 11 may be dedicated hardware. Dedicated hardware may be, for example, a single circuit, a composite circuit, a programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array), or a combination thereof. When the control unit 11 is dedicated hardware, the functions of each unit may be realized by individual hardware, or the functions of each unit may be realized together by a single piece of hardware.
[0166] In addition, some of the functions of each unit may be realized by dedicated hardware, and other functions may be realized by software or firmware. In this way, the control unit 11 can realize each of the above-mentioned functions by hardware, software, firmware, or a combination of these.
[0167] By applying an operation program that defines the operation of the drawing support device 10 to an existing computer such as a personal computer or information terminal device, the computer can be made to function as the drawing support device 10. Such a program is an example of a drawing support program.
[0168] Furthermore, the method of distribution of such a program is arbitrary, and for example, it may be stored on a computer-readable recording medium such as a CD-ROM (Compact Disk ROM), a DVD (Digital Versatile Disk), an MO (Magneto Optical Disk), or a memory card and distributed, or it may be distributed via a communication network such as the Internet.
[0169] The present disclosure allows various embodiments and modifications without departing from the broad spirit and scope of the present disclosure. Furthermore, the above-described embodiments are intended to illustrate the present disclosure and do not limit the scope of the present disclosure. That is, the scope of the present disclosure is defined by the claims, not the embodiments. Various modifications made within the scope of the claims and the meaning of equivalent disclosures are considered to be within the scope of the present disclosure.
[0170] The present disclosure can be suitably adopted in drawing support technology.
[0171] 10 Drawing support device, 11 Control unit, 12 Storage unit, 13 Operation unit, 14 Display unit, 15 Communication unit, 111 Operation reception unit, 112 Selection order determination unit, 113 Parent-child relationship setting unit, 114 Setting application unit, 121 Selection order information, 122 Parent-child relationship information, L1, L2 Linear trajectory, R1, R2, R3, R4 Rectangular area
Claims
1. A drawing support program which causes a computer to function as: an operation receiving means for receiving a selection operation for selecting a plurality of parts displayed on a screen; a selection order determination means for determining a selection order of the plurality of parts based on the selection operation received by the operation receiving means and the positional relationship of the plurality of parts on the screen; and a parent-child relationship setting means for setting a parent-child relationship for the plurality of parts, with an earlier part in the selection order being a parent part and a later part in the selection order being a child part.
2. The drawing support program of claim 1, wherein the parent-child relationship setting means sets a parent-child relationship for each of a plurality of combinations, each of which is a combination of two of the at least three parts whose selection order determined by the selection order determination means is consecutive, in which the part whose selection order comes earlier is the parent part and the part whose selection order comes later is the child part, when the plurality of parts is at least three parts.
3. The drawing support program according to claim 1 or 2, wherein the parent-child relationship setting means further sets a parent-child relationship between one side of a rectangle circumscribing the earlier part in the selection order and one side of a rectangle circumscribing the later part in the selection order.
4. A drawing support program as claimed in any one of claims 1 to 3, wherein the operation accepting means accepts, as the selection operation, an operation of inputting a linear trajectory at a position on the screen that intersects with the plurality of parts, and the selection order determining means determines the selection order in the order of the plurality of parts, starting with the parts intersected by the linear trajectory.
5. The drawing support program according to claim 4, wherein the parent-child relationship setting means further sets a parent-child relationship between one side of a rectangle circumscribing the earlier part in the selection order that last intersects with the linear locus, and one side of a rectangle circumscribing the later part in the selection order that first intersects with the linear locus.
6. A drawing support program as claimed in any one of claims 1 to 5, wherein the operation accepting means accepts, as the selection operation, an operation of inputting a rectangular area on the screen at a position overlapping with the plurality of parts, and the selection order determining means determines the selection order in order from among the plurality of parts, starting with the part closest to the start point of the rectangular area.
7. The drawing support program according to claim 6, wherein the parent-child relationship setting means further sets a parent-child relationship for a combination of any one side of a rectangle circumscribing the part selected earlier in the selection order and any one side of a rectangle circumscribing the part selected later in the selection order, the combination having the shortest distance between the sides.
8. A drawing support program as described in any one of claims 1 to 7, wherein the operation receiving means receives a new selection operation for selecting a group of parts for which a parent-child relationship has been set by the parent-child relationship setting means and a part other than the group of parts displayed on the screen, the selection order determination means determines a selection order of the group of parts and the other part based on the new selection operation received by the operation receiving means, and the parent-child relationship setting means sets a new parent-child relationship between the group of parts and the other part based on the selection order determined by the selection order determination means.
9. A drawing support program as described in claim 3, 5 or 7, wherein the operation receiving means receives a change operation to change one side of a pair of sides for which a parent-child relationship has been set by the parent-child relationship setting means to another side in the same part, and when the operation receiving means receives the change operation, the parent-child relationship set between the pair of sides is changed to a parent-child relationship between the other side and the other side of the pair of sides.
10. A drawing support program as described in any one of claims 1 to 9, wherein the operation receiving means receives a change operation to change one of a pair of parts for which a parent-child relationship has been set by the parent-child relationship setting means to a part other than the pair of parts displayed on the screen, and when the operation receiving means receives the change operation, the parent-child relationship setting means changes the parent-child relationship set between the pair of parts to a parent-child relationship between the other of the pair of parts and the other part.
11. The drawing support program according to claim 10, wherein the parent-child relationship setting means sets a parent-child relationship between the other part and one of the pair of parts when the operation receiving means receives the change operation.
12. A drawing support program as claimed in any one of claims 1 to 11, further causing the computer to function as a setting application means for applying settings based on the settings of the parent part to the settings of the child part.
13. The drawing support program according to claim 12, wherein said setting application means sets the setting value of said child component to a value obtained by adding an offset to the setting value of said parent component.
14. A drawing support program as described in claim 12 or 13, wherein the operation receiving means receives a reselection operation for reselecting a component part of a group of parts after the setting application means has applied settings to the group of parts for which a parent-child relationship has been set by the parent-child relationship setting means, and the setting application means reapplies the settings to the group of parts after the component part has been reselected by the reselection operation.
15. A drawing support program as described in any one of claims 12 to 14, wherein the parent-child relationship setting means, when the plurality of parts is at least three parts, sets a parent-child relationship for each of a plurality of combinations, each of which is a combination of two parts of the at least three parts whose selection order determined by the selection order determination means is consecutive, in which the part having an earlier selection order is a parent part and the part having a later selection order is a child part, in response to a user's operation, the parent-child relationship setting means reverses the parent-child relationship in at least one of the plurality of combinations for which the parent-child relationship has been set, in response to a user's operation.
16. The drawing support program according to claim 15, wherein the setting application means sets the setting value of the child part for combinations other than the at least one combination among the multiple combinations to a value obtained by adding a first offset to the setting value of the parent part, and sets the setting value of the child part for the at least one combination among the multiple combinations to a value obtained by adding a second offset to the setting value of the parent part.
17. A drawing support device comprising: an operation receiving means for receiving a selection operation for selecting a plurality of parts displayed on a screen; a selection order determination means for determining a selection order of the plurality of parts based on the selection operation received by the operation receiving means and a positional relationship of the plurality of parts on the screen; and a parent-child relationship setting means for setting a parent-child relationship for the plurality of parts, in which a part that comes earlier in the selection order is a parent part and a part that comes later in the selection order is a child part.
18. A drawing support method comprising: determining a selection order of multiple parts displayed on a screen based on a selection operation for selecting the multiple parts and the positional relationship of the multiple parts on the screen; and setting a parent-child relationship for the multiple parts in which the part selected earlier in the selection order is a parent part and the part selected later in the selection order is a child part.
Citation Information
Patent Citations
Screen forming device, screen forming program and storage medium recording the same
JP2006099573A
Touch operation compatible program code conversion method and program
WO2015005058A1
