[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

Drawing a curve between 2 points and mapping points along it

Asked by PMH4514 in Microsoft Visual C++, Windows MFC Programming

If you'll kindly first reference this old thread:
http://www.experts-exchange.com/Programming/Languages/CPP/Q_24200388.html

The thread pertains to drawing a line, and calculating points along it at a given percentage out.

Following the accepted answer there was a bit of brief conversation about doing the same thing, only instead of along a straight line, to do it along a "gentle curve". I had mentioned getting some help from a friend who is a math professor but that never panned out, and work priorities shifted.

Anyway I'm back to this old project and still wish to animate a curve and my head just doesn't wrap around the maths well enough to figure it out!

I am using VC++ 6.0 and MFC.

Consider two points, starting and ending.  Between these points I want to draw a "gentle curve" - it could be a segment of a circle, or a parabola (I am told). For an example of what I mean, on the home-page of the "Facebook" social networking site (www.facebook.com) there is an image of the earth with little pictures of people and dashed lines connecting them. This is very much the "look" I am after in so far as points and curves between them.  "Starting to Ending" isn't always left to right, the start point could be on either side.

Picture though if those dashed lines on Facebook were not only drawn as they are - but then in another color we animated out along the same path, to represent the "progress" of the process I am modeling, from start to finish - as that is what I'm trying to accomplish more or less, a visual progress indicator that traces along a curve between two points rather than a fixed straight line.

My software is visually modeling the transfer of large filesets between two geographically separated points. So the first drawn arc connecting the two points represents the transfer itself, and then in another color, I want to animate out along the same curve from the start point toward the end point, representing the percent complete.

So I guess what I'm looking for is a function into which I can enter two points - starting and ending, a percentage value (0-100%) and perhaps a radius value to adjust the degree to which the line arcs. The function will handle all the math and draw the curve in one color between the two points, and then draw/overlay in a different color, the portion of the same curve representing the percentage value, ie. "20% done between A and B".  It should handle A being to the left, right, above or below B.

Does this make sense I hope?

Thanks!
[+][-]10/29/09 11:20 AM, ID: 25696557Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Microsoft Visual C++, Windows MFC Programming
Sign Up Now!
Solution Provided By: itsmeandnobodyelse
Participating Experts: 1
Solution Grade: A
 
[+][-]10/28/09 03:45 AM, ID: 25681669Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/28/09 04:55 AM, ID: 25682204Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/28/09 06:58 AM, ID: 25683259Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/28/09 08:33 AM, ID: 25684386Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/28/09 08:35 AM, ID: 25684412Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/28/09 10:44 AM, ID: 25686065Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/28/09 10:48 AM, ID: 25686105Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/28/09 10:57 AM, ID: 25686204Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/28/09 11:21 AM, ID: 25686504Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/28/09 12:08 PM, ID: 25687002Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/28/09 01:59 PM, ID: 25688276Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/28/09 02:02 PM, ID: 25688291Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/28/09 04:47 PM, ID: 25689401Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/09 12:29 AM, ID: 25691248Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/29/09 05:39 AM, ID: 25692919Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/02/09 05:32 AM, ID: 25719080Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/02/09 05:33 AM, ID: 25719081Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/02/09 06:25 AM, ID: 25719521Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625