Click here to Skip to main content
15,860,943 members
Articles / Programming Languages / C#
Article

Mapview

Rate me:
Please Sign up or sign in to vote.
2.28/5 (19 votes)
6 Jun 20042 min read 79.4K   3K   50   6
Application is intended to create a 2D canvas from interactive, creating the vector graphics

Image 1

Introduction

Graphic applications which make the backbone for CAD/CAM/GIS applications need to have a canvas or view on which all the graphic elements are rendered. Any complex model in CAD/CAM/GIS applications is composed of basic graphic elements such as lines, arc, circle, ellipse, rectangles, polylines, polygons…etc.

The complex models are easily created by performing the simple operations on the graphic elements, and these basic editing features include copy, cut, paste, move, delete, scale, mirror.

Mapview is an attempt to create a C# component that can be used to create and edit the graphic elements interactively.

Background

Mapview control is a C# component, which allows the user to create various types of vector graphical elements and which will be created and edited interactively.

To avoid this inconvenience, this implementation is logically divided to geometrical model and view. When you're editing objects inside the Mapview, geometrical model (presented in “real world” coordinates) is changing and the view (client coordinates) stays the same, and when you rescale and scroll the Mapview, the geometrical model stays unchanged.

Mapview model could have several views showing different parts of the model. All views are updated automatically when the model changes, it means that if you moving or editing shape in one of the views you will see changes in others.

Using Mapview

The sample code is having the detailed description about using the application. This is initial version of the control and some of the functionality is yet to be implemented.

Using the code

The sample code is having the detailed description about using the application. This is initial version of the control and some of the functionality is yet to be implemented.

Enthusiastic users are encouraged to take the code implement/modify/fine tune the code wherever required.

Points of Interest

I would like to make an efficient FREE CAD/GIS graphic engine in .NET using C#. So, that the users need not depend on the proprietary software to make the applications. This is the first step in that direction.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Praisethanks for the ideas Pin
Southmountain31-May-22 8:14
Southmountain31-May-22 8:14 
GeneralMy vote of 1 Pin
Member 40308897-May-11 7:16
Member 40308897-May-11 7:16 
QuestionCan we use this in web appln? Pin
rasagna15-Jul-04 20:28
rasagna15-Jul-04 20:28 
GeneralBuild Errors Pin
aprogram7-Jun-04 21:11
aprogram7-Jun-04 21:11 
GeneralRe: Build Errors Pin
pxp8-Jun-04 0:13
pxp8-Jun-04 0:13 
For that answer, you might want to check out the postings in this tutorial [99% same]:

http://www.codeproject.com/useritems/Mapview.asp

It's in the Pan where the problem is,... needs int's where float's are givven.
GeneralRe: Build Errors Pin
skboey12-Jul-04 23:57
skboey12-Jul-04 23:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.