comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: moving to objects / IDL objects and object graphics
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: moving to objects / IDL objects and object graphics [message #56271 is a reply to message #56144] Mon, 08 October 2007 15:33 Go to previous message
Robbie is currently offline  Robbie
Messages: 165
Registered: February 2006
Senior Member
I think that you should only extend a IDLgrView object if you are
really creating a new graphics object. For example a colorbar is a
graphics object because it handles how to draw a colorbar and only
that.

A movie object would take care of getting data from a source and
putting it on the screen. But, it also has to handle timer events,
buffering and redrawing tasks.

Fields of such an object might be:
1) A widget base with the timer activated
2) A widget draw with GRAPHICS_LEVEL=2
3) The IDLgrView being drawn
4) The IDLgrImage which contains the frame buffer
5) A pointer or object reference to the actual movie data

The movie object would contain an event loop to handle events from
these.
I would probably delegate 4 and 5 to a separate object again so that
you can use various sources of movie data.
You could extend your movie object to include other widget buttons for
controlling your movie.

Robbie
[Message index]
 
Read Message
Read Message
Previous Topic: stippling or cross hatching in contour plot
Next Topic: How to declare a constant variable?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 03:41:00 PDT 2025

Total time taken to generate the page: 0.23991 seconds