Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 6 of 6

How to handle track of multiple objects at the same time

This is a discussion on How to handle track of multiple objects at the same time within the MapPoint Desktop Discussion forums, part of the Map Forums category; Language: VC++ Using: Mappoint API embedded in my own app. Hi best programmers, I would like to have some advise ...

  1. #1
    VC_Man is offline Member Green Belt
    Join Date
    Nov 2006
    Posts
    93

    How to handle track of multiple objects at the same time

    Language: VC++
    Using: Mappoint API embedded in my own app.

    Hi best programmers,

    I would like to have some advise of you.
    On the map I want to be able to follow several obejcts (in the form of cars or persons) at the same time with their passed points.

    For example I have object A and object B, I can see both A and B simultaneously where they go. I get the positions via a network. I can also click on a previous point to see at wich time they where on that place.

    Now suppose I have let's say about six of those objects, than what is the best way to program it? Should I use threads or is there a way to put all the pushpins of a certain object in some kind of a collection....? Does somebody have a suggestion, it's just to get an idea of wich direction I have to think.

    Thank you very much.

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: How to handle track of multiple objects at the same time

    Hi,

    In C# you have 'user data objects', in Delphi and CBuilder a 'TList', C++ probably will have something similar ?

  3. #3
    VC_Man is offline Member Green Belt
    Join Date
    Nov 2006
    Posts
    93

    Re: How to handle track of multiple objects at the same time

    Hi Wilfried,

    Thank you for your reply, in MFC (wich I use) there is something like CList. I think that is what you mean. Should that be usefull to handle and proces multiple targets at the same time on the map?

    Can you give me a simple example?

    By the way, I really appreciate your help on this forum. Not everybody makes some precious time free to help others. So thank you Wilfried.

  4. #4
    VC_Man is offline Member Green Belt
    Join Date
    Nov 2006
    Posts
    93

    Re: How to handle track of multiple objects at the same time

    Hi all,

    I want to solve this problem on the following way. For each target or object I want to follow, I'll create a pushpin set (from data set). So all the pushpins that belongs to a certain target/object are saved in its pushpin set. So when I select an old pushpin of a certain target/object, I'll get the information in the balloonfield to which target/object it belongs. Also can I draw the route based on all pushpins in the certain dataset of the target, right??

    Now another problem rises up, how can I during runtime create.........
    Hmmm wait a minute, now I've to make an array which can find the right target/object-name and there you can find the reference of the created pushipin set. Where you can get, for example, all the pushpin info's.

    Is that an idea?
    If somebody has a better suggestion, than I'm open for it

  5. #5
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: How to handle track of multiple objects at the same time

    Hi,

    Yep you are on the right track

    I did a quick look into the CList, and yes that's what I meanth. You mention to use several dataset, yes also good solution, and then use array (or a CList) to hold the refernces. I see there is an CArray class also. As far as I can see it is more comparable with the TList I mentioned in Delphi and CBuilder.

    Thank you for the compliment. I try to look at the forum at least once a day, but I have too mutch work, so sometime there is no time left Sometime I have to eat and sleep above my keyboard (not so good) ...

  6. #6
    VC_Man is offline Member Green Belt
    Join Date
    Nov 2006
    Posts
    93

    Wink Re: How to handle track of multiple objects at the same time

    Thank you too Wilfried,

    I used a gps-navigator combined with Mappoint 2006 to get on the right track

    I think now I know how to solve this problem. Take a good rest my friend, programming is not all that. So when you rest all out, you can crunch the bits and the bytes in your software .

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How best to keep track of MapPoint.Pushpins
    By BobFromBoston in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-26-2005, 12:28 PM
  2. Can multiple users view and edit one map at the same time?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-20-2005, 09:56 AM
  3. How to keep track of 500+ independent reps
    By yourbaglady in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-29-2004, 08:56 PM
  4. Is it possible to get a direct HANDLE to the Map? ....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-19-2002, 10:05 AM
  5. How do I import multiple datasets at one time, eac....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-08-2002, 04:15 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96