Solved

Grid display using C++

Posted on 2004-07-30
9
802 Views
Last Modified: 2006-11-17
My senior project partner and I need some help in programming a grid display using C++. A quick overview of our project: we are making a RF PET LEASH.
We are going to have 2 antennas which we will have fixed at 2 sides of a house and 3 transmitters doing their thing. The angles from the 2 transmitters to "Transmitter 3" (pet) will be the used to calculate the coordinates.

On the grid one of the antennas will be used as the zero axis and then there is the other one at a fixed distance away and then we have our "Transmitter 3" (x coord.) bopping away somewhere in the middle so ideally when "Transmitter 3" breaches the boundaries... we send out a warning signal.

So in one sentence "All the antenna's send data out to the pc, which parses them and displays it on the grid, calculating where the dot is and sounding an alarm when required."

We have a partial program right now that computes the coordinates of "Transmitter 3" and we would like to display this computed result relative to 2 fixed reference points on the grid. I did ask a few friends who are very familiar with C++ but it seems that grid/graph display is something they don't use or know much about.

Are there any specific books or websites you would suggest for this? Or better still do you know of a program that does something similar to this?

thanks in advance.
0
Comment
Question by:asharasas
9 Comments
 
LVL 5

Expert Comment

by:EOL
ID: 11677641
I understand that you need a visual representation of something you've a datastructure for? How to display this information then largly depends on what gui-toolkit you're using.

However, I've made the observation that most people who need somewhat more then ordinary spreadsheets tend to programm a their own representation on 2d or 3d canvanases like GDI or OpenGL.
0
 
LVL 13

Expert Comment

by:SteH
ID: 11677841
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 11677850
Definitively you don't need a special library for this simple task. Just choose a C++ compiler and use simple primitive drawing functions (lines, points, etc.) to represent your grid and calculated point.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 13

Accepted Solution

by:
SteH earned 250 total points
ID: 11677859
0
 

Author Comment

by:asharasas
ID: 11678281
Thanks, let me chekc it :-)
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 11925952
Still waiting for author's feedback
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now