Mapping objects in a room

  • Thread starter Thread starter Atul Thombre
  • Start date Start date
A

Atul Thombre

Hello,

I am not sure if this is the right forum for this question or not. If not,
please ignore.


I am developing an application in C# that requires me to display a map of
the objects present in a room with proper locations [X, Y coordinates]. The
objects will be tiny images [either jpg or gif]. Is there a mapping software
component that will help me do this? I am new to C# and not familiar with
the graphics routines. Also, Internet search showed zillions of results for
GPS mapping, which is not useful.

Any help is appreciated, thanks.

Atul.
 
Hi,

Atul Thombre said:
Hello,

I am not sure if this is the right forum for this question or not. If not,
please ignore.


I am developing an application in C# that requires me to display a map of
the objects present in a room with proper locations [X, Y coordinates].
The objects will be tiny images [either jpg or gif]. Is there a mapping
software component that will help me do this? I am new to C# and not
familiar with the graphics routines. Also, Internet search showed zillions
of results for GPS mapping, which is not useful.

Not that I know of.
You better google a little more, with something more especific.
 
Autodesk has a mapping application built from AutoCAD which they have
released as open-source. Autodesk is also now supporting .NET in most of
their products like Revit (where the big money is headed). While Autodesk is
an evil vendor there is still something to be said for the APIs in their
products which support .NET.

// for example
news://autodesk.mapguide.developer
news://autodesk.revit.api
news://autodesk.autocad.customization.dotnet
 
This may not be the "best" way but here is "a" way to accomplish this.
I don't spend my days writing GDI+ drawing controls...

The link below is to a GDI+ control that draws hierarchies in a
couple of different formats. The jist is that you write some
set of methods that determines where you should draw the image
and store the x, y, height, and width of the image and where
it should be drawn on the class properties you create for them.
Keep a data class object in a collection for each item you wish
to draw.

Then, you run the collection of things to draw through a drawing
engine. Afterwards, if you retain the data that was used to draw the map,
you can iterate through the collection of data classes, check the
mouse x, y, height, and width boundries when the user clicks
the image.

If you need to move the item, you simply recreate the data collection
with new images and locations. Then, redraw the image.

http://www.eggheadcafe.com/articles/draw_tree_with_gdi_plus.asp
 
Back
Top