Menu

vtk_figure doesn't work

Help
2006-03-27
2013-04-22
  • soren hauberg

    soren hauberg - 2006-03-27

    If no input arguments are given to vtk_figure it will fail. Jonathan Stickel told me at the octave-help list (http://www.octave.org/octave-lists/archive/help-octave.2006/msg01051.html) that bugs should simply be filed at the developers forum of octaviz. Is this that forum?

    Anyway, I looked into the code of vtk_figure and it appears to basicly work like this:
    *) If the input is a positive number n, create figure number n.
    *) If the input is a negative number -n, close figure number n.
    *) If the input is 0, return the currently active figure.

    Now, I couldn't really figure at when a figure number is returned from vtk_figure, and when a struct containing vtk_object's is returned. Personaly I find this structure to be a bit complex, so I suggest the use of a figure manager.

    I've implemented such a manager (http://hauberg.org/share/files/__vtk_figure_manager.m) and it works like this:

    __vtk_figure_manager("new"), creates a new figure and returns both a figure number and the struct containing vtk_object's. Other operations, such as "delete" (which closes a given figure), "get_active_figure", etc. are also there. The point is simply to let the higher level matlab compatible functions work with figure numbers (like matlab does), and use the figure manager when one needs to access the vtk_object's.

    Did any of this make sense? Anyway, it's tested and works. All (almost) functions in the Scripts directory need one-line changes to work, but I've done those as well :-)
    They are not online, since I'm lazy...

    /Søren

     
    • Jonathan Stickel

      hmm... this is the "help" forum; there is also a "developer" forum, but I see now it is only visible to developers.  We can just use this help forum for bugs until we get too much activity.  I don't see that being the case anytime soon.

      Thanks for your contribution.  I don't know when, but I will take a look at this.

      Jonathan

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.