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

Home » Public Forums » archive » idlgrbuffer draw :create_instance and draw_instance question....
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: idlgrbuffer draw :create_instance and draw_instance question.... [message #80927 is a reply to message #80858] Mon, 23 July 2012 06:28 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Hi George,

I use the CREATE_INSTANCE and DRAW_INSTANCE a lot but not in the IDLgrBuffer. I use it in the IDLgrWindow These 2 keywords are very useful when you have a lot of graphical objects in your view and you don't need render all of them.

What I do is separate the graphical objects in 2 models. One containing the static components (the objects that won't change) and another model containing the dynamic objects.
The dynamic objects are those ones that change in time, position, color, etc. and you have to render all the time.

Then, if you want to speed things up (and if I remember correctly), you can proceed that way :

dynamic_model->SetProperty, /HIDE
window->Draw, view, /CREATE_INSTANCE

static_model->SetProperty, /HIDE
view->SetProperty, /TRANSPARENT
dynamic_model->SetProperty, HIDE=0

After this, the command window->Draw, view, /DRAW_INSTANCE will only render the dynamic objects contained in the dynamic model and everything will be less computationally intense.

Hope it will be useful to you !
nata
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Using Widgets and Procedures
Next Topic: Identification of points after transformations

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

Current Time: Fri Oct 10 10:00:20 PDT 2025

Total time taken to generate the page: 0.39909 seconds