Image-Map from database for WinForms? [modified]
-
I have 2 projects coming up that require me to use existing map/floorlayout, certain areas must them be identified by the user. Lets say Room1, Room2, etc. Those areas should then be saved and either allow the user to select them (identifying which area was selected) and colour (fill) them in order to show "occupied" for example. (It will be done in WinForms .NET 2.0) Honestly have never done something like this and was wondering what tips and pointers my fellow CPians could give me :confused: Francois
modified on Tuesday, December 04, 2007 1:37:55 AM
-
I have 2 projects coming up that require me to use existing map/floorlayout, certain areas must them be identified by the user. Lets say Room1, Room2, etc. Those areas should then be saved and either allow the user to select them (identifying which area was selected) and colour (fill) them in order to show "occupied" for example. (It will be done in WinForms .NET 2.0) Honestly have never done something like this and was wondering what tips and pointers my fellow CPians could give me :confused: Francois
modified on Tuesday, December 04, 2007 1:37:55 AM
Do one thing Create Two variables for 1) for room no 2) for color Now the user prompt the user to select the room and color that work you can access by four button or chick box When the user select the check boxes now you should generate an event which will take the color and room no as argument that you will handle through the coding the custom color and room.
-
Do one thing Create Two variables for 1) for room no 2) for color Now the user prompt the user to select the room and color that work you can access by four button or chick box When the user select the check boxes now you should generate an event which will take the color and room no as argument that you will handle through the coding the custom color and room.
Sorry maybe I was not clear enough :sigh: These rooms must be visualy defined. For example the client will scan in a floor layout of a building. Then by "drawing" on this scanned image define where "Room1", "Room2" etc are in terms of location and size. Then a user must be able to click on a area and the application must then identify the click; i.e. whether the user clicked in "Room1" or "Room2" on the image. Also it needs to display the image with (for example) "occupied rooms" being shaded, indicating they are unavailable. Hope that helps...? We are talking about images and GIS kinda stuff here ... I think :doh:
-
Sorry maybe I was not clear enough :sigh: These rooms must be visualy defined. For example the client will scan in a floor layout of a building. Then by "drawing" on this scanned image define where "Room1", "Room2" etc are in terms of location and size. Then a user must be able to click on a area and the application must then identify the click; i.e. whether the user clicked in "Room1" or "Room2" on the image. Also it needs to display the image with (for example) "occupied rooms" being shaded, indicating they are unavailable. Hope that helps...? We are talking about images and GIS kinda stuff here ... I think :doh:
You're basically going to have to translate the mouse click location into a position on the map. This means that behind the scenes, you are going to have to translate each room into a set of extents and then see which extents the mouse click is in.
Deja View - the feeling that you've seen this post before.
-
You're basically going to have to translate the mouse click location into a position on the map. This means that behind the scenes, you are going to have to translate each room into a set of extents and then see which extents the mouse click is in.
Deja View - the feeling that you've seen this post before.
yip, kinda like that. i'm hoping someone can help me in the right direction as far as saving these custom defined areas to database as they are not just simple x,y,height,width measurements... it might be a "freehand" shape. also how, once you have established a scale, to calculate areas etc... ***** thought of a better way to explain this ... ever seen these automated terminals at the movies. on the touch screen you select the movie you want to see and then you shows you a schematic of "the cinema", the blue squares will (for example) be the "taken seats" and the white square will represent the "available seats". The user can then click on the seats they want to book. this is effectively what i need to do .. the only addition is that in a cinema the seats are predetermined. My application also need to allow the user to define the number, size and location of the "seats" in a given area/layout. *****