Mercurial > hg > octave-avbm
changeset 6845:11dd2cb3825c
[project @ 2007-08-30 01:05:44 by jwe]
author | jwe |
---|---|
date | Thu, 30 Aug 2007 01:05:44 +0000 |
parents | 9ac351b05b51 |
children | 7911a62a300d |
files | src/ChangeLog src/graphics.cc src/graphics.h |
diffstat | 3 files changed, 5 insertions(+), 61 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -15,12 +15,11 @@ 2007-08-28 John W. Eaton <jwe@octave.org> - * graphics.h (OCTAVE_GRAPHICS_PROPERTY_INTERNAL): Also define - set_X functions for properties. - (base_properties): Move class definition before definition of - base_graphics_object class. Provide forward declaration of - base_graphics_object prior to definition of base_properties. - (base_graphics_object::get_properties): New virtual function. + * graphics.h (base_properties): Move class definition before + definition of base_graphics_object class. Provide forward + declaration of base_graphics_object prior to definition of + base_properties. + (base_graphics_object::get_properties): New virtual function. (graphics_object::get_properties, root_figure::get_properties, figure::get_properties, axes::get_properties, line::get_properties, text::get_properties, image::get_properties,
--- a/src/graphics.cc +++ b/src/graphics.cc @@ -2878,60 +2878,6 @@ return ret; } -DEFUN (doit, args, , "") -{ - octave_value retval; - - if (args.length () == 1) - { - graphics_handle h = octave_NaN; - - double val = args(0).double_value (); - - if (! error_state) - { - h = gh_manager::lookup (val); - - if (! xisnan (h)) - { - graphics_object obj = gh_manager::get_object (h); - - if (obj.isa ("line")) - { - line::properties& lp - = dynamic_cast<line::properties&> (obj.get_properties ()); - retval = lp.get_xdata (); - Matrix m (1, 5); - m(0) = 0; - m(1) = 1; - m(2) = 2; - m(3) = 3; - m(4) = 4; - lp.set_xdata (m); - m(0) = 0; - m(1) = 1; - m(2) = 0.2; - m(3) = 0.8; - m(4) = 0.4; - lp.set_ydata (m); - - feval ("__request_drawnow__"); - } - else - error ("doit: looking for line"); - } - else - error ("doit: invalid graphics object (= %g)", val); - } - else - error ("doit: invalid graphics object"); - } - else - print_usage (); - - return retval; -} - /* ;;; Local Variables: *** ;;; mode: C++ ***