go to www.geomview.org home page
 
Home

Overview
FAQ
Documentation

Download

Mailing List

Geomview For Windows?

Support
Users
Development

Bug Reporting
Contributing
Contact Us

Sponsors

 

Site Search

 

Advanced
Search

 
About the software@geom archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Update REQ 6025]: quaestions



To: software@geom.umn.edu
Subject: Re: [Update REQ 6025]: quaestions

> > control the timing. What happens when my module generates data
> > faster than geomview can display it? Can geomview send something
> > to my module which ways it is ready for the next frame?
> Yes.  You can use the GCL "echo" command to get Geomview to tell you
> when it has finished executing all the commands you've sent it so far;
> we use a procedure like the following:
> 
>     void SyncGeomview(FILE *togv, FILE *fromgv)
>     {
>       char buf[512];
>       fprintf(togv, "(echo \"ready\\n\")\n");
>       fflush( fromgv );
>       do {
>         fgets(buf, 511, fromgv);
>       } while (strncmp(buf,"ready",5)!=0);
>     }
> 
> Of course this assumes that "togv" is a pipe to, and "fromgv" a pipe
> from, Geomview.  If you're running the program as a regular external
> module, then these are just your program's stdin and stdout.

Thanks, that is clear and I will try it later.

Since I have your email address :-), what is the easiest way to
put text into the scene.
---------------------------------------------------------------------
Paul Bourke                                           pdb at mhri.edu.au
Mental Health Research Institute              http://www.mhri.edu.au/
Brain Dynamics Laboratory                          Ph: 61 3 9389 2602
Locked Bag 11, Parkville                          Fax: 61 3 9387 5061
Victoria 3052, Australia


 
Home | Overview | FAQ | Documentation | Support | Download | Mailing List
Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors
 
site hosted by
SourceForge Logo