help-octave
[Top][All Lists]
Advanced

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

vtk_clear (was Re: octaviz without render window)


From: Jonathan Stickel
Subject: vtk_clear (was Re: octaviz without render window)
Date: Mon, 30 Jul 2007 20:30:30 -0600
User-agent: Thunderbird 2.0.0.4 (X11/20070604)

Lieven

The command vtk_clear should clear anything "plotted" (by vtk_surf, etc), the title, and scalarbar. It leaves the outline and axes labels. If you think it is not doing what you expect, please provide an example.

By the way, most of the octaviz high level functions are largely vtk commands written in m-files. Feel free to look inside the m-files to see how things work. Contributions of new functions or proposed modifications to existing functions will be welcome. The place to make suggestions is through the tracker or forums section of the octaviz project site (http://sourceforge.net/projects/octaviz/).

Regards,
Jonathan


Lieven Theys wrote:
Jonathan, and the rest of the list,

As you suggest I am able to change camera position and upview etc.
Thank you very much for the link you provided for the wealth of
information.

There is however one thing I am not able to get to work.
In the same script I want to generate several plots and need to clear
the renderer inbetween.  I tried:
vtk_clear
or
f.rendrer.Clear()

neither of these calls clears the actors that have previously been
added.
To check I called:
f.renderer.GetActors() but the number of actors stays the same before
and after the clear call.

Do you know what I could be overlooking or am I interpreting the meaning
of clear incorrectly.

Kind regards,

Lieven


Op Fri, Jul 27, 2007 at 02:26:12PM -0600, schreef Jonathan Stickel:
You can try something like

f = vtk_figure(0);
f.renderer.GetActiveCamera().SetPosition(0.8,0.5,1);
This is an example of accessing and changing vtk object properties. Although not user friendly, complete vtk object documentation can be found here:

http://www.vtk.org/doc/release/5.0/html/index.html

Jonathan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]