CN104282043A - Three-dimensional A-display control - Google Patents
Three-dimensional A-display control Download PDFInfo
- Publication number
- CN104282043A CN104282043A CN201310283890.7A CN201310283890A CN104282043A CN 104282043 A CN104282043 A CN 104282043A CN 201310283890 A CN201310283890 A CN 201310283890A CN 104282043 A CN104282043 A CN 104282043A
- Authority
- CN
- China
- Prior art keywords
- orientation
- distance
- amplitude
- dimensional
- curve
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 239000011159 matrix material Substances 0.000 claims description 3
- 238000013507 mapping Methods 0.000 claims description 2
- FNMKZDDKPDBYJM-UHFFFAOYSA-N 3-(1,3-benzodioxol-5-yl)-7-(3-methylbut-2-enoxy)chromen-4-one Chemical compound C1=C2OCOC2=CC(C2=COC=3C(C2=O)=CC=C(C=3)OCC=C(C)C)=C1 FNMKZDDKPDBYJM-UHFFFAOYSA-N 0.000 claims 1
- 230000000875 corresponding effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 4
- 238000005070 sampling Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The invention relates to a drawing control, in particular to a three-dimensional A-display control and belongs to the field of graphs and images. According to the three-dimensional A-display control, images can be drawn in a three-dimensional space according to input of a user. The user can select multiple modes to carry out input of data, and multiple drawing modes are provided for selection of the user. The user can obtain the corresponding effect image after inputting data and selecting a display mode. The implementation mode of the three-dimensional A-display control is quite simple and provided in a dynamic link library mode, some function interfaces are provided, and a user can directly call functions to achieve three-dimensional display after using the dynamic link library.
Description
Technical field
This technology belongs to graph image field, and three-dimensional A is aobvious is a mapping control, can according to the drafting in three dimensions of user's input.
Background technology
As everyone knows, it is very loaded down with trivial details for directly utilizing opengl or D3D to draw in space, and shows control by three-dimensional A and foolproofly can draw out coordinate system and three-dimensional curve (curved surface) figure.
User can only look over from certain direction when observing three-dimensional scenic, so whole scene can not be seen completely clearly, show control user by three-dimensional A arbitrarily to rotate or amplify, reduce whole scene, can also drag picture position, such user just can the whole scene of omnibearing understanding.Simultaneously user rotate or convergent-divergent time smooth, do not glimmer.
User may need various ways input data and draw, and three-dimensional A shows control and provides three kinds of method for drafting: can upgrade whole picture by all data messages of disposable input (distance array, orientation array, amplitude array); Or each input single-point information (distance, orientation, amplitude), picture increases display or upgrades this point; Or the information (orientation, distance array, amplitude array) in the single orientation of each input, increases or upgrades the curve in this orientation of display.
Summary of the invention
The data that the present invention can be inputted by user are drawn quickly and easily in three dimensions, and can arbitrarily rotate, convergent-divergent view.
User only need by one group of matrix value input, and three-dimensional A shows control just according to distance X-orientation Z-amplitude Y, can draw out coordinate system and three-dimensional curve (curved surface) figure (being similar to the mesh function in matlab).
Under the whole image mode of renewal, user can provide data with the form of three one-dimension array, represent distance respectively, orientation and amplitude information.If distance number of sampling points is M, orientation number of sampling points is N, then the size of three arrays is identical is M*N, and the 1st element of each array, represents the distance of graphical pointv, orientation, amplitude respectively.
Under renewal one-site model, the data of user's input are distance, orientation, amplitude; Under renewal wall scroll orientation curve model, the pick of input number is orientation, and the data bit distance one-dimension array of user's input, amplitude one-dimension array, implication is the same.
Three-dimensional A shows control and provides three kinds of drafting modes, is respectively point, line, surface, both can be depicted as the curved surface of continuously smooth; May also be the display (though each orientation being the continuous curve of amplitude distance change) of many curves on azimuth axis; Also point diagram can be shown as.And three-dimensional A shows control also can provide seven colored renderings, generate corresponding color according to coordinate.
Accompanying drawing explanation
Figure mono-represents that three-dimensional A shows face schematic diagram.
Figure bis-represents that three-dimensional A shows line schematic diagram.
Figure tri-represents three-dimensional A aobvious some schematic diagram.
Embodiment
The embodiment that three-dimensional A shows control is very simple, and it provides in dynamic link library mode, and provides some function interfaces, user after containing this dynamic link library, direct call function.Below in conjunction with accompanying drawing and embodiment, the present invention will be further described.
First embodiment
Effect please refer to Fig. 1, and Fig. 1 depicts the drafting design sketch that the first example of the present invention is implemented.Implementation step is as follows:
1. select data.
2. select drawing mode to be curved surface pattern.
3. set coordinate system numerical value.
4. call corresponding API.
Three-dimensional A shows control and adopts D3D and C Plus Plus to write.Draw curved surface in first example and have employed Bezier curved fashion.Bezier curved fashion curve surface definition:
Wherein P
, jkspecify (m+1) × the position at (n+1) individual reference mark.
it is Bemstein basis function.Point range P is connected successively with line segment
ij(0,1,2 ... .., n, j=0,1,2 ..., m), adjacent 2 space lattices formed, are referred to as feature grid.The matrix representations of Bezier curved surface is:
In general practical application, n, m are not more than 4;
Four angle points of Bezier curved surface features grid are just in time four angle points of Bezier curved surface, i.e. P (0,0)=P
00, P (1,0)=P
m0, P (0,1)=P
0n, family (1,1)=P
mn.Bezier curved surface features grid outermost one encloses four edges circle of summit definition Bezier curved surface.Transboundary the cutting of Bezier surface boundary vows that only arrange summit with the summit and adjacent on this border of definition relevant.
Program is exactly by Bezier curved surface, draws curved surface according to the data of user's input.
Second embodiment
Design sketch is with reference to Fig. 2, and implementation step is similar to example 1, and mainly going is not exactly trade-off curve pattern in second step model selection.Three-dimensional A shows control and carrys out curve plotting by Bezier curve.Bezier curve definitions is as follows:
The position vector P of given space n+1 point
i(i=0,1,2 ...., n), then on Bezier parametric line, the interpolation formula of each point coordinate is:
Wherein, P
1form the characteristic polygon of this Bezier curve, B
i,nt () is n Bezier basis function:
Three-dimensional A shows control and carries out interpolation according to the formula of Bezier curve, formation curve.
3rd embodiment
Design sketch is with reference to Fig. 3, and implementation step is similar to example 1, and mainly going is not exactly selected element pattern in second step model selection.The drafting of dot pattern mid point is drawn by the function of graphical pointv in D3D according to the position of the point of user's input.
Claims (8)
1. three-dimensional A shows control is a kind of mapping control, the data and curves drawn (curved surface) with distance, orientation, signal amplitude for coordinate.
2. can by one group of matrix value according to the control described in right 1, according to distance X-orientation Z-amplitude Y, draw out coordinate system and three-dimensional curve (curved surface) figure, and can be amplified picture by mouse roller, reduce, and rotate up and down about dragging control interface by left mouse button, right button can drag picture position.
3. the curve drawn according to the control described in right 1 have employed Bezier curve equation, the curve smoother drawn.
4. the curve drawn according to the control described in right 1 have employed Bezier curved surface formula, can draw the curved surface of smoother.
5. fast according to the ActiveX drafting speed image described in right 1, without Caton phenomenon.
6. it is characterized in that according to the control described in right 1:
1) show curve or curved surface continuous, rotate or convergent-divergent time smooth, do not glimmer;
2) background color and mesh color can be arranged;
3) there are grid and scale, and mark coordinate axis implication (as distance, orientation, amplitude);
4) can adjust the distance, orientation, amplitude axis maximin or scope arrange;
5) distance, orientation, amplitude axis drift angle can be set;
6) can draw or remove image.
7. there are three kinds of drawing practices according to the control described in right 1:
1) whole picture can be upgraded by all data messages of disposable input (distance array, orientation array, amplitude array);
2) each input single-point information (distance, orientation, amplitude), picture increases display or upgrades this point;
3) information (orientation, distance array, amplitude array) in the single orientation of each input, increases or upgrades the curve in this orientation of display;
And can select to draw point, line, surface Three models.
8. be dynamic link library mode according to the presentation mode of the control described in right 1, and provide some interfaces.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310283890.7A CN104282043A (en) | 2013-07-08 | 2013-07-08 | Three-dimensional A-display control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310283890.7A CN104282043A (en) | 2013-07-08 | 2013-07-08 | Three-dimensional A-display control |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104282043A true CN104282043A (en) | 2015-01-14 |
Family
ID=52256891
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310283890.7A Pending CN104282043A (en) | 2013-07-08 | 2013-07-08 | Three-dimensional A-display control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104282043A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106447770A (en) * | 2016-10-14 | 2017-02-22 | 上海语途信息技术有限公司 | Three-dimensional drawing processing method |
CN109358797A (en) * | 2018-12-22 | 2019-02-19 | 武汉兴图新科电子股份有限公司 | A method of two-dimensional mouse zooming and panning shift map |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1804827A (en) * | 2006-01-14 | 2006-07-19 | 中国海洋大学 | Exploration data processing and information managing method for submarine hydrothermal activity |
US20090237411A1 (en) * | 2008-03-21 | 2009-09-24 | Gossweiler Iii Richard C | Lightweight Three-Dimensional Display |
CN102354275A (en) * | 2011-09-29 | 2012-02-15 | 深圳市万兴软件有限公司 | Text input box and data processing method thereof |
-
2013
- 2013-07-08 CN CN201310283890.7A patent/CN104282043A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1804827A (en) * | 2006-01-14 | 2006-07-19 | 中国海洋大学 | Exploration data processing and information managing method for submarine hydrothermal activity |
US20090237411A1 (en) * | 2008-03-21 | 2009-09-24 | Gossweiler Iii Richard C | Lightweight Three-Dimensional Display |
CN102354275A (en) * | 2011-09-29 | 2012-02-15 | 深圳市万兴软件有限公司 | Text input box and data processing method thereof |
Non-Patent Citations (2)
Title |
---|
周俊成: "基于DirectX的雷达可视化仿真系统的设计与实现", 《开发案例》 * |
来远远: "三维控件系统的设计与实现", 《万方学位论文数据库》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106447770A (en) * | 2016-10-14 | 2017-02-22 | 上海语途信息技术有限公司 | Three-dimensional drawing processing method |
CN109358797A (en) * | 2018-12-22 | 2019-02-19 | 武汉兴图新科电子股份有限公司 | A method of two-dimensional mouse zooming and panning shift map |
CN109358797B (en) * | 2018-12-22 | 2021-05-07 | 武汉兴图新科电子股份有限公司 | Method for zooming and translating bitmap of two-dimensional mouse |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Petrasova et al. | Tangible modeling with open source GIS | |
US8917283B2 (en) | Polygon processing techniques in procedural painting algorithms | |
US8325179B2 (en) | Three-dimensional visualization of images in the earth's subsurface | |
US8411107B2 (en) | Adaptive snapping | |
US20130229389A1 (en) | Methods and Apparatus for Simulation of an Erodible Tip in a Natural Media Drawing and/or Painting Simulation | |
CN105760581B (en) | A kind of valley Renovation and planning emulation mode and system based on OSG | |
EP3343517B1 (en) | Selecting points on an electroanatomical map | |
US10438385B2 (en) | Generating ink effects for a digital ink stroke | |
CN105101093A (en) | A Network Topology Visualization Method for Geographic Information | |
CN102455859B (en) | A kind of frequency spectrum data display packing and device | |
CN102509357A (en) | Pencil sketch simulating and drawing system based on brush stroke | |
CN103606191B (en) | A kind of fast modeling method of complex underground structure group | |
US10347011B2 (en) | Ink effects | |
CN113850894B (en) | A Leaflet-based Dynamic Visualization Method for Global Vortex Trajectories | |
CN102147930A (en) | Texture mapping method for three-dimensional curved surface of irregular plant leaf | |
CN103530901B (en) | A kind of dynamic waters method for visualizing and device that mates true three-dimension environment | |
CN104866121A (en) | Drawing system and drawing method for three-dimensional model | |
CN102722338A (en) | Touch screen based three-dimensional human model displaying and interacting method | |
CN105354812A (en) | Method for identifying profile interaction based on multi-Kinect collaboration depth threshold segmentation algorithm | |
TW201518957A (en) | System and method for simulating 3D measurement | |
CN102999321A (en) | Writing brush electronic paintbrush setting device and writing brush electronic paintbrush | |
CN104282043A (en) | Three-dimensional A-display control | |
CN102750733A (en) | Method and system used for building three-dimensional earth and based on multiple textures | |
Hu et al. | Generative Terrain Authoring with Mid-air Hand Sketching in Virtual Reality | |
CN103729878A (en) | Three-dimensional graph implementation method based on WPF and three-dimensional character implementation method based on WPF |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150114 |
|
WD01 | Invention patent application deemed withdrawn after publication |