Click here to Skip to main content
Licence 
First Posted 2 Jun 2004
Views 69,589
Downloads 1,053
Bookmarked 21 times

Mapview Implementation in C#

By | 7 Jun 2004 | Article
Mapview Implementation in C#

Introduction

Graphic applications which make the backbone for CAD/CAM/GIS applications need to have a canvas or view control 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 operation 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.

The initial upload is having a blue-print of the functionality of the program and most of the features are in there basic and advanced implementation state.

Creating the graphic elements is in advanced state of implementation. Spline/Curve/Closed Curve is yet to be implemented.

Different ways of selecting the already existing objects is implemented.

Moving/Deleting the selected elements is implemented.

Copy/Cut/Past is yet to be implemented.

View commands like Zoom In, Zoom Out, Zoom Window, Zoom Extents and Pan are to fine tuned and fix the bugs.

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's 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

About the Author

Kalyan Kumar



United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 1 PinmemberWertugo55522:23 25 Aug '09  
GeneralUseless PinmemberJSMeloche11:28 12 Sep '08  
GeneralPlease!Hellp! Pinmemberpl_vlad5:24 17 Feb '07  
GeneralBe nice if it compiled Pinmembermail8659520:28 5 Dec '06  
QuestionMore Background on GDI+ and graphics design Pinmembermaxnetpromo22:20 7 Oct '05  
QuestionWhat does swap? PinmemberRoyaeh kohestan2:09 22 Jun '04  
AnswerRe: What does swap? PinmemberKalyan Kumar19:41 8 Jul '04  
GeneralWorking version request Pinmemberpxp15:09 7 Jun '04  
GeneralRe: Working version request Pinmemberpxp15:25 7 Jun '04  
GeneralCrap-tastic PinmemberMichael.Fischer7:13 3 Jun '04  
GeneralRe: Crap-tastic PinmemberColin Angus Mackay14:15 4 Jun '04  
GeneralRe: Crap-tastic Pinmemberjaxterama18:02 24 Aug '04  
GeneralImage SRC Incorrect PinmemberCraig Eddy1:22 3 Jun '04  

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

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

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 8 Jun 2004
Article Copyright 2004 by Kalyan Kumar
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid