Solved

Grid display using C++

Posted on 2004-07-30
9
804 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

813 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

11 Experts available now in Live!

Get 1:1 Help Now