Script-driven hierarchical graph construction method
A construction method and a layered technology, applied in the direction of drawing from basic elements and filling planes with attributes, can solve the problems of map graphic symbols that are difficult to transplant and flexibly apply, difficult to integrate and apply, and do not have dynamic interactivity, etc., to achieve enhanced Rendering ability and information expression ability, good interactivity, maintenance and expansion of efficient and low-cost effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] This embodiment provides a script-driven hierarchical graph construction method. The core steps of the railway graph based on this method are as follows: figure 1 shown. During specific implementation, the following steps are included:
[0044] A. Write the Lua script code file that is used to realize graphic construction, present embodiment selects railway line figure, explains the typical process based on technical scheme construction figure of the present invention, and railway line figure is as follows image 3 Shown:
[0045] 1. Define the geometric storage objects needed to realize the graphics construction, and define them as global variables. There are three storage objects needed to realize the representation of the railway line graph, namely, the parallel lines of the left and right tracks of the railway and the equal-spaced parallel horizontal lines representing the railway sleepers.
[0046] 2. Set the color of the output graphics, the railway track line ...
Embodiment 2
[0075] This embodiment provides a script-driven hierarchical graph construction method, the implementation process of the second, third and fourth parts in the construction method is the same for each graph, but the first part is written to realize the graph The part of the constructed Lua script code is different for each graph. This article takes the graphs describing the "disaster-affected area distribution range" and "population concentration area range" as examples, such as Figure 4 As shown, further illustrate the Lua script file code implementation method and flow for implementing graphic construction.
Embodiment approach
[0076] Disaster-affected area distribution graph, which mainly includes three objects: an external polygon table, polygon center text label, and polygon line filling. The implementation method of the Lua script file software used to construct the graph is as follows:
[0077] (1) Define graphic output elements and attributes:
[0078] outLine=PolyLine:new(); outLine:setFillType(ESF_Bias_L); / / Set line fill
[0079] outLine2=PolyLine:new(true); / / Output two line objects representing the polyline area and the inner fill line
[0080] minControlNum=2; maxControlNum=2000; / / minimum input 2 points, maximum 2000 points
[0081] sizeHandle=controlHandle:new(); sizeParam=scaleDouble:new(0.1, "the size of the symbol text"); define the control point and scale value used to control the text size
[0082] text1=innerText:new(0); text1:setText("disaster"); / / Define the output text object and content
[0083] function update(lstPoint)
[0084] ... / / Initialize data processing
[0085] inser...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com
