6 : m_beingdeleted (
"beingdeleted", mh,
"off"),
7 m_busyaction (
"busyaction", mh,
"{queue}|cancel"),
8 m_buttondownfcn (
"buttondownfcn", mh,
Matrix ()),
9 m_children (
"children", mh,
Matrix ()),
10 m_clipping (
"clipping", mh,
"on"),
12 m_createfcn (
"createfcn", mh,
Matrix ()),
13 m_deletefcn (
"deletefcn", mh,
Matrix ()),
14 m_handlevisibility (
"handlevisibility", mh,
"{on}|callback|off"),
15 m_hittest (
"hittest", mh,
"on"),
16 m_interruptible (
"interruptible", mh,
"on"),
17 m_parent (
"parent", mh, p),
18 m_pickableparts (
"pickableparts", mh,
"{visible}|all|none"),
19 m_selected (
"selected", mh,
"off"),
20 m_selectionhighlight (
"selectionhighlight", mh,
"on"),
21 m_tag (
"tag", mh,
""),
22 m_type (
"type", mh, ty),
24 m_userdata (
"userdata", mh,
Matrix ()),
25 m_visible (
"visible", mh,
"on"),
26 m___appdata__ (
"__appdata__", mh,
Matrix ()),
27 m___modified__ (
"__modified__", mh,
"on"),
61 if (pname.
compare (
"beingdeleted"))
63 else if (pname.
compare (
"busyaction"))
65 else if (pname.
compare (
"buttondownfcn"))
67 else if (pname.
compare (
"children"))
69 else if (pname.
compare (
"clipping"))
71 else if (pname.
compare (
"contextmenu"))
73 else if (pname.
compare (
"createfcn"))
75 else if (pname.
compare (
"deletefcn"))
77 else if (pname.
compare (
"handlevisibility"))
79 else if (pname.
compare (
"hittest"))
81 else if (pname.
compare (
"interruptible"))
83 else if (pname.
compare (
"parent"))
85 else if (pname.
compare (
"pickableparts"))
87 else if (pname.
compare (
"selected"))
89 else if (pname.
compare (
"selectionhighlight"))
93 else if (pname.
compare (
"uicontextmenu"))
95 else if (pname.
compare (
"userdata"))
97 else if (pname.
compare (
"visible"))
99 else if (pname.
compare (
"__appdata__"))
101 else if (pname.
compare (
"__modified__"))
148 if (pname.
compare (
"beingdeleted"))
150 else if (pname.
compare (
"busyaction"))
152 else if (pname.
compare (
"buttondownfcn"))
154 else if (pname.
compare (
"children"))
156 else if (pname.
compare (
"clipping"))
158 else if (pname.
compare (
"contextmenu"))
160 else if (pname.
compare (
"createfcn"))
162 else if (pname.
compare (
"deletefcn"))
164 else if (pname.
compare (
"handlevisibility"))
166 else if (pname.
compare (
"hittest"))
168 else if (pname.
compare (
"interruptible"))
170 else if (pname.
compare (
"parent"))
172 else if (pname.
compare (
"pickableparts"))
174 else if (pname.
compare (
"selected"))
176 else if (pname.
compare (
"selectionhighlight"))
178 else if (pname.
compare (
"tag"))
180 else if (pname.
compare (
"type"))
182 else if (pname.
compare (
"uicontextmenu"))
184 else if (pname.
compare (
"userdata"))
186 else if (pname.
compare (
"visible"))
188 else if (pname.
compare (
"__appdata__"))
190 else if (pname.
compare (
"__modified__"))
192 else if (pname.
compare (
"__myhandle__"))
203 if (pname.
compare (
"beingdeleted"))
205 else if (pname.
compare (
"busyaction"))
207 else if (pname.
compare (
"buttondownfcn"))
209 else if (pname.
compare (
"children"))
211 else if (pname.
compare (
"clipping"))
213 else if (pname.
compare (
"contextmenu"))
215 else if (pname.
compare (
"createfcn"))
217 else if (pname.
compare (
"deletefcn"))
219 else if (pname.
compare (
"handlevisibility"))
221 else if (pname.
compare (
"hittest"))
223 else if (pname.
compare (
"interruptible"))
225 else if (pname.
compare (
"parent"))
227 else if (pname.
compare (
"pickableparts"))
229 else if (pname.
compare (
"selected"))
231 else if (pname.
compare (
"selectionhighlight"))
233 else if (pname.
compare (
"tag"))
235 else if (pname.
compare (
"type"))
237 else if (pname.
compare (
"uicontextmenu"))
239 else if (pname.
compare (
"userdata"))
241 else if (pname.
compare (
"visible"))
243 else if (pname.
compare (
"__appdata__"))
245 else if (pname.
compare (
"__modified__"))
256 m[
"beingdeleted"] =
"off";
257 m[
"busyaction"] =
"queue";
258 m[
"buttondownfcn"] =
Matrix ();
259 m[
"clipping"] =
"on";
263 m[
"handlevisibility"] =
"on";
265 m[
"interruptible"] =
"on";
266 m[
"pickableparts"] =
"visible";
267 m[
"selected"] =
"off";
268 m[
"selectionhighlight"] =
"on";
274 m[
"__modified__"] =
"on";
279 std::set<std::string>
282 static std::set<std::string> all_pnames;
284 static bool initialized =
false;
288 all_pnames.insert (
"beingdeleted");
289 all_pnames.insert (
"busyaction");
290 all_pnames.insert (
"buttondownfcn");
291 all_pnames.insert (
"children");
292 all_pnames.insert (
"clipping");
293 all_pnames.insert (
"contextmenu");
294 all_pnames.insert (
"createfcn");
295 all_pnames.insert (
"deletefcn");
296 all_pnames.insert (
"handlevisibility");
297 all_pnames.insert (
"hittest");
298 all_pnames.insert (
"interruptible");
299 all_pnames.insert (
"parent");
300 all_pnames.insert (
"pickableparts");
301 all_pnames.insert (
"selected");
302 all_pnames.insert (
"selectionhighlight");
303 all_pnames.insert (
"tag");
304 all_pnames.insert (
"type");
305 all_pnames.insert (
"uicontextmenu");
306 all_pnames.insert (
"userdata");
307 all_pnames.insert (
"visible");
308 all_pnames.insert (
"__appdata__");
309 all_pnames.insert (
"__modified__");
310 all_pnames.insert (
"__myhandle__");
323 return pnames.find (pname) != pnames.end ();
326 std::set<std::string>
329 static std::set<std::string> all_pnames;
331 static bool initialized =
false;
335 all_pnames.insert (
"type");
336 all_pnames.insert (
"__myhandle__");
349 return pnames.find (pname) != pnames.end ();
352 std::set<std::string>
357 std::set<std::string> retval = all_pnames;
359 retval.insert (dyn_props.begin (), dyn_props.end ());
360 for (std::map<caseless_str, property, cmp_caseless_str>::const_iterator p =
m_all_props.begin ();
362 retval.insert (p->first);
372 m_commandwindowsize (
"commandwindowsize", mh,
Matrix (1, 2, 0)),
374 m_fixedwidthfontname (
"fixedwidthfontname", mh,
"Courier"),
375 m_monitorpositions (
"monitorpositions", mh, default_screensize ()),
376 m_pointerlocation (
"pointerlocation", mh,
Matrix (1, 2, 0)),
377 m_pointerwindow (
"pointerwindow", mh, 0.0),
378 m_screendepth (
"screendepth", mh, default_screendepth ()),
379 m_screenpixelsperinch (
"screenpixelsperinch", mh, default_screenpixelsperinch ()),
380 m_screensize (
"screensize", mh, default_screensize ()),
381 m_showhiddenhandles (
"showhiddenhandles", mh,
"off"),
382 m_units (
"units", mh,
"{pixels}|inches|centimeters|points|normalized|characters")
402 const std::set<std::string>& pnames = all_property_names ();
404 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
408 error (
"set: \"%s\" is read-only", pname.c_str ());
412 if (pname.
compare (
"currentfigure"))
413 set_currentfigure (val);
414 else if (pname.
compare (
"fixedwidthfontname"))
415 set_fixedwidthfontname (val);
416 else if (pname.
compare (
"pointerlocation"))
417 set_pointerlocation (val);
418 else if (pname.
compare (
"showhiddenhandles"))
419 set_showhiddenhandles (val);
420 else if (pname.
compare (
"units"))
431 m.assign (
"callbackobject",
octave_value (get_callbackobject ().as_octave_value ()));
432 m.assign (
"commandwindowsize",
octave_value (get_commandwindowsize ()));
433 m.assign (
"currentfigure",
octave_value (get_currentfigure ().as_octave_value ()));
434 m.assign (
"fixedwidthfontname",
octave_value (get_fixedwidthfontname ()));
435 m.assign (
"monitorpositions",
octave_value (get_monitorpositions ()));
436 m.assign (
"pointerlocation",
octave_value (get_pointerlocation ()));
437 m.assign (
"pointerwindow",
octave_value (get_pointerwindow ()));
439 m.assign (
"screenpixelsperinch",
octave_value (get_screenpixelsperinch ()));
441 m.assign (
"showhiddenhandles",
octave_value (get_showhiddenhandles ()));
452 const std::set<std::string>& pnames = all_property_names ();
454 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
456 if (pname.
compare (
"callbackobject"))
457 retval = get_callbackobject ().as_octave_value ();
458 else if (pname.
compare (
"commandwindowsize"))
459 retval = get_commandwindowsize ();
460 else if (pname.
compare (
"currentfigure"))
461 retval = get_currentfigure ().as_octave_value ();
462 else if (pname.
compare (
"fixedwidthfontname"))
463 retval = get_fixedwidthfontname ();
464 else if (pname.
compare (
"monitorpositions"))
465 retval = get_monitorpositions ();
466 else if (pname.
compare (
"pointerlocation"))
467 retval = get_pointerlocation ();
468 else if (pname.
compare (
"pointerwindow"))
469 retval = get_pointerwindow ();
470 else if (pname.
compare (
"screendepth"))
471 retval = get_screendepth ();
472 else if (pname.
compare (
"screenpixelsperinch"))
473 retval = get_screenpixelsperinch ();
474 else if (pname.
compare (
"screensize"))
475 retval = get_screensize ();
476 else if (pname.
compare (
"showhiddenhandles"))
477 retval = get_showhiddenhandles ();
478 else if (pname.
compare (
"units"))
479 retval = get_units ();
489 const std::set<std::string>& pnames = all_property_names ();
491 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
493 if (pname.
compare (
"callbackobject"))
494 return property (&m_callbackobject,
true);
495 else if (pname.
compare (
"commandwindowsize"))
496 return property (&m_commandwindowsize,
true);
497 else if (pname.
compare (
"currentfigure"))
498 return property (&m_currentfigure,
true);
499 else if (pname.
compare (
"fixedwidthfontname"))
500 return property (&m_fixedwidthfontname,
true);
501 else if (pname.
compare (
"monitorpositions"))
502 return property (&m_monitorpositions,
true);
503 else if (pname.
compare (
"pointerlocation"))
504 return property (&m_pointerlocation,
true);
505 else if (pname.
compare (
"pointerwindow"))
506 return property (&m_pointerwindow,
true);
507 else if (pname.
compare (
"screendepth"))
508 return property (&m_screendepth,
true);
509 else if (pname.
compare (
"screenpixelsperinch"))
510 return property (&m_screenpixelsperinch,
true);
511 else if (pname.
compare (
"screensize"))
512 return property (&m_screensize,
true);
513 else if (pname.
compare (
"showhiddenhandles"))
514 return property (&m_showhiddenhandles,
true);
515 else if (pname.
compare (
"units"))
527 m[
"commandwindowsize"] =
Matrix (1, 2, 0);
529 m[
"fixedwidthfontname"] =
"Courier";
530 m[
"monitorpositions"] = default_screensize ();
531 m[
"pointerlocation"] =
Matrix (1, 2, 0);
532 m[
"pointerwindow"] = 0.0;
533 m[
"screendepth"] = default_screendepth ();
534 m[
"screenpixelsperinch"] = default_screenpixelsperinch ();
535 m[
"screensize"] = default_screensize ();
536 m[
"showhiddenhandles"] =
"off";
537 m[
"units"] =
"pixels";
542 std::string root_figure::properties::s_go_name (
"root");
544 std::set<std::string>
547 static std::set<std::string> all_pnames;
549 static bool initialized =
false;
553 all_pnames.insert (
"callbackobject");
554 all_pnames.insert (
"commandwindowsize");
555 all_pnames.insert (
"currentfigure");
556 all_pnames.insert (
"fixedwidthfontname");
557 all_pnames.insert (
"monitorpositions");
558 all_pnames.insert (
"pointerlocation");
559 all_pnames.insert (
"pointerwindow");
560 all_pnames.insert (
"screendepth");
561 all_pnames.insert (
"screenpixelsperinch");
562 all_pnames.insert (
"screensize");
563 all_pnames.insert (
"showhiddenhandles");
564 all_pnames.insert (
"units");
567 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
578 std::set<std::string> pnames = core_property_names ();
580 return pnames.find (pname) != pnames.end ();
583 std::set<std::string>
586 static std::set<std::string> all_pnames;
588 static bool initialized =
false;
592 all_pnames.insert (
"callbackobject");
593 all_pnames.insert (
"commandwindowsize");
594 all_pnames.insert (
"monitorpositions");
595 all_pnames.insert (
"pointerwindow");
596 all_pnames.insert (
"screendepth");
597 all_pnames.insert (
"screenpixelsperinch");
598 all_pnames.insert (
"screensize");
601 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
612 std::set<std::string> pnames = readonly_property_names ();
614 return pnames.find (pname) != pnames.end ();
617 std::set<std::string>
620 static std::set<std::string> all_pnames = core_property_names ();
622 std::set<std::string> retval = all_pnames;
624 retval.insert (base_props.begin (), base_props.end ());
632 std::set<std::string> pnames = all_property_names ();
634 return pnames.find (pname) != pnames.end ();
641 m_alphamap (
"alphamap", mh,
Matrix (64, 1, 1)),
642 m_buttondownfcn (
"buttondownfcn", mh,
Matrix ()),
643 m_closerequestfcn (
"closerequestfcn", mh,
"closereq"),
645 m_colormap (
"colormap", mh, viridis_colormap ()),
647 m_currentcharacter (
"currentcharacter", mh,
""),
649 m_currentpoint (
"currentpoint", mh,
Matrix (2, 1, 0)),
650 m_dockcontrols (
"dockcontrols", mh,
"on"),
651 m_filename (
"filename", mh,
""),
652 m_graphicssmoothing (
"graphicssmoothing", mh,
"on"),
653 m_innerposition (
"innerposition", mh, default_figure_position ()),
654 m_integerhandle (
"integerhandle", mh,
"on"),
655 m_inverthardcopy (
"inverthardcopy", mh,
"on"),
656 m_keypressfcn (
"keypressfcn", mh,
Matrix ()),
657 m_keyreleasefcn (
"keyreleasefcn", mh,
Matrix ()),
658 m_menubar (
"menubar", mh,
"{figure}|none"),
659 m_name (
"name", mh,
""),
660 m_number (
"number", mh,
Matrix ()),
661 m_nextplot (
"nextplot", mh,
"{add}|new|replace|replacechildren"),
662 m_numbertitle (
"numbertitle", mh,
"on"),
663 m_outerposition (
"outerposition", mh,
Matrix (1, 4, -1.0)),
664 m_paperorientation (
"paperorientation", mh,
"{portrait}|landscape"),
665 m_paperposition (
"paperposition", mh, default_figure_paperposition ()),
666 m_paperpositionmode (
"paperpositionmode", mh,
"{auto}|manual"),
667 m_papersize (
"papersize", mh, default_figure_papersize ()),
668 m_papertype (
"papertype", mh,
"{usletter}|uslegal|a0|a1|a2|a3|a4|a5|b0|b1|b2|b3|b4|b5|arch-a|arch-b|arch-c|arch-d|arch-e|a|b|c|d|e|tabloid|<custom>"),
669 m_paperunits (
"paperunits", mh,
"{inches}|centimeters|normalized|points"),
670 m_pointer (
"pointer", mh,
"{arrow}|crosshair|ibeam|watch|topl|topr|botl|botr|left|top|right|bottom|circle|cross|fleur|custom|hand"),
671 m_pointershapecdata (
"pointershapecdata", mh,
Matrix (16, 16, 1)),
672 m_pointershapehotspot (
"pointershapehotspot", mh,
Matrix (1, 2, 1)),
673 m_position (
"position", mh, default_figure_position ()),
674 m_renderer (
"renderer", mh,
"{opengl}|painters"),
675 m_renderermode (
"renderermode", mh,
"{auto}|manual"),
676 m_resize (
"resize", mh,
"on"),
677 m_resizefcn (
"resizefcn", mh,
Matrix ()),
678 m_selectiontype (
"selectiontype", mh,
"{normal}|extend|alt|open"),
679 m_sizechangedfcn (
"sizechangedfcn", mh,
Matrix ()),
680 m_toolbar (
"toolbar", mh,
"{auto}|figure|none"),
681 m_units (
"units", mh,
"{pixels}|normalized|inches|centimeters|points|characters"),
682 m_windowbuttondownfcn (
"windowbuttondownfcn", mh,
Matrix ()),
683 m_windowbuttonmotionfcn (
"windowbuttonmotionfcn", mh,
Matrix ()),
684 m_windowbuttonupfcn (
"windowbuttonupfcn", mh,
Matrix ()),
685 m_windowkeypressfcn (
"windowkeypressfcn", mh,
Matrix ()),
686 m_windowkeyreleasefcn (
"windowkeyreleasefcn", mh,
Matrix ()),
687 m_windowscrollwheelfcn (
"windowscrollwheelfcn", mh,
Matrix ()),
688 m_windowstate (
"windowstate", mh,
"{normal}|minimized|maximized|fullscreen"),
689 m_windowstyle (
"windowstyle", mh,
"{normal}|modal|docked"),
690 m_pickableparts (
"pickableparts", mh,
"{visible}"),
691 m___gl_extensions__ (
"__gl_extensions__", mh,
""),
692 m___gl_renderer__ (
"__gl_renderer__", mh,
""),
693 m___gl_vendor__ (
"__gl_vendor__", mh,
""),
694 m___gl_version__ (
"__gl_version__", mh,
""),
695 m___gl_window__ (
"__gl_window__", mh,
"off"),
696 m___graphics_toolkit__ (
"__graphics_toolkit__", mh, default_graphics_toolkit ()),
697 m___guidata__ (
"__guidata__", mh,
Matrix ()),
698 m___mouse_mode__ (
"__mouse_mode__", mh,
"{none}|pan|rotate|select|text|zoom"),
699 m___printing__ (
"__printing__", mh,
"off"),
700 m___pan_mode__ (
"__pan_mode__", mh,
Matrix ()),
701 m___plot_stream__ (
"__plot_stream__", mh,
Matrix ()),
702 m___rotate_mode__ (
"__rotate_mode__", mh,
Matrix ()),
703 m___zoom_mode__ (
"__zoom_mode__", mh,
Matrix ()),
704 m___device_pixel_ratio__ (
"__device_pixel_ratio__", mh, 1.0)
791 const std::set<std::string>& pnames = all_property_names ();
793 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
797 error (
"set: \"%s\" is read-only", pname.c_str ());
801 if (pname.
compare (
"alphamap"))
803 else if (pname.
compare (
"buttondownfcn"))
804 set_buttondownfcn (val);
805 else if (pname.
compare (
"closerequestfcn"))
806 set_closerequestfcn (val);
807 else if (pname.
compare (
"color"))
809 else if (pname.
compare (
"colormap"))
811 else if (pname.
compare (
"currentaxes"))
812 set_currentaxes (val);
813 else if (pname.
compare (
"dockcontrols"))
814 set_dockcontrols (val);
815 else if (pname.
compare (
"filename"))
817 else if (pname.
compare (
"graphicssmoothing"))
818 set_graphicssmoothing (val);
819 else if (pname.
compare (
"innerposition"))
820 set_innerposition (val);
821 else if (pname.
compare (
"integerhandle"))
822 set_integerhandle (val);
823 else if (pname.
compare (
"inverthardcopy"))
824 set_inverthardcopy (val);
825 else if (pname.
compare (
"keypressfcn"))
826 set_keypressfcn (val);
827 else if (pname.
compare (
"keyreleasefcn"))
828 set_keyreleasefcn (val);
829 else if (pname.
compare (
"menubar"))
831 else if (pname.
compare (
"name"))
833 else if (pname.
compare (
"nextplot"))
835 else if (pname.
compare (
"numbertitle"))
836 set_numbertitle (val);
837 else if (pname.
compare (
"outerposition"))
838 set_outerposition (val);
839 else if (pname.
compare (
"paperorientation"))
840 set_paperorientation (val);
841 else if (pname.
compare (
"paperposition"))
842 set_paperposition (val);
843 else if (pname.
compare (
"paperpositionmode"))
844 set_paperpositionmode (val);
845 else if (pname.
compare (
"papersize"))
847 else if (pname.
compare (
"papertype"))
849 else if (pname.
compare (
"paperunits"))
850 set_paperunits (val);
851 else if (pname.
compare (
"pointer"))
853 else if (pname.
compare (
"pointershapecdata"))
854 set_pointershapecdata (val);
855 else if (pname.
compare (
"pointershapehotspot"))
856 set_pointershapehotspot (val);
857 else if (pname.
compare (
"position"))
859 else if (pname.
compare (
"renderer"))
861 else if (pname.
compare (
"renderermode"))
862 set_renderermode (val);
863 else if (pname.
compare (
"resize"))
865 else if (pname.
compare (
"resizefcn"))
867 else if (pname.
compare (
"selectiontype"))
868 set_selectiontype (val);
869 else if (pname.
compare (
"sizechangedfcn"))
870 set_sizechangedfcn (val);
871 else if (pname.
compare (
"toolbar"))
873 else if (pname.
compare (
"units"))
875 else if (pname.
compare (
"windowbuttondownfcn"))
876 set_windowbuttondownfcn (val);
877 else if (pname.
compare (
"windowbuttonmotionfcn"))
878 set_windowbuttonmotionfcn (val);
879 else if (pname.
compare (
"windowbuttonupfcn"))
880 set_windowbuttonupfcn (val);
881 else if (pname.
compare (
"windowkeypressfcn"))
882 set_windowkeypressfcn (val);
883 else if (pname.
compare (
"windowkeyreleasefcn"))
884 set_windowkeyreleasefcn (val);
885 else if (pname.
compare (
"windowscrollwheelfcn"))
886 set_windowscrollwheelfcn (val);
887 else if (pname.
compare (
"windowstate"))
888 set_windowstate (val);
889 else if (pname.
compare (
"windowstyle"))
890 set_windowstyle (val);
891 else if (pname.
compare (
"pickableparts"))
892 set_pickableparts (val);
893 else if (pname.
compare (
"__gl_window__"))
894 set___gl_window__ (val);
895 else if (pname.
compare (
"__graphics_toolkit__"))
896 set___graphics_toolkit__ (val);
897 else if (pname.
compare (
"__guidata__"))
898 set___guidata__ (val);
899 else if (pname.
compare (
"__mouse_mode__"))
900 set___mouse_mode__ (val);
901 else if (pname.
compare (
"__printing__"))
902 set___printing__ (val);
903 else if (pname.
compare (
"__pan_mode__"))
904 set___pan_mode__ (val);
905 else if (pname.
compare (
"__plot_stream__"))
906 set___plot_stream__ (val);
907 else if (pname.
compare (
"__rotate_mode__"))
908 set___rotate_mode__ (val);
909 else if (pname.
compare (
"__zoom_mode__"))
910 set___zoom_mode__ (val);
911 else if (pname.
compare (
"__device_pixel_ratio__"))
912 set___device_pixel_ratio__ (val);
923 m.assign (
"buttondownfcn",
octave_value (get_buttondownfcn ()));
924 m.assign (
"closerequestfcn",
octave_value (get_closerequestfcn ()));
927 m.assign (
"currentaxes",
octave_value (get_currentaxes ().as_octave_value ()));
928 m.assign (
"currentcharacter",
octave_value (get_currentcharacter ()));
929 m.assign (
"currentobject",
octave_value (get_currentobject ().as_octave_value ()));
930 m.assign (
"currentpoint",
octave_value (get_currentpoint ()));
931 m.assign (
"dockcontrols",
octave_value (get_dockcontrols ()));
933 m.assign (
"graphicssmoothing",
octave_value (get_graphicssmoothing ()));
934 m.assign (
"innerposition",
octave_value (get_innerposition ()));
935 m.assign (
"integerhandle",
octave_value (get_integerhandle ()));
936 m.assign (
"inverthardcopy",
octave_value (get_inverthardcopy ()));
938 m.assign (
"keyreleasefcn",
octave_value (get_keyreleasefcn ()));
944 m.assign (
"outerposition",
octave_value (get_outerposition ()));
945 m.assign (
"paperorientation",
octave_value (get_paperorientation ()));
946 m.assign (
"paperposition",
octave_value (get_paperposition ()));
947 m.assign (
"paperpositionmode",
octave_value (get_paperpositionmode ()));
952 m.assign (
"pointershapecdata",
octave_value (get_pointershapecdata ()));
953 m.assign (
"pointershapehotspot",
octave_value (get_pointershapehotspot ()));
956 m.assign (
"renderermode",
octave_value (get_renderermode ()));
959 m.assign (
"selectiontype",
octave_value (get_selectiontype ()));
960 m.assign (
"sizechangedfcn",
octave_value (get_sizechangedfcn ()));
963 m.assign (
"windowbuttondownfcn",
octave_value (get_windowbuttondownfcn ()));
964 m.assign (
"windowbuttonmotionfcn",
octave_value (get_windowbuttonmotionfcn ()));
965 m.assign (
"windowbuttonupfcn",
octave_value (get_windowbuttonupfcn ()));
966 m.assign (
"windowkeypressfcn",
octave_value (get_windowkeypressfcn ()));
967 m.assign (
"windowkeyreleasefcn",
octave_value (get_windowkeyreleasefcn ()));
968 m.assign (
"windowscrollwheelfcn",
octave_value (get_windowscrollwheelfcn ()));
972 m.assign (
"pickableparts",
octave_value (get_pickableparts ()));
974 m.assign (
"__gl_extensions__",
octave_value (get___gl_extensions__ ()));
976 m.assign (
"__gl_renderer__",
octave_value (get___gl_renderer__ ()));
978 m.assign (
"__gl_vendor__",
octave_value (get___gl_vendor__ ()));
980 m.assign (
"__gl_version__",
octave_value (get___gl_version__ ()));
982 m.assign (
"__gl_window__",
octave_value (get___gl_window__ ()));
984 m.assign (
"__graphics_toolkit__",
octave_value (get___graphics_toolkit__ ()));
988 m.assign (
"__mouse_mode__",
octave_value (get___mouse_mode__ ()));
990 m.assign (
"__printing__",
octave_value (get___printing__ ()));
992 m.assign (
"__pan_mode__",
octave_value (get___pan_mode__ ()));
994 m.assign (
"__plot_stream__",
octave_value (get___plot_stream__ ()));
996 m.assign (
"__rotate_mode__",
octave_value (get___rotate_mode__ ()));
998 m.assign (
"__zoom_mode__",
octave_value (get___zoom_mode__ ()));
1000 m.assign (
"__device_pixel_ratio__",
octave_value (get___device_pixel_ratio__ ()));
1010 const std::set<std::string>& pnames = all_property_names ();
1012 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
1014 if (pname.
compare (
"alphamap"))
1015 retval = get_alphamap ();
1016 else if (pname.
compare (
"buttondownfcn"))
1017 retval = get_buttondownfcn ();
1018 else if (pname.
compare (
"closerequestfcn"))
1019 retval = get_closerequestfcn ();
1020 else if (pname.
compare (
"color"))
1021 retval = get_color ();
1022 else if (pname.
compare (
"colormap"))
1023 retval = get_colormap ();
1024 else if (pname.
compare (
"currentaxes"))
1025 retval = get_currentaxes ().as_octave_value ();
1026 else if (pname.
compare (
"currentcharacter"))
1027 retval = get_currentcharacter ();
1028 else if (pname.
compare (
"currentobject"))
1029 retval = get_currentobject ().as_octave_value ();
1030 else if (pname.
compare (
"currentpoint"))
1031 retval = get_currentpoint ();
1032 else if (pname.
compare (
"dockcontrols"))
1033 retval = get_dockcontrols ();
1034 else if (pname.
compare (
"filename"))
1035 retval = get_filename ();
1036 else if (pname.
compare (
"graphicssmoothing"))
1037 retval = get_graphicssmoothing ();
1038 else if (pname.
compare (
"innerposition"))
1039 retval = get_innerposition ();
1040 else if (pname.
compare (
"integerhandle"))
1041 retval = get_integerhandle ();
1042 else if (pname.
compare (
"inverthardcopy"))
1043 retval = get_inverthardcopy ();
1044 else if (pname.
compare (
"keypressfcn"))
1045 retval = get_keypressfcn ();
1046 else if (pname.
compare (
"keyreleasefcn"))
1047 retval = get_keyreleasefcn ();
1048 else if (pname.
compare (
"menubar"))
1049 retval = get_menubar ();
1050 else if (pname.
compare (
"name"))
1051 retval = get_name ();
1052 else if (pname.
compare (
"number"))
1053 retval = get_number ();
1054 else if (pname.
compare (
"nextplot"))
1055 retval = get_nextplot ();
1056 else if (pname.
compare (
"numbertitle"))
1057 retval = get_numbertitle ();
1058 else if (pname.
compare (
"outerposition"))
1059 retval = get_outerposition ();
1060 else if (pname.
compare (
"paperorientation"))
1061 retval = get_paperorientation ();
1062 else if (pname.
compare (
"paperposition"))
1063 retval = get_paperposition ();
1064 else if (pname.
compare (
"paperpositionmode"))
1065 retval = get_paperpositionmode ();
1066 else if (pname.
compare (
"papersize"))
1067 retval = get_papersize ();
1068 else if (pname.
compare (
"papertype"))
1069 retval = get_papertype ();
1070 else if (pname.
compare (
"paperunits"))
1071 retval = get_paperunits ();
1072 else if (pname.
compare (
"pointer"))
1073 retval = get_pointer ();
1074 else if (pname.
compare (
"pointershapecdata"))
1075 retval = get_pointershapecdata ();
1076 else if (pname.
compare (
"pointershapehotspot"))
1077 retval = get_pointershapehotspot ();
1078 else if (pname.
compare (
"position"))
1079 retval = get_position ();
1080 else if (pname.
compare (
"renderer"))
1081 retval = get_renderer ();
1082 else if (pname.
compare (
"renderermode"))
1083 retval = get_renderermode ();
1084 else if (pname.
compare (
"resize"))
1085 retval = get_resize ();
1086 else if (pname.
compare (
"resizefcn"))
1087 retval = get_resizefcn ();
1088 else if (pname.
compare (
"selectiontype"))
1089 retval = get_selectiontype ();
1090 else if (pname.
compare (
"sizechangedfcn"))
1091 retval = get_sizechangedfcn ();
1092 else if (pname.
compare (
"toolbar"))
1093 retval = get_toolbar ();
1094 else if (pname.
compare (
"units"))
1095 retval = get_units ();
1096 else if (pname.
compare (
"windowbuttondownfcn"))
1097 retval = get_windowbuttondownfcn ();
1098 else if (pname.
compare (
"windowbuttonmotionfcn"))
1099 retval = get_windowbuttonmotionfcn ();
1100 else if (pname.
compare (
"windowbuttonupfcn"))
1101 retval = get_windowbuttonupfcn ();
1102 else if (pname.
compare (
"windowkeypressfcn"))
1103 retval = get_windowkeypressfcn ();
1104 else if (pname.
compare (
"windowkeyreleasefcn"))
1105 retval = get_windowkeyreleasefcn ();
1106 else if (pname.
compare (
"windowscrollwheelfcn"))
1107 retval = get_windowscrollwheelfcn ();
1108 else if (pname.
compare (
"windowstate"))
1109 retval = get_windowstate ();
1110 else if (pname.
compare (
"windowstyle"))
1111 retval = get_windowstyle ();
1112 else if (pname.
compare (
"pickableparts"))
1113 retval = get_pickableparts ();
1114 else if (pname.
compare (
"__gl_extensions__"))
1115 retval = get___gl_extensions__ ();
1116 else if (pname.
compare (
"__gl_renderer__"))
1117 retval = get___gl_renderer__ ();
1118 else if (pname.
compare (
"__gl_vendor__"))
1119 retval = get___gl_vendor__ ();
1120 else if (pname.
compare (
"__gl_version__"))
1121 retval = get___gl_version__ ();
1122 else if (pname.
compare (
"__gl_window__"))
1123 retval = get___gl_window__ ();
1124 else if (pname.
compare (
"__graphics_toolkit__"))
1125 retval = get___graphics_toolkit__ ();
1126 else if (pname.
compare (
"__guidata__"))
1127 retval = get___guidata__ ();
1128 else if (pname.
compare (
"__mouse_mode__"))
1129 retval = get___mouse_mode__ ();
1130 else if (pname.
compare (
"__printing__"))
1131 retval = get___printing__ ();
1132 else if (pname.
compare (
"__pan_mode__"))
1133 retval = get___pan_mode__ ();
1134 else if (pname.
compare (
"__plot_stream__"))
1135 retval = get___plot_stream__ ();
1136 else if (pname.
compare (
"__rotate_mode__"))
1137 retval = get___rotate_mode__ ();
1138 else if (pname.
compare (
"__zoom_mode__"))
1139 retval = get___zoom_mode__ ();
1140 else if (pname.
compare (
"__device_pixel_ratio__"))
1141 retval = get___device_pixel_ratio__ ();
1151 const std::set<std::string>& pnames = all_property_names ();
1153 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
1155 if (pname.
compare (
"alphamap"))
1156 return property (&m_alphamap,
true);
1157 else if (pname.
compare (
"buttondownfcn"))
1158 return property (&m_buttondownfcn,
true);
1159 else if (pname.
compare (
"closerequestfcn"))
1160 return property (&m_closerequestfcn,
true);
1161 else if (pname.
compare (
"color"))
1163 else if (pname.
compare (
"colormap"))
1164 return property (&m_colormap,
true);
1165 else if (pname.
compare (
"currentaxes"))
1166 return property (&m_currentaxes,
true);
1167 else if (pname.
compare (
"currentcharacter"))
1168 return property (&m_currentcharacter,
true);
1169 else if (pname.
compare (
"currentobject"))
1170 return property (&m_currentobject,
true);
1171 else if (pname.
compare (
"currentpoint"))
1172 return property (&m_currentpoint,
true);
1173 else if (pname.
compare (
"dockcontrols"))
1174 return property (&m_dockcontrols,
true);
1175 else if (pname.
compare (
"filename"))
1176 return property (&m_filename,
true);
1177 else if (pname.
compare (
"graphicssmoothing"))
1178 return property (&m_graphicssmoothing,
true);
1179 else if (pname.
compare (
"innerposition"))
1180 return property (&m_innerposition,
true);
1181 else if (pname.
compare (
"integerhandle"))
1182 return property (&m_integerhandle,
true);
1183 else if (pname.
compare (
"inverthardcopy"))
1184 return property (&m_inverthardcopy,
true);
1185 else if (pname.
compare (
"keypressfcn"))
1186 return property (&m_keypressfcn,
true);
1187 else if (pname.
compare (
"keyreleasefcn"))
1188 return property (&m_keyreleasefcn,
true);
1189 else if (pname.
compare (
"menubar"))
1190 return property (&m_menubar,
true);
1191 else if (pname.
compare (
"name"))
1193 else if (pname.
compare (
"number"))
1195 else if (pname.
compare (
"nextplot"))
1196 return property (&m_nextplot,
true);
1197 else if (pname.
compare (
"numbertitle"))
1198 return property (&m_numbertitle,
true);
1199 else if (pname.
compare (
"outerposition"))
1200 return property (&m_outerposition,
true);
1201 else if (pname.
compare (
"paperorientation"))
1202 return property (&m_paperorientation,
true);
1203 else if (pname.
compare (
"paperposition"))
1204 return property (&m_paperposition,
true);
1205 else if (pname.
compare (
"paperpositionmode"))
1206 return property (&m_paperpositionmode,
true);
1207 else if (pname.
compare (
"papersize"))
1208 return property (&m_papersize,
true);
1209 else if (pname.
compare (
"papertype"))
1210 return property (&m_papertype,
true);
1211 else if (pname.
compare (
"paperunits"))
1212 return property (&m_paperunits,
true);
1213 else if (pname.
compare (
"pointer"))
1214 return property (&m_pointer,
true);
1215 else if (pname.
compare (
"pointershapecdata"))
1216 return property (&m_pointershapecdata,
true);
1217 else if (pname.
compare (
"pointershapehotspot"))
1218 return property (&m_pointershapehotspot,
true);
1219 else if (pname.
compare (
"position"))
1220 return property (&m_position,
true);
1221 else if (pname.
compare (
"renderer"))
1222 return property (&m_renderer,
true);
1223 else if (pname.
compare (
"renderermode"))
1224 return property (&m_renderermode,
true);
1225 else if (pname.
compare (
"resize"))
1227 else if (pname.
compare (
"resizefcn"))
1228 return property (&m_resizefcn,
true);
1229 else if (pname.
compare (
"selectiontype"))
1230 return property (&m_selectiontype,
true);
1231 else if (pname.
compare (
"sizechangedfcn"))
1232 return property (&m_sizechangedfcn,
true);
1233 else if (pname.
compare (
"toolbar"))
1234 return property (&m_toolbar,
true);
1235 else if (pname.
compare (
"units"))
1237 else if (pname.
compare (
"windowbuttondownfcn"))
1238 return property (&m_windowbuttondownfcn,
true);
1239 else if (pname.
compare (
"windowbuttonmotionfcn"))
1240 return property (&m_windowbuttonmotionfcn,
true);
1241 else if (pname.
compare (
"windowbuttonupfcn"))
1242 return property (&m_windowbuttonupfcn,
true);
1243 else if (pname.
compare (
"windowkeypressfcn"))
1244 return property (&m_windowkeypressfcn,
true);
1245 else if (pname.
compare (
"windowkeyreleasefcn"))
1246 return property (&m_windowkeyreleasefcn,
true);
1247 else if (pname.
compare (
"windowscrollwheelfcn"))
1248 return property (&m_windowscrollwheelfcn,
true);
1249 else if (pname.
compare (
"windowstate"))
1250 return property (&m_windowstate,
true);
1251 else if (pname.
compare (
"windowstyle"))
1252 return property (&m_windowstyle,
true);
1253 else if (pname.
compare (
"pickableparts"))
1254 return property (&m_pickableparts,
true);
1255 else if (pname.
compare (
"__gl_extensions__"))
1256 return property (&m___gl_extensions__,
true);
1257 else if (pname.
compare (
"__gl_renderer__"))
1258 return property (&m___gl_renderer__,
true);
1259 else if (pname.
compare (
"__gl_vendor__"))
1260 return property (&m___gl_vendor__,
true);
1261 else if (pname.
compare (
"__gl_version__"))
1262 return property (&m___gl_version__,
true);
1263 else if (pname.
compare (
"__gl_window__"))
1264 return property (&m___gl_window__,
true);
1265 else if (pname.
compare (
"__graphics_toolkit__"))
1266 return property (&m___graphics_toolkit__,
true);
1267 else if (pname.
compare (
"__guidata__"))
1268 return property (&m___guidata__,
true);
1269 else if (pname.
compare (
"__mouse_mode__"))
1270 return property (&m___mouse_mode__,
true);
1271 else if (pname.
compare (
"__printing__"))
1272 return property (&m___printing__,
true);
1273 else if (pname.
compare (
"__pan_mode__"))
1274 return property (&m___pan_mode__,
true);
1275 else if (pname.
compare (
"__plot_stream__"))
1276 return property (&m___plot_stream__,
true);
1277 else if (pname.
compare (
"__rotate_mode__"))
1278 return property (&m___rotate_mode__,
true);
1279 else if (pname.
compare (
"__zoom_mode__"))
1280 return property (&m___zoom_mode__,
true);
1281 else if (pname.
compare (
"__device_pixel_ratio__"))
1282 return property (&m___device_pixel_ratio__,
true);
1292 m[
"alphamap"] =
Matrix (64, 1, 1);
1293 m[
"buttondownfcn"] =
Matrix ();
1294 m[
"closerequestfcn"] =
"closereq";
1296 m[
"colormap"] = viridis_colormap ();
1298 m[
"currentcharacter"] =
"";
1300 m[
"currentpoint"] =
Matrix (2, 1, 0);
1301 m[
"dockcontrols"] =
"on";
1303 m[
"graphicssmoothing"] =
"on";
1304 m[
"innerposition"] = default_figure_position ();
1305 m[
"integerhandle"] =
"on";
1306 m[
"inverthardcopy"] =
"on";
1308 m[
"keyreleasefcn"] =
Matrix ();
1309 m[
"menubar"] =
"figure";
1312 m[
"nextplot"] =
"add";
1313 m[
"numbertitle"] =
"on";
1314 m[
"outerposition"] =
Matrix (1, 4, -1.0);
1315 m[
"paperorientation"] =
"portrait";
1316 m[
"paperposition"] = default_figure_paperposition ();
1317 m[
"paperpositionmode"] =
"auto";
1318 m[
"papersize"] = default_figure_papersize ();
1319 m[
"papertype"] =
"usletter";
1320 m[
"paperunits"] =
"inches";
1321 m[
"pointer"] =
"arrow";
1322 m[
"pointershapecdata"] =
Matrix (16, 16, 1);
1323 m[
"pointershapehotspot"] =
Matrix (1, 2, 1);
1324 m[
"position"] = default_figure_position ();
1325 m[
"renderer"] =
"opengl";
1326 m[
"renderermode"] =
"auto";
1329 m[
"selectiontype"] =
"normal";
1330 m[
"sizechangedfcn"] =
Matrix ();
1331 m[
"toolbar"] =
"auto";
1332 m[
"units"] =
"pixels";
1333 m[
"windowbuttondownfcn"] =
Matrix ();
1334 m[
"windowbuttonmotionfcn"] =
Matrix ();
1335 m[
"windowbuttonupfcn"] =
Matrix ();
1336 m[
"windowkeypressfcn"] =
Matrix ();
1337 m[
"windowkeyreleasefcn"] =
Matrix ();
1338 m[
"windowscrollwheelfcn"] =
Matrix ();
1339 m[
"windowstate"] =
"normal";
1340 m[
"windowstyle"] =
"normal";
1341 m[
"pickableparts"] =
"visible";
1342 m[
"__gl_extensions__"] =
"";
1343 m[
"__gl_renderer__"] =
"";
1344 m[
"__gl_vendor__"] =
"";
1345 m[
"__gl_version__"] =
"";
1346 m[
"__gl_window__"] =
"off";
1347 m[
"__graphics_toolkit__"] = default_graphics_toolkit ();
1349 m[
"__mouse_mode__"] =
"none";
1350 m[
"__printing__"] =
"off";
1351 m[
"__pan_mode__"] =
Matrix ();
1352 m[
"__plot_stream__"] =
Matrix ();
1353 m[
"__rotate_mode__"] =
Matrix ();
1354 m[
"__zoom_mode__"] =
Matrix ();
1355 m[
"__device_pixel_ratio__"] = 1.0;
1360 std::string figure::properties::s_go_name (
"figure");
1362 std::set<std::string>
1365 static std::set<std::string> all_pnames;
1367 static bool initialized =
false;
1371 all_pnames.insert (
"alphamap");
1372 all_pnames.insert (
"buttondownfcn");
1373 all_pnames.insert (
"closerequestfcn");
1374 all_pnames.insert (
"color");
1375 all_pnames.insert (
"colormap");
1376 all_pnames.insert (
"currentaxes");
1377 all_pnames.insert (
"currentcharacter");
1378 all_pnames.insert (
"currentobject");
1379 all_pnames.insert (
"currentpoint");
1380 all_pnames.insert (
"dockcontrols");
1381 all_pnames.insert (
"filename");
1382 all_pnames.insert (
"graphicssmoothing");
1383 all_pnames.insert (
"innerposition");
1384 all_pnames.insert (
"integerhandle");
1385 all_pnames.insert (
"inverthardcopy");
1386 all_pnames.insert (
"keypressfcn");
1387 all_pnames.insert (
"keyreleasefcn");
1388 all_pnames.insert (
"menubar");
1389 all_pnames.insert (
"name");
1390 all_pnames.insert (
"number");
1391 all_pnames.insert (
"nextplot");
1392 all_pnames.insert (
"numbertitle");
1393 all_pnames.insert (
"outerposition");
1394 all_pnames.insert (
"paperorientation");
1395 all_pnames.insert (
"paperposition");
1396 all_pnames.insert (
"paperpositionmode");
1397 all_pnames.insert (
"papersize");
1398 all_pnames.insert (
"papertype");
1399 all_pnames.insert (
"paperunits");
1400 all_pnames.insert (
"pointer");
1401 all_pnames.insert (
"pointershapecdata");
1402 all_pnames.insert (
"pointershapehotspot");
1403 all_pnames.insert (
"position");
1404 all_pnames.insert (
"renderer");
1405 all_pnames.insert (
"renderermode");
1406 all_pnames.insert (
"resize");
1407 all_pnames.insert (
"resizefcn");
1408 all_pnames.insert (
"selectiontype");
1409 all_pnames.insert (
"sizechangedfcn");
1410 all_pnames.insert (
"toolbar");
1411 all_pnames.insert (
"units");
1412 all_pnames.insert (
"windowbuttondownfcn");
1413 all_pnames.insert (
"windowbuttonmotionfcn");
1414 all_pnames.insert (
"windowbuttonupfcn");
1415 all_pnames.insert (
"windowkeypressfcn");
1416 all_pnames.insert (
"windowkeyreleasefcn");
1417 all_pnames.insert (
"windowscrollwheelfcn");
1418 all_pnames.insert (
"windowstate");
1419 all_pnames.insert (
"windowstyle");
1420 all_pnames.insert (
"pickableparts");
1421 all_pnames.insert (
"__gl_extensions__");
1422 all_pnames.insert (
"__gl_renderer__");
1423 all_pnames.insert (
"__gl_vendor__");
1424 all_pnames.insert (
"__gl_version__");
1425 all_pnames.insert (
"__gl_window__");
1426 all_pnames.insert (
"__graphics_toolkit__");
1427 all_pnames.insert (
"__guidata__");
1428 all_pnames.insert (
"__mouse_mode__");
1429 all_pnames.insert (
"__printing__");
1430 all_pnames.insert (
"__pan_mode__");
1431 all_pnames.insert (
"__plot_stream__");
1432 all_pnames.insert (
"__rotate_mode__");
1433 all_pnames.insert (
"__zoom_mode__");
1434 all_pnames.insert (
"__device_pixel_ratio__");
1437 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
1448 std::set<std::string> pnames = core_property_names ();
1450 return pnames.find (pname) != pnames.end ();
1453 std::set<std::string>
1456 static std::set<std::string> all_pnames;
1458 static bool initialized =
false;
1462 all_pnames.insert (
"currentcharacter");
1463 all_pnames.insert (
"currentobject");
1464 all_pnames.insert (
"currentpoint");
1465 all_pnames.insert (
"number");
1466 all_pnames.insert (
"__gl_extensions__");
1467 all_pnames.insert (
"__gl_renderer__");
1468 all_pnames.insert (
"__gl_vendor__");
1469 all_pnames.insert (
"__gl_version__");
1472 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
1483 std::set<std::string> pnames = readonly_property_names ();
1485 return pnames.find (pname) != pnames.end ();
1488 std::set<std::string>
1491 static std::set<std::string> all_pnames = core_property_names ();
1493 std::set<std::string> retval = all_pnames;
1495 retval.insert (base_props.begin (), base_props.end ());
1503 std::set<std::string> pnames = all_property_names ();
1505 return pnames.find (pname) != pnames.end ();
1512 m_activepositionproperty (
"activepositionproperty", mh,
"{outerposition}|position"),
1513 m_alim (
"alim", mh, default_lim ()),
1514 m_alimmode (
"alimmode", mh,
"{auto}|manual"),
1515 m_alphamap (
"alphamap", mh,
Matrix ()),
1516 m_alphascale (
"alphascale", mh,
"{linear}|log"),
1517 m_ambientlightcolor (
"ambientlightcolor", mh,
color_values (1, 1, 1)),
1518 m_box (
"box", mh,
"off"),
1519 m_boxstyle (
"boxstyle", mh,
"{back}|full"),
1520 m_cameraposition (
"cameraposition", mh,
Matrix (1, 3, 0.0)),
1521 m_camerapositionmode (
"camerapositionmode", mh,
"{auto}|manual"),
1522 m_cameratarget (
"cameratarget", mh,
Matrix (1, 3, 0.0)),
1523 m_cameratargetmode (
"cameratargetmode", mh,
"{auto}|manual"),
1524 m_cameraupvector (
"cameraupvector", mh,
Matrix (1, 3, 0.0)),
1525 m_cameraupvectormode (
"cameraupvectormode", mh,
"{auto}|manual"),
1526 m_cameraviewangle (
"cameraviewangle", mh, 6.6086),
1527 m_cameraviewanglemode (
"cameraviewanglemode", mh,
"{auto}|manual"),
1528 m_clim (
"clim", mh, default_lim ()),
1529 m_climmode (
"climmode", mh,
"{auto}|manual"),
1530 m_clippingstyle (
"clippingstyle", mh,
"{3dbox}|rectangle"),
1532 m_colormap (
"colormap", mh,
Matrix ()),
1533 m_colororder (
"colororder", mh, default_colororder ()),
1534 m_colororderindex (
"colororderindex", mh, 1.0),
1535 m_colorscale (
"colorscale", mh,
"{linear}|log"),
1536 m_currentpoint (
"currentpoint", mh,
Matrix (2, 3, 0.0)),
1537 m_dataaspectratio (
"dataaspectratio", mh,
Matrix (1, 3, 1.0)),
1538 m_dataaspectratiomode (
"dataaspectratiomode", mh,
"{auto}|manual"),
1539 m_fontangle (
"fontangle", mh,
"{normal}|italic"),
1541 m_fontsize (
"fontsize", mh, 10),
1542 m_fontsizemode (
"fontsizemode", mh,
"{auto}|manual"),
1543 m_fontsmoothing (
"fontsmoothing", mh,
"on"),
1544 m_fontunits (
"fontunits", mh,
"{points}|inches|centimeters|normalized|pixels"),
1545 m_fontweight (
"fontweight", mh,
"{normal}|bold"),
1546 m_gridalpha (
"gridalpha", mh, 0.15),
1547 m_gridalphamode (
"gridalphamode", mh,
"{auto}|manual"),
1549 m_gridcolormode (
"gridcolormode", mh,
"{auto}|manual"),
1550 m_gridlinestyle (
"gridlinestyle", mh,
"{-}|--|:|-.|none"),
1551 m_innerposition (
"innerposition", mh, default_axes_position ()),
1552 m_interactions (
"interactions", mh,
Matrix ()),
1553 m_labelfontsizemultiplier (
"labelfontsizemultiplier", mh, 1.1),
1554 m_layer (
"layer", mh,
"{bottom}|top"),
1557 m_linestyleorder (
"linestyleorder", mh,
"-"),
1558 m_linestyleorderindex (
"linestyleorderindex", mh, 1.0),
1559 m_linewidth (
"linewidth", mh, 0.5),
1560 m_minorgridalpha (
"minorgridalpha", mh, 0.25),
1561 m_minorgridalphamode (
"minorgridalphamode", mh,
"{auto}|manual"),
1563 m_minorgridcolormode (
"minorgridcolormode", mh,
"{auto}|manual"),
1564 m_minorgridlinestyle (
"minorgridlinestyle", mh,
"{:}|-|--|-.|none"),
1565 m_nextplot (
"nextplot", mh,
"{replace}|add|replacechildren"),
1566 m_nextseriesindex (
"nextseriesindex", mh, 1.0),
1567 m_outerposition (
"outerposition", mh, default_axes_outerposition ()),
1568 m_plotboxaspectratio (
"plotboxaspectratio", mh,
Matrix (1, 3, 1.0)),
1569 m_plotboxaspectratiomode (
"plotboxaspectratiomode", mh,
"{auto}|manual"),
1570 m_position (
"position", mh, default_axes_position ()),
1571 m_positionconstraint (
"positionconstraint", mh,
"{outerposition}|innerposition"),
1572 m_projection (
"projection", mh,
"{orthographic}|perspective"),
1573 m_sortmethod (
"sortmethod", mh,
"{depth}|childorder"),
1574 m_tickdir (
"tickdir", mh,
"{in}|out|both|none"),
1575 m_tickdirmode (
"tickdirmode", mh,
"{auto}|manual"),
1576 m_ticklabelinterpreter (
"ticklabelinterpreter", mh,
"{tex}|latex|none"),
1577 m_ticklength (
"ticklength", mh, default_axes_ticklength ()),
1578 m_tightinset (
"tightinset", mh,
Matrix (1, 4, 0.0)),
1579 m_title (
"title", mh, make_graphics_handle (
"text", m___myhandle__, false, false, false)),
1580 m_titlefontsizemultiplier (
"titlefontsizemultiplier", mh, 1.1),
1581 m_titlefontweight (
"titlefontweight", mh,
"{bold}|normal"),
1583 m_units (
"units", mh,
"{normalized}|inches|centimeters|points|pixels|characters"),
1584 m_view (
"view", mh, default_axes_view ()),
1586 m_xaxislocation (
"xaxislocation", mh,
"{bottom}|top|origin"),
1588 m_xcolormode (
"xcolormode", mh,
"{auto}|manual"),
1589 m_xdir (
"xdir", mh,
"{normal}|reverse"),
1590 m_xgrid (
"xgrid", mh,
"off"),
1591 m_xlabel (
"xlabel", mh, make_graphics_handle (
"text", m___myhandle__, false, false, false)),
1592 m_xlim (
"xlim", mh, default_lim ()),
1593 m_xlimitmethod (
"xlimitmethod", mh,
"{tickaligned}|tight|padded"),
1594 m_xlimmode (
"xlimmode", mh,
"{auto}|manual"),
1595 m_xminorgrid (
"xminorgrid", mh,
"off"),
1596 m_xminortick (
"xminortick", mh,
"off"),
1597 m_xscale (
"xscale", mh,
"{linear}|log"),
1598 m_xtick (
"xtick", mh, default_axes_tick ()),
1599 m_xticklabel (
"xticklabel", mh,
""),
1600 m_xticklabelmode (
"xticklabelmode", mh,
"{auto}|manual"),
1601 m_xticklabelrotation (
"xticklabelrotation", mh, 0.0),
1602 m_xtickmode (
"xtickmode", mh,
"{auto}|manual"),
1604 m_yaxislocation (
"yaxislocation", mh,
"{left}|right|origin"),
1606 m_ycolormode (
"ycolormode", mh,
"{auto}|manual"),
1607 m_ydir (
"ydir", mh,
"{normal}|reverse"),
1608 m_ygrid (
"ygrid", mh,
"off"),
1609 m_ylabel (
"ylabel", mh, make_graphics_handle (
"text", m___myhandle__, false, false, false)),
1610 m_ylim (
"ylim", mh, default_lim ()),
1611 m_ylimitmethod (
"ylimitmethod", mh,
"{tickaligned}|tight|padded"),
1612 m_ylimmode (
"ylimmode", mh,
"{auto}|manual"),
1613 m_yminorgrid (
"yminorgrid", mh,
"off"),
1614 m_yminortick (
"yminortick", mh,
"off"),
1615 m_yscale (
"yscale", mh,
"{linear}|log"),
1616 m_ytick (
"ytick", mh, default_axes_tick ()),
1617 m_yticklabel (
"yticklabel", mh,
""),
1618 m_yticklabelmode (
"yticklabelmode", mh,
"{auto}|manual"),
1619 m_yticklabelrotation (
"yticklabelrotation", mh, 0.0),
1620 m_ytickmode (
"ytickmode", mh,
"{auto}|manual"),
1623 m_zcolormode (
"zcolormode", mh,
"{auto}|manual"),
1624 m_zdir (
"zdir", mh,
"{normal}|reverse"),
1625 m_zgrid (
"zgrid", mh,
"off"),
1626 m_zlabel (
"zlabel", mh, make_graphics_handle (
"text", m___myhandle__, false, false, false)),
1627 m_zlim (
"zlim", mh, default_lim ()),
1628 m_zlimitmethod (
"zlimitmethod", mh,
"{tickaligned}|tight|padded"),
1629 m_zlimmode (
"zlimmode", mh,
"{auto}|manual"),
1630 m_zminorgrid (
"zminorgrid", mh,
"off"),
1631 m_zminortick (
"zminortick", mh,
"off"),
1632 m_zscale (
"zscale", mh,
"{linear}|log"),
1633 m_ztick (
"ztick", mh, default_axes_tick ()),
1634 m_zticklabel (
"zticklabel", mh,
""),
1635 m_zticklabelmode (
"zticklabelmode", mh,
"{auto}|manual"),
1636 m_zticklabelrotation (
"zticklabelrotation", mh, 0.0),
1637 m_ztickmode (
"ztickmode", mh,
"{auto}|manual"),
1638 m___colormap__ (
"__colormap__", mh,
Matrix ()),
1639 m_mousewheelzoom (
"mousewheelzoom", mh, 0.5),
1640 m___autopos_tag__ (
"__autopos_tag__", mh,
"{none}|subplot"),
1641 m_looseinset (
"looseinset", mh,
Matrix (1, 4, 0.0)),
1642 m_xminortickvalues (
"xminortickvalues", mh,
Matrix ()),
1643 m_yminortickvalues (
"yminortickvalues", mh,
Matrix ()),
1644 m_zminortickvalues (
"zminortickvalues", mh,
Matrix ()),
1645 m___fontsize_points__ (
"__fontsize_points__", mh, 0)
1795 const std::set<std::string>& pnames = all_property_names ();
1797 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
1801 error (
"set: \"%s\" is read-only", pname.c_str ());
1805 if (pname.
compare (
"activepositionproperty"))
1806 set_activepositionproperty (val);
1807 else if (pname.
compare (
"alim"))
1809 else if (pname.
compare (
"alimmode"))
1811 else if (pname.
compare (
"alphamap"))
1813 else if (pname.
compare (
"alphascale"))
1814 set_alphascale (val);
1815 else if (pname.
compare (
"ambientlightcolor"))
1816 set_ambientlightcolor (val);
1817 else if (pname.
compare (
"box"))
1819 else if (pname.
compare (
"boxstyle"))
1821 else if (pname.
compare (
"cameraposition"))
1822 set_cameraposition (val);
1823 else if (pname.
compare (
"camerapositionmode"))
1824 set_camerapositionmode (val);
1825 else if (pname.
compare (
"cameratarget"))
1826 set_cameratarget (val);
1827 else if (pname.
compare (
"cameratargetmode"))
1828 set_cameratargetmode (val);
1829 else if (pname.
compare (
"cameraupvector"))
1830 set_cameraupvector (val);
1831 else if (pname.
compare (
"cameraupvectormode"))
1832 set_cameraupvectormode (val);
1833 else if (pname.
compare (
"cameraviewangle"))
1834 set_cameraviewangle (val);
1835 else if (pname.
compare (
"cameraviewanglemode"))
1836 set_cameraviewanglemode (val);
1837 else if (pname.
compare (
"clim"))
1839 else if (pname.
compare (
"climmode"))
1841 else if (pname.
compare (
"clippingstyle"))
1842 set_clippingstyle (val);
1843 else if (pname.
compare (
"color"))
1845 else if (pname.
compare (
"colormap"))
1847 else if (pname.
compare (
"colororder"))
1848 set_colororder (val);
1849 else if (pname.
compare (
"colororderindex"))
1850 set_colororderindex (val);
1851 else if (pname.
compare (
"colorscale"))
1852 set_colorscale (val);
1853 else if (pname.
compare (
"currentpoint"))
1854 set_currentpoint (val);
1855 else if (pname.
compare (
"dataaspectratio"))
1856 set_dataaspectratio (val);
1857 else if (pname.
compare (
"dataaspectratiomode"))
1858 set_dataaspectratiomode (val);
1859 else if (pname.
compare (
"fontangle"))
1860 set_fontangle (val);
1861 else if (pname.
compare (
"fontname"))
1863 else if (pname.
compare (
"fontsize"))
1865 else if (pname.
compare (
"fontsizemode"))
1866 set_fontsizemode (val);
1867 else if (pname.
compare (
"fontsmoothing"))
1868 set_fontsmoothing (val);
1869 else if (pname.
compare (
"fontunits"))
1870 set_fontunits (val);
1871 else if (pname.
compare (
"fontweight"))
1872 set_fontweight (val);
1873 else if (pname.
compare (
"gridalpha"))
1874 set_gridalpha (val);
1875 else if (pname.
compare (
"gridalphamode"))
1876 set_gridalphamode (val);
1877 else if (pname.
compare (
"gridcolor"))
1878 set_gridcolor (val);
1879 else if (pname.
compare (
"gridcolormode"))
1880 set_gridcolormode (val);
1881 else if (pname.
compare (
"gridlinestyle"))
1882 set_gridlinestyle (val);
1883 else if (pname.
compare (
"innerposition"))
1884 set_innerposition (val);
1885 else if (pname.
compare (
"labelfontsizemultiplier"))
1886 set_labelfontsizemultiplier (val);
1887 else if (pname.
compare (
"layer"))
1889 else if (pname.
compare (
"linestyleorder"))
1890 set_linestyleorder (val);
1891 else if (pname.
compare (
"linestyleorderindex"))
1892 set_linestyleorderindex (val);
1893 else if (pname.
compare (
"linewidth"))
1894 set_linewidth (val);
1895 else if (pname.
compare (
"minorgridalpha"))
1896 set_minorgridalpha (val);
1897 else if (pname.
compare (
"minorgridalphamode"))
1898 set_minorgridalphamode (val);
1899 else if (pname.
compare (
"minorgridcolor"))
1900 set_minorgridcolor (val);
1901 else if (pname.
compare (
"minorgridcolormode"))
1902 set_minorgridcolormode (val);
1903 else if (pname.
compare (
"minorgridlinestyle"))
1904 set_minorgridlinestyle (val);
1905 else if (pname.
compare (
"nextplot"))
1907 else if (pname.
compare (
"outerposition"))
1908 set_outerposition (val);
1909 else if (pname.
compare (
"plotboxaspectratio"))
1910 set_plotboxaspectratio (val);
1911 else if (pname.
compare (
"plotboxaspectratiomode"))
1912 set_plotboxaspectratiomode (val);
1913 else if (pname.
compare (
"position"))
1915 else if (pname.
compare (
"positionconstraint"))
1916 set_positionconstraint (val);
1917 else if (pname.
compare (
"projection"))
1918 set_projection (val);
1919 else if (pname.
compare (
"sortmethod"))
1920 set_sortmethod (val);
1921 else if (pname.
compare (
"tickdir"))
1923 else if (pname.
compare (
"tickdirmode"))
1924 set_tickdirmode (val);
1925 else if (pname.
compare (
"ticklabelinterpreter"))
1926 set_ticklabelinterpreter (val);
1927 else if (pname.
compare (
"ticklength"))
1928 set_ticklength (val);
1929 else if (pname.
compare (
"title"))
1931 else if (pname.
compare (
"titlefontsizemultiplier"))
1932 set_titlefontsizemultiplier (val);
1933 else if (pname.
compare (
"titlefontweight"))
1934 set_titlefontweight (val);
1935 else if (pname.
compare (
"units"))
1937 else if (pname.
compare (
"view"))
1939 else if (pname.
compare (
"xaxislocation"))
1940 set_xaxislocation (val);
1941 else if (pname.
compare (
"xcolor"))
1943 else if (pname.
compare (
"xcolormode"))
1944 set_xcolormode (val);
1945 else if (pname.
compare (
"xdir"))
1947 else if (pname.
compare (
"xgrid"))
1949 else if (pname.
compare (
"xlabel"))
1951 else if (pname.
compare (
"xlim"))
1953 else if (pname.
compare (
"xlimitmethod"))
1954 set_xlimitmethod (val);
1955 else if (pname.
compare (
"xlimmode"))
1957 else if (pname.
compare (
"xminorgrid"))
1958 set_xminorgrid (val);
1959 else if (pname.
compare (
"xminortick"))
1960 set_xminortick (val);
1961 else if (pname.
compare (
"xscale"))
1963 else if (pname.
compare (
"xtick"))
1965 else if (pname.
compare (
"xticklabel"))
1966 set_xticklabel (val);
1967 else if (pname.
compare (
"xticklabelmode"))
1968 set_xticklabelmode (val);
1969 else if (pname.
compare (
"xticklabelrotation"))
1970 set_xticklabelrotation (val);
1971 else if (pname.
compare (
"xtickmode"))
1972 set_xtickmode (val);
1973 else if (pname.
compare (
"yaxislocation"))
1974 set_yaxislocation (val);
1975 else if (pname.
compare (
"ycolor"))
1977 else if (pname.
compare (
"ycolormode"))
1978 set_ycolormode (val);
1979 else if (pname.
compare (
"ydir"))
1981 else if (pname.
compare (
"ygrid"))
1983 else if (pname.
compare (
"ylabel"))
1985 else if (pname.
compare (
"ylim"))
1987 else if (pname.
compare (
"ylimitmethod"))
1988 set_ylimitmethod (val);
1989 else if (pname.
compare (
"ylimmode"))
1991 else if (pname.
compare (
"yminorgrid"))
1992 set_yminorgrid (val);
1993 else if (pname.
compare (
"yminortick"))
1994 set_yminortick (val);
1995 else if (pname.
compare (
"yscale"))
1997 else if (pname.
compare (
"ytick"))
1999 else if (pname.
compare (
"yticklabel"))
2000 set_yticklabel (val);
2001 else if (pname.
compare (
"yticklabelmode"))
2002 set_yticklabelmode (val);
2003 else if (pname.
compare (
"yticklabelrotation"))
2004 set_yticklabelrotation (val);
2005 else if (pname.
compare (
"ytickmode"))
2006 set_ytickmode (val);
2007 else if (pname.
compare (
"zcolor"))
2009 else if (pname.
compare (
"zcolormode"))
2010 set_zcolormode (val);
2011 else if (pname.
compare (
"zdir"))
2013 else if (pname.
compare (
"zgrid"))
2015 else if (pname.
compare (
"zlabel"))
2017 else if (pname.
compare (
"zlim"))
2019 else if (pname.
compare (
"zlimitmethod"))
2020 set_zlimitmethod (val);
2021 else if (pname.
compare (
"zlimmode"))
2023 else if (pname.
compare (
"zminorgrid"))
2024 set_zminorgrid (val);
2025 else if (pname.
compare (
"zminortick"))
2026 set_zminortick (val);
2027 else if (pname.
compare (
"zscale"))
2029 else if (pname.
compare (
"ztick"))
2031 else if (pname.
compare (
"zticklabel"))
2032 set_zticklabel (val);
2033 else if (pname.
compare (
"zticklabelmode"))
2034 set_zticklabelmode (val);
2035 else if (pname.
compare (
"zticklabelrotation"))
2036 set_zticklabelrotation (val);
2037 else if (pname.
compare (
"ztickmode"))
2038 set_ztickmode (val);
2039 else if (pname.
compare (
"__colormap__"))
2040 set___colormap__ (val);
2041 else if (pname.
compare (
"mousewheelzoom"))
2042 set_mousewheelzoom (val);
2043 else if (pname.
compare (
"__autopos_tag__"))
2044 set___autopos_tag__ (val);
2045 else if (pname.
compare (
"looseinset"))
2046 set_looseinset (val);
2047 else if (pname.
compare (
"xminortickvalues"))
2048 set_xminortickvalues (val);
2049 else if (pname.
compare (
"yminortickvalues"))
2050 set_yminortickvalues (val);
2051 else if (pname.
compare (
"zminortickvalues"))
2052 set_zminortickvalues (val);
2063 m.assign (
"activepositionproperty",
octave_value (get_activepositionproperty ()));
2068 m.assign (
"ambientlightcolor",
octave_value (get_ambientlightcolor ()));
2071 m.assign (
"cameraposition",
octave_value (get_cameraposition ()));
2072 m.assign (
"camerapositionmode",
octave_value (get_camerapositionmode ()));
2073 m.assign (
"cameratarget",
octave_value (get_cameratarget ()));
2074 m.assign (
"cameratargetmode",
octave_value (get_cameratargetmode ()));
2075 m.assign (
"cameraupvector",
octave_value (get_cameraupvector ()));
2076 m.assign (
"cameraupvectormode",
octave_value (get_cameraupvectormode ()));
2077 m.assign (
"cameraviewangle",
octave_value (get_cameraviewangle ()));
2078 m.assign (
"cameraviewanglemode",
octave_value (get_cameraviewanglemode ()));
2081 m.assign (
"clippingstyle",
octave_value (get_clippingstyle ()));
2085 m.assign (
"colororderindex",
octave_value (get_colororderindex ()));
2087 m.assign (
"currentpoint",
octave_value (get_currentpoint ()));
2088 m.assign (
"dataaspectratio",
octave_value (get_dataaspectratio ()));
2089 m.assign (
"dataaspectratiomode",
octave_value (get_dataaspectratiomode ()));
2093 m.assign (
"fontsizemode",
octave_value (get_fontsizemode ()));
2094 m.assign (
"fontsmoothing",
octave_value (get_fontsmoothing ()));
2098 m.assign (
"gridalphamode",
octave_value (get_gridalphamode ()));
2100 m.assign (
"gridcolormode",
octave_value (get_gridcolormode ()));
2101 m.assign (
"gridlinestyle",
octave_value (get_gridlinestyle ()));
2102 m.assign (
"innerposition",
octave_value (get_innerposition ()));
2103 m.assign (
"interactions",
octave_value (get_interactions ()));
2104 m.assign (
"labelfontsizemultiplier",
octave_value (get_labelfontsizemultiplier ()));
2106 m.assign (
"layout",
octave_value (get_layout ().as_octave_value ()));
2107 m.assign (
"legend",
octave_value (get_legend ().as_octave_value ()));
2108 m.assign (
"linestyleorder",
octave_value (get_linestyleorder ()));
2109 m.assign (
"linestyleorderindex",
octave_value (get_linestyleorderindex ()));
2111 m.assign (
"minorgridalpha",
octave_value (get_minorgridalpha ()));
2112 m.assign (
"minorgridalphamode",
octave_value (get_minorgridalphamode ()));
2113 m.assign (
"minorgridcolor",
octave_value (get_minorgridcolor ()));
2114 m.assign (
"minorgridcolormode",
octave_value (get_minorgridcolormode ()));
2115 m.assign (
"minorgridlinestyle",
octave_value (get_minorgridlinestyle ()));
2117 m.assign (
"nextseriesindex",
octave_value (get_nextseriesindex ()));
2118 m.assign (
"outerposition",
octave_value (get_outerposition ()));
2119 m.assign (
"plotboxaspectratio",
octave_value (get_plotboxaspectratio ()));
2120 m.assign (
"plotboxaspectratiomode",
octave_value (get_plotboxaspectratiomode ()));
2122 m.assign (
"positionconstraint",
octave_value (get_positionconstraint ()));
2126 m.assign (
"tickdirmode",
octave_value (get_tickdirmode ()));
2127 m.assign (
"ticklabelinterpreter",
octave_value (get_ticklabelinterpreter ()));
2130 m.assign (
"title",
octave_value (get_title ().as_octave_value ()));
2131 m.assign (
"titlefontsizemultiplier",
octave_value (get_titlefontsizemultiplier ()));
2132 m.assign (
"titlefontweight",
octave_value (get_titlefontweight ()));
2133 m.assign (
"toolbar",
octave_value (get_toolbar ().as_octave_value ()));
2136 m.assign (
"xaxis",
octave_value (get_xaxis ().as_octave_value ()));
2137 m.assign (
"xaxislocation",
octave_value (get_xaxislocation ()));
2142 m.assign (
"xlabel",
octave_value (get_xlabel ().as_octave_value ()));
2144 m.assign (
"xlimitmethod",
octave_value (get_xlimitmethod ()));
2151 m.assign (
"xticklabelmode",
octave_value (get_xticklabelmode ()));
2152 m.assign (
"xticklabelrotation",
octave_value (get_xticklabelrotation ()));
2154 m.assign (
"yaxis",
octave_value (get_yaxis ().as_octave_value ()));
2155 m.assign (
"yaxislocation",
octave_value (get_yaxislocation ()));
2160 m.assign (
"ylabel",
octave_value (get_ylabel ().as_octave_value ()));
2162 m.assign (
"ylimitmethod",
octave_value (get_ylimitmethod ()));
2169 m.assign (
"yticklabelmode",
octave_value (get_yticklabelmode ()));
2170 m.assign (
"yticklabelrotation",
octave_value (get_yticklabelrotation ()));
2172 m.assign (
"zaxis",
octave_value (get_zaxis ().as_octave_value ()));
2177 m.assign (
"zlabel",
octave_value (get_zlabel ().as_octave_value ()));
2179 m.assign (
"zlimitmethod",
octave_value (get_zlimitmethod ()));
2186 m.assign (
"zticklabelmode",
octave_value (get_zticklabelmode ()));
2187 m.assign (
"zticklabelrotation",
octave_value (get_zticklabelrotation ()));
2190 m.assign (
"__colormap__",
octave_value (get___colormap__ ()));
2191 m.assign (
"mousewheelzoom",
octave_value (get_mousewheelzoom ()));
2193 m.assign (
"__autopos_tag__",
octave_value (get___autopos_tag__ ()));
2197 m.assign (
"xminortickvalues",
octave_value (get_xminortickvalues ()));
2199 m.assign (
"yminortickvalues",
octave_value (get_yminortickvalues ()));
2201 m.assign (
"zminortickvalues",
octave_value (get_zminortickvalues ()));
2203 m.assign (
"__fontsize_points__",
octave_value (get___fontsize_points__ ()));
2213 const std::set<std::string>& pnames = all_property_names ();
2215 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
2217 if (pname.
compare (
"activepositionproperty"))
2218 retval = get_activepositionproperty ();
2219 else if (pname.
compare (
"alim"))
2220 retval = get_alim ();
2221 else if (pname.
compare (
"alimmode"))
2222 retval = get_alimmode ();
2223 else if (pname.
compare (
"alphamap"))
2224 retval = get_alphamap ();
2225 else if (pname.
compare (
"alphascale"))
2226 retval = get_alphascale ();
2227 else if (pname.
compare (
"ambientlightcolor"))
2228 retval = get_ambientlightcolor ();
2229 else if (pname.
compare (
"box"))
2230 retval = get_box ();
2231 else if (pname.
compare (
"boxstyle"))
2232 retval = get_boxstyle ();
2233 else if (pname.
compare (
"cameraposition"))
2234 retval = get_cameraposition ();
2235 else if (pname.
compare (
"camerapositionmode"))
2236 retval = get_camerapositionmode ();
2237 else if (pname.
compare (
"cameratarget"))
2238 retval = get_cameratarget ();
2239 else if (pname.
compare (
"cameratargetmode"))
2240 retval = get_cameratargetmode ();
2241 else if (pname.
compare (
"cameraupvector"))
2242 retval = get_cameraupvector ();
2243 else if (pname.
compare (
"cameraupvectormode"))
2244 retval = get_cameraupvectormode ();
2245 else if (pname.
compare (
"cameraviewangle"))
2246 retval = get_cameraviewangle ();
2247 else if (pname.
compare (
"cameraviewanglemode"))
2248 retval = get_cameraviewanglemode ();
2249 else if (pname.
compare (
"clim"))
2250 retval = get_clim ();
2251 else if (pname.
compare (
"climmode"))
2252 retval = get_climmode ();
2253 else if (pname.
compare (
"clippingstyle"))
2254 retval = get_clippingstyle ();
2255 else if (pname.
compare (
"color"))
2256 retval = get_color ();
2257 else if (pname.
compare (
"colormap"))
2258 retval = get_colormap ();
2259 else if (pname.
compare (
"colororder"))
2260 retval = get_colororder ();
2261 else if (pname.
compare (
"colororderindex"))
2262 retval = get_colororderindex ();
2263 else if (pname.
compare (
"colorscale"))
2264 retval = get_colorscale ();
2265 else if (pname.
compare (
"currentpoint"))
2266 retval = get_currentpoint ();
2267 else if (pname.
compare (
"dataaspectratio"))
2268 retval = get_dataaspectratio ();
2269 else if (pname.
compare (
"dataaspectratiomode"))
2270 retval = get_dataaspectratiomode ();
2271 else if (pname.
compare (
"fontangle"))
2272 retval = get_fontangle ();
2273 else if (pname.
compare (
"fontname"))
2274 retval = get_fontname ();
2275 else if (pname.
compare (
"fontsize"))
2276 retval = get_fontsize ();
2277 else if (pname.
compare (
"fontsizemode"))
2278 retval = get_fontsizemode ();
2279 else if (pname.
compare (
"fontsmoothing"))
2280 retval = get_fontsmoothing ();
2281 else if (pname.
compare (
"fontunits"))
2282 retval = get_fontunits ();
2283 else if (pname.
compare (
"fontweight"))
2284 retval = get_fontweight ();
2285 else if (pname.
compare (
"gridalpha"))
2286 retval = get_gridalpha ();
2287 else if (pname.
compare (
"gridalphamode"))
2288 retval = get_gridalphamode ();
2289 else if (pname.
compare (
"gridcolor"))
2290 retval = get_gridcolor ();
2291 else if (pname.
compare (
"gridcolormode"))
2292 retval = get_gridcolormode ();
2293 else if (pname.
compare (
"gridlinestyle"))
2294 retval = get_gridlinestyle ();
2295 else if (pname.
compare (
"innerposition"))
2296 retval = get_innerposition ();
2297 else if (pname.
compare (
"interactions"))
2298 retval = get_interactions ();
2299 else if (pname.
compare (
"labelfontsizemultiplier"))
2300 retval = get_labelfontsizemultiplier ();
2301 else if (pname.
compare (
"layer"))
2302 retval = get_layer ();
2303 else if (pname.
compare (
"layout"))
2304 retval = get_layout ().as_octave_value ();
2305 else if (pname.
compare (
"legend"))
2306 retval = get_legend ().as_octave_value ();
2307 else if (pname.
compare (
"linestyleorder"))
2308 retval = get_linestyleorder ();
2309 else if (pname.
compare (
"linestyleorderindex"))
2310 retval = get_linestyleorderindex ();
2311 else if (pname.
compare (
"linewidth"))
2312 retval = get_linewidth ();
2313 else if (pname.
compare (
"minorgridalpha"))
2314 retval = get_minorgridalpha ();
2315 else if (pname.
compare (
"minorgridalphamode"))
2316 retval = get_minorgridalphamode ();
2317 else if (pname.
compare (
"minorgridcolor"))
2318 retval = get_minorgridcolor ();
2319 else if (pname.
compare (
"minorgridcolormode"))
2320 retval = get_minorgridcolormode ();
2321 else if (pname.
compare (
"minorgridlinestyle"))
2322 retval = get_minorgridlinestyle ();
2323 else if (pname.
compare (
"nextplot"))
2324 retval = get_nextplot ();
2325 else if (pname.
compare (
"nextseriesindex"))
2326 retval = get_nextseriesindex ();
2327 else if (pname.
compare (
"outerposition"))
2328 retval = get_outerposition ();
2329 else if (pname.
compare (
"plotboxaspectratio"))
2330 retval = get_plotboxaspectratio ();
2331 else if (pname.
compare (
"plotboxaspectratiomode"))
2332 retval = get_plotboxaspectratiomode ();
2333 else if (pname.
compare (
"position"))
2334 retval = get_position ();
2335 else if (pname.
compare (
"positionconstraint"))
2336 retval = get_positionconstraint ();
2337 else if (pname.
compare (
"projection"))
2338 retval = get_projection ();
2339 else if (pname.
compare (
"sortmethod"))
2340 retval = get_sortmethod ();
2341 else if (pname.
compare (
"tickdir"))
2342 retval = get_tickdir ();
2343 else if (pname.
compare (
"tickdirmode"))
2344 retval = get_tickdirmode ();
2345 else if (pname.
compare (
"ticklabelinterpreter"))
2346 retval = get_ticklabelinterpreter ();
2347 else if (pname.
compare (
"ticklength"))
2348 retval = get_ticklength ();
2349 else if (pname.
compare (
"tightinset"))
2350 retval = get_tightinset ();
2351 else if (pname.
compare (
"title"))
2352 retval = get_title ().as_octave_value ();
2353 else if (pname.
compare (
"titlefontsizemultiplier"))
2354 retval = get_titlefontsizemultiplier ();
2355 else if (pname.
compare (
"titlefontweight"))
2356 retval = get_titlefontweight ();
2357 else if (pname.
compare (
"toolbar"))
2358 retval = get_toolbar ().as_octave_value ();
2359 else if (pname.
compare (
"units"))
2360 retval = get_units ();
2361 else if (pname.
compare (
"view"))
2362 retval = get_view ();
2363 else if (pname.
compare (
"xaxis"))
2364 retval = get_xaxis ().as_octave_value ();
2365 else if (pname.
compare (
"xaxislocation"))
2366 retval = get_xaxislocation ();
2367 else if (pname.
compare (
"xcolor"))
2368 retval = get_xcolor ();
2369 else if (pname.
compare (
"xcolormode"))
2370 retval = get_xcolormode ();
2371 else if (pname.
compare (
"xdir"))
2372 retval = get_xdir ();
2373 else if (pname.
compare (
"xgrid"))
2374 retval = get_xgrid ();
2375 else if (pname.
compare (
"xlabel"))
2376 retval = get_xlabel ().as_octave_value ();
2377 else if (pname.
compare (
"xlim"))
2378 retval = get_xlim ();
2379 else if (pname.
compare (
"xlimitmethod"))
2380 retval = get_xlimitmethod ();
2381 else if (pname.
compare (
"xlimmode"))
2382 retval = get_xlimmode ();
2383 else if (pname.
compare (
"xminorgrid"))
2384 retval = get_xminorgrid ();
2385 else if (pname.
compare (
"xminortick"))
2386 retval = get_xminortick ();
2387 else if (pname.
compare (
"xscale"))
2388 retval = get_xscale ();
2389 else if (pname.
compare (
"xtick"))
2390 retval = get_xtick ();
2391 else if (pname.
compare (
"xticklabel"))
2392 retval = get_xticklabel ();
2393 else if (pname.
compare (
"xticklabelmode"))
2394 retval = get_xticklabelmode ();
2395 else if (pname.
compare (
"xticklabelrotation"))
2396 retval = get_xticklabelrotation ();
2397 else if (pname.
compare (
"xtickmode"))
2398 retval = get_xtickmode ();
2399 else if (pname.
compare (
"yaxis"))
2400 retval = get_yaxis ().as_octave_value ();
2401 else if (pname.
compare (
"yaxislocation"))
2402 retval = get_yaxislocation ();
2403 else if (pname.
compare (
"ycolor"))
2404 retval = get_ycolor ();
2405 else if (pname.
compare (
"ycolormode"))
2406 retval = get_ycolormode ();
2407 else if (pname.
compare (
"ydir"))
2408 retval = get_ydir ();
2409 else if (pname.
compare (
"ygrid"))
2410 retval = get_ygrid ();
2411 else if (pname.
compare (
"ylabel"))
2412 retval = get_ylabel ().as_octave_value ();
2413 else if (pname.
compare (
"ylim"))
2414 retval = get_ylim ();
2415 else if (pname.
compare (
"ylimitmethod"))
2416 retval = get_ylimitmethod ();
2417 else if (pname.
compare (
"ylimmode"))
2418 retval = get_ylimmode ();
2419 else if (pname.
compare (
"yminorgrid"))
2420 retval = get_yminorgrid ();
2421 else if (pname.
compare (
"yminortick"))
2422 retval = get_yminortick ();
2423 else if (pname.
compare (
"yscale"))
2424 retval = get_yscale ();
2425 else if (pname.
compare (
"ytick"))
2426 retval = get_ytick ();
2427 else if (pname.
compare (
"yticklabel"))
2428 retval = get_yticklabel ();
2429 else if (pname.
compare (
"yticklabelmode"))
2430 retval = get_yticklabelmode ();
2431 else if (pname.
compare (
"yticklabelrotation"))
2432 retval = get_yticklabelrotation ();
2433 else if (pname.
compare (
"ytickmode"))
2434 retval = get_ytickmode ();
2435 else if (pname.
compare (
"zaxis"))
2436 retval = get_zaxis ().as_octave_value ();
2437 else if (pname.
compare (
"zcolor"))
2438 retval = get_zcolor ();
2439 else if (pname.
compare (
"zcolormode"))
2440 retval = get_zcolormode ();
2441 else if (pname.
compare (
"zdir"))
2442 retval = get_zdir ();
2443 else if (pname.
compare (
"zgrid"))
2444 retval = get_zgrid ();
2445 else if (pname.
compare (
"zlabel"))
2446 retval = get_zlabel ().as_octave_value ();
2447 else if (pname.
compare (
"zlim"))
2448 retval = get_zlim ();
2449 else if (pname.
compare (
"zlimitmethod"))
2450 retval = get_zlimitmethod ();
2451 else if (pname.
compare (
"zlimmode"))
2452 retval = get_zlimmode ();
2453 else if (pname.
compare (
"zminorgrid"))
2454 retval = get_zminorgrid ();
2455 else if (pname.
compare (
"zminortick"))
2456 retval = get_zminortick ();
2457 else if (pname.
compare (
"zscale"))
2458 retval = get_zscale ();
2459 else if (pname.
compare (
"ztick"))
2460 retval = get_ztick ();
2461 else if (pname.
compare (
"zticklabel"))
2462 retval = get_zticklabel ();
2463 else if (pname.
compare (
"zticklabelmode"))
2464 retval = get_zticklabelmode ();
2465 else if (pname.
compare (
"zticklabelrotation"))
2466 retval = get_zticklabelrotation ();
2467 else if (pname.
compare (
"ztickmode"))
2468 retval = get_ztickmode ();
2469 else if (pname.
compare (
"__colormap__"))
2470 retval = get___colormap__ ();
2471 else if (pname.
compare (
"mousewheelzoom"))
2472 retval = get_mousewheelzoom ();
2473 else if (pname.
compare (
"__autopos_tag__"))
2474 retval = get___autopos_tag__ ();
2475 else if (pname.
compare (
"looseinset"))
2476 retval = get_looseinset ();
2477 else if (pname.
compare (
"xminortickvalues"))
2478 retval = get_xminortickvalues ();
2479 else if (pname.
compare (
"yminortickvalues"))
2480 retval = get_yminortickvalues ();
2481 else if (pname.
compare (
"zminortickvalues"))
2482 retval = get_zminortickvalues ();
2483 else if (pname.
compare (
"__fontsize_points__"))
2484 retval = get___fontsize_points__ ();
2494 const std::set<std::string>& pnames = all_property_names ();
2496 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
2498 if (pname.
compare (
"activepositionproperty"))
2499 return property (&m_activepositionproperty,
true);
2500 else if (pname.
compare (
"alim"))
2502 else if (pname.
compare (
"alimmode"))
2503 return property (&m_alimmode,
true);
2504 else if (pname.
compare (
"alphamap"))
2505 return property (&m_alphamap,
true);
2506 else if (pname.
compare (
"alphascale"))
2507 return property (&m_alphascale,
true);
2508 else if (pname.
compare (
"ambientlightcolor"))
2509 return property (&m_ambientlightcolor,
true);
2510 else if (pname.
compare (
"box"))
2512 else if (pname.
compare (
"boxstyle"))
2513 return property (&m_boxstyle,
true);
2514 else if (pname.
compare (
"cameraposition"))
2515 return property (&m_cameraposition,
true);
2516 else if (pname.
compare (
"camerapositionmode"))
2517 return property (&m_camerapositionmode,
true);
2518 else if (pname.
compare (
"cameratarget"))
2519 return property (&m_cameratarget,
true);
2520 else if (pname.
compare (
"cameratargetmode"))
2521 return property (&m_cameratargetmode,
true);
2522 else if (pname.
compare (
"cameraupvector"))
2523 return property (&m_cameraupvector,
true);
2524 else if (pname.
compare (
"cameraupvectormode"))
2525 return property (&m_cameraupvectormode,
true);
2526 else if (pname.
compare (
"cameraviewangle"))
2527 return property (&m_cameraviewangle,
true);
2528 else if (pname.
compare (
"cameraviewanglemode"))
2529 return property (&m_cameraviewanglemode,
true);
2530 else if (pname.
compare (
"clim"))
2532 else if (pname.
compare (
"climmode"))
2533 return property (&m_climmode,
true);
2534 else if (pname.
compare (
"clippingstyle"))
2535 return property (&m_clippingstyle,
true);
2536 else if (pname.
compare (
"color"))
2538 else if (pname.
compare (
"colormap"))
2539 return property (&m_colormap,
true);
2540 else if (pname.
compare (
"colororder"))
2541 return property (&m_colororder,
true);
2542 else if (pname.
compare (
"colororderindex"))
2543 return property (&m_colororderindex,
true);
2544 else if (pname.
compare (
"colorscale"))
2545 return property (&m_colorscale,
true);
2546 else if (pname.
compare (
"currentpoint"))
2547 return property (&m_currentpoint,
true);
2548 else if (pname.
compare (
"dataaspectratio"))
2549 return property (&m_dataaspectratio,
true);
2550 else if (pname.
compare (
"dataaspectratiomode"))
2551 return property (&m_dataaspectratiomode,
true);
2552 else if (pname.
compare (
"fontangle"))
2553 return property (&m_fontangle,
true);
2554 else if (pname.
compare (
"fontname"))
2555 return property (&m_fontname,
true);
2556 else if (pname.
compare (
"fontsize"))
2557 return property (&m_fontsize,
true);
2558 else if (pname.
compare (
"fontsizemode"))
2559 return property (&m_fontsizemode,
true);
2560 else if (pname.
compare (
"fontsmoothing"))
2561 return property (&m_fontsmoothing,
true);
2562 else if (pname.
compare (
"fontunits"))
2563 return property (&m_fontunits,
true);
2564 else if (pname.
compare (
"fontweight"))
2565 return property (&m_fontweight,
true);
2566 else if (pname.
compare (
"gridalpha"))
2567 return property (&m_gridalpha,
true);
2568 else if (pname.
compare (
"gridalphamode"))
2569 return property (&m_gridalphamode,
true);
2570 else if (pname.
compare (
"gridcolor"))
2571 return property (&m_gridcolor,
true);
2572 else if (pname.
compare (
"gridcolormode"))
2573 return property (&m_gridcolormode,
true);
2574 else if (pname.
compare (
"gridlinestyle"))
2575 return property (&m_gridlinestyle,
true);
2576 else if (pname.
compare (
"innerposition"))
2577 return property (&m_innerposition,
true);
2578 else if (pname.
compare (
"interactions"))
2579 return property (&m_interactions,
true);
2580 else if (pname.
compare (
"labelfontsizemultiplier"))
2581 return property (&m_labelfontsizemultiplier,
true);
2582 else if (pname.
compare (
"layer"))
2584 else if (pname.
compare (
"layout"))
2586 else if (pname.
compare (
"legend"))
2588 else if (pname.
compare (
"linestyleorder"))
2589 return property (&m_linestyleorder,
true);
2590 else if (pname.
compare (
"linestyleorderindex"))
2591 return property (&m_linestyleorderindex,
true);
2592 else if (pname.
compare (
"linewidth"))
2593 return property (&m_linewidth,
true);
2594 else if (pname.
compare (
"minorgridalpha"))
2595 return property (&m_minorgridalpha,
true);
2596 else if (pname.
compare (
"minorgridalphamode"))
2597 return property (&m_minorgridalphamode,
true);
2598 else if (pname.
compare (
"minorgridcolor"))
2599 return property (&m_minorgridcolor,
true);
2600 else if (pname.
compare (
"minorgridcolormode"))
2601 return property (&m_minorgridcolormode,
true);
2602 else if (pname.
compare (
"minorgridlinestyle"))
2603 return property (&m_minorgridlinestyle,
true);
2604 else if (pname.
compare (
"nextplot"))
2605 return property (&m_nextplot,
true);
2606 else if (pname.
compare (
"nextseriesindex"))
2607 return property (&m_nextseriesindex,
true);
2608 else if (pname.
compare (
"outerposition"))
2609 return property (&m_outerposition,
true);
2610 else if (pname.
compare (
"plotboxaspectratio"))
2611 return property (&m_plotboxaspectratio,
true);
2612 else if (pname.
compare (
"plotboxaspectratiomode"))
2613 return property (&m_plotboxaspectratiomode,
true);
2614 else if (pname.
compare (
"position"))
2615 return property (&m_position,
true);
2616 else if (pname.
compare (
"positionconstraint"))
2617 return property (&m_positionconstraint,
true);
2618 else if (pname.
compare (
"projection"))
2619 return property (&m_projection,
true);
2620 else if (pname.
compare (
"sortmethod"))
2621 return property (&m_sortmethod,
true);
2622 else if (pname.
compare (
"tickdir"))
2623 return property (&m_tickdir,
true);
2624 else if (pname.
compare (
"tickdirmode"))
2625 return property (&m_tickdirmode,
true);
2626 else if (pname.
compare (
"ticklabelinterpreter"))
2627 return property (&m_ticklabelinterpreter,
true);
2628 else if (pname.
compare (
"ticklength"))
2629 return property (&m_ticklength,
true);
2630 else if (pname.
compare (
"tightinset"))
2631 return property (&m_tightinset,
true);
2632 else if (pname.
compare (
"title"))
2634 else if (pname.
compare (
"titlefontsizemultiplier"))
2635 return property (&m_titlefontsizemultiplier,
true);
2636 else if (pname.
compare (
"titlefontweight"))
2637 return property (&m_titlefontweight,
true);
2638 else if (pname.
compare (
"toolbar"))
2639 return property (&m_toolbar,
true);
2640 else if (pname.
compare (
"units"))
2642 else if (pname.
compare (
"view"))
2644 else if (pname.
compare (
"xaxis"))
2646 else if (pname.
compare (
"xaxislocation"))
2647 return property (&m_xaxislocation,
true);
2648 else if (pname.
compare (
"xcolor"))
2650 else if (pname.
compare (
"xcolormode"))
2651 return property (&m_xcolormode,
true);
2652 else if (pname.
compare (
"xdir"))
2654 else if (pname.
compare (
"xgrid"))
2656 else if (pname.
compare (
"xlabel"))
2658 else if (pname.
compare (
"xlim"))
2660 else if (pname.
compare (
"xlimitmethod"))
2661 return property (&m_xlimitmethod,
true);
2662 else if (pname.
compare (
"xlimmode"))
2663 return property (&m_xlimmode,
true);
2664 else if (pname.
compare (
"xminorgrid"))
2665 return property (&m_xminorgrid,
true);
2666 else if (pname.
compare (
"xminortick"))
2667 return property (&m_xminortick,
true);
2668 else if (pname.
compare (
"xscale"))
2670 else if (pname.
compare (
"xtick"))
2672 else if (pname.
compare (
"xticklabel"))
2673 return property (&m_xticklabel,
true);
2674 else if (pname.
compare (
"xticklabelmode"))
2675 return property (&m_xticklabelmode,
true);
2676 else if (pname.
compare (
"xticklabelrotation"))
2677 return property (&m_xticklabelrotation,
true);
2678 else if (pname.
compare (
"xtickmode"))
2679 return property (&m_xtickmode,
true);
2680 else if (pname.
compare (
"yaxis"))
2682 else if (pname.
compare (
"yaxislocation"))
2683 return property (&m_yaxislocation,
true);
2684 else if (pname.
compare (
"ycolor"))
2686 else if (pname.
compare (
"ycolormode"))
2687 return property (&m_ycolormode,
true);
2688 else if (pname.
compare (
"ydir"))
2690 else if (pname.
compare (
"ygrid"))
2692 else if (pname.
compare (
"ylabel"))
2694 else if (pname.
compare (
"ylim"))
2696 else if (pname.
compare (
"ylimitmethod"))
2697 return property (&m_ylimitmethod,
true);
2698 else if (pname.
compare (
"ylimmode"))
2699 return property (&m_ylimmode,
true);
2700 else if (pname.
compare (
"yminorgrid"))
2701 return property (&m_yminorgrid,
true);
2702 else if (pname.
compare (
"yminortick"))
2703 return property (&m_yminortick,
true);
2704 else if (pname.
compare (
"yscale"))
2706 else if (pname.
compare (
"ytick"))
2708 else if (pname.
compare (
"yticklabel"))
2709 return property (&m_yticklabel,
true);
2710 else if (pname.
compare (
"yticklabelmode"))
2711 return property (&m_yticklabelmode,
true);
2712 else if (pname.
compare (
"yticklabelrotation"))
2713 return property (&m_yticklabelrotation,
true);
2714 else if (pname.
compare (
"ytickmode"))
2715 return property (&m_ytickmode,
true);
2716 else if (pname.
compare (
"zaxis"))
2718 else if (pname.
compare (
"zcolor"))
2720 else if (pname.
compare (
"zcolormode"))
2721 return property (&m_zcolormode,
true);
2722 else if (pname.
compare (
"zdir"))
2724 else if (pname.
compare (
"zgrid"))
2726 else if (pname.
compare (
"zlabel"))
2728 else if (pname.
compare (
"zlim"))
2730 else if (pname.
compare (
"zlimitmethod"))
2731 return property (&m_zlimitmethod,
true);
2732 else if (pname.
compare (
"zlimmode"))
2733 return property (&m_zlimmode,
true);
2734 else if (pname.
compare (
"zminorgrid"))
2735 return property (&m_zminorgrid,
true);
2736 else if (pname.
compare (
"zminortick"))
2737 return property (&m_zminortick,
true);
2738 else if (pname.
compare (
"zscale"))
2740 else if (pname.
compare (
"ztick"))
2742 else if (pname.
compare (
"zticklabel"))
2743 return property (&m_zticklabel,
true);
2744 else if (pname.
compare (
"zticklabelmode"))
2745 return property (&m_zticklabelmode,
true);
2746 else if (pname.
compare (
"zticklabelrotation"))
2747 return property (&m_zticklabelrotation,
true);
2748 else if (pname.
compare (
"ztickmode"))
2749 return property (&m_ztickmode,
true);
2750 else if (pname.
compare (
"__colormap__"))
2751 return property (&m___colormap__,
true);
2752 else if (pname.
compare (
"mousewheelzoom"))
2753 return property (&m_mousewheelzoom,
true);
2754 else if (pname.
compare (
"__autopos_tag__"))
2755 return property (&m___autopos_tag__,
true);
2756 else if (pname.
compare (
"looseinset"))
2757 return property (&m_looseinset,
true);
2758 else if (pname.
compare (
"xminortickvalues"))
2759 return property (&m_xminortickvalues,
true);
2760 else if (pname.
compare (
"yminortickvalues"))
2761 return property (&m_yminortickvalues,
true);
2762 else if (pname.
compare (
"zminortickvalues"))
2763 return property (&m_zminortickvalues,
true);
2764 else if (pname.
compare (
"__fontsize_points__"))
2765 return property (&m___fontsize_points__,
true);
2775 m[
"activepositionproperty"] =
"outerposition";
2776 m[
"alim"] = default_lim ();
2777 m[
"alimmode"] =
"auto";
2779 m[
"alphascale"] =
"linear";
2782 m[
"boxstyle"] =
"back";
2783 m[
"cameraposition"] =
Matrix (1, 3, 0.0);
2784 m[
"camerapositionmode"] =
"auto";
2785 m[
"cameratarget"] =
Matrix (1, 3, 0.0);
2786 m[
"cameratargetmode"] =
"auto";
2787 m[
"cameraupvector"] =
Matrix (1, 3, 0.0);
2788 m[
"cameraupvectormode"] =
"auto";
2789 m[
"cameraviewangle"] = 6.6086;
2790 m[
"cameraviewanglemode"] =
"auto";
2791 m[
"clim"] = default_lim ();
2792 m[
"climmode"] =
"auto";
2793 m[
"clippingstyle"] =
"3dbox";
2796 m[
"colororder"] = default_colororder ();
2797 m[
"colororderindex"] = 1.0;
2798 m[
"colorscale"] =
"linear";
2799 m[
"currentpoint"] =
Matrix (2, 3, 0.0);
2800 m[
"dataaspectratio"] =
Matrix (1, 3, 1.0);
2801 m[
"dataaspectratiomode"] =
"auto";
2802 m[
"fontangle"] =
"normal";
2805 m[
"fontsizemode"] =
"auto";
2806 m[
"fontsmoothing"] =
"on";
2807 m[
"fontunits"] =
"points";
2808 m[
"fontweight"] =
"normal";
2809 m[
"gridalpha"] = 0.15;
2810 m[
"gridalphamode"] =
"auto";
2812 m[
"gridcolormode"] =
"auto";
2813 m[
"gridlinestyle"] =
"-";
2814 m[
"innerposition"] = default_axes_position ();
2815 m[
"interactions"] =
Matrix ();
2816 m[
"labelfontsizemultiplier"] = 1.1;
2817 m[
"layer"] =
"bottom";
2820 m[
"linestyleorder"] =
"-";
2821 m[
"linestyleorderindex"] = 1.0;
2822 m[
"linewidth"] = 0.5;
2823 m[
"minorgridalpha"] = 0.25;
2824 m[
"minorgridalphamode"] =
"auto";
2826 m[
"minorgridcolormode"] =
"auto";
2827 m[
"minorgridlinestyle"] =
":";
2828 m[
"nextplot"] =
"replace";
2829 m[
"nextseriesindex"] = 1.0;
2830 m[
"outerposition"] = default_axes_outerposition ();
2831 m[
"plotboxaspectratio"] =
Matrix (1, 3, 1.0);
2832 m[
"plotboxaspectratiomode"] =
"auto";
2833 m[
"position"] = default_axes_position ();
2834 m[
"positionconstraint"] =
"outerposition";
2835 m[
"projection"] =
"orthographic";
2836 m[
"sortmethod"] =
"depth";
2837 m[
"tickdir"] =
"in";
2838 m[
"tickdirmode"] =
"auto";
2839 m[
"ticklabelinterpreter"] =
"tex";
2840 m[
"ticklength"] = default_axes_ticklength ();
2841 m[
"tightinset"] =
Matrix (1, 4, 0.0);
2842 m[
"titlefontsizemultiplier"] = 1.1;
2843 m[
"titlefontweight"] =
"bold";
2845 m[
"units"] =
"normalized";
2846 m[
"view"] = default_axes_view ();
2848 m[
"xaxislocation"] =
"bottom";
2850 m[
"xcolormode"] =
"auto";
2851 m[
"xdir"] =
"normal";
2853 m[
"xlim"] = default_lim ();
2854 m[
"xlimitmethod"] =
"tickaligned";
2855 m[
"xlimmode"] =
"auto";
2856 m[
"xminorgrid"] =
"off";
2857 m[
"xminortick"] =
"off";
2858 m[
"xscale"] =
"linear";
2859 m[
"xtick"] = default_axes_tick ();
2860 m[
"xticklabel"] =
"";
2861 m[
"xticklabelmode"] =
"auto";
2862 m[
"xticklabelrotation"] = 0.0;
2863 m[
"xtickmode"] =
"auto";
2865 m[
"yaxislocation"] =
"left";
2867 m[
"ycolormode"] =
"auto";
2868 m[
"ydir"] =
"normal";
2870 m[
"ylim"] = default_lim ();
2871 m[
"ylimitmethod"] =
"tickaligned";
2872 m[
"ylimmode"] =
"auto";
2873 m[
"yminorgrid"] =
"off";
2874 m[
"yminortick"] =
"off";
2875 m[
"yscale"] =
"linear";
2876 m[
"ytick"] = default_axes_tick ();
2877 m[
"yticklabel"] =
"";
2878 m[
"yticklabelmode"] =
"auto";
2879 m[
"yticklabelrotation"] = 0.0;
2880 m[
"ytickmode"] =
"auto";
2883 m[
"zcolormode"] =
"auto";
2884 m[
"zdir"] =
"normal";
2886 m[
"zlim"] = default_lim ();
2887 m[
"zlimitmethod"] =
"tickaligned";
2888 m[
"zlimmode"] =
"auto";
2889 m[
"zminorgrid"] =
"off";
2890 m[
"zminortick"] =
"off";
2891 m[
"zscale"] =
"linear";
2892 m[
"ztick"] = default_axes_tick ();
2893 m[
"zticklabel"] =
"";
2894 m[
"zticklabelmode"] =
"auto";
2895 m[
"zticklabelrotation"] = 0.0;
2896 m[
"ztickmode"] =
"auto";
2897 m[
"__colormap__"] =
Matrix ();
2898 m[
"mousewheelzoom"] = 0.5;
2899 m[
"__autopos_tag__"] =
"none";
2900 m[
"looseinset"] =
Matrix (1, 4, 0.0);
2901 m[
"xminortickvalues"] =
Matrix ();
2902 m[
"yminortickvalues"] =
Matrix ();
2903 m[
"zminortickvalues"] =
Matrix ();
2904 m[
"__fontsize_points__"] = 0;
2909 std::string axes::properties::s_go_name (
"axes");
2911 std::set<std::string>
2914 static std::set<std::string> all_pnames;
2916 static bool initialized =
false;
2920 all_pnames.insert (
"activepositionproperty");
2921 all_pnames.insert (
"alim");
2922 all_pnames.insert (
"alimmode");
2923 all_pnames.insert (
"alphamap");
2924 all_pnames.insert (
"alphascale");
2925 all_pnames.insert (
"ambientlightcolor");
2926 all_pnames.insert (
"box");
2927 all_pnames.insert (
"boxstyle");
2928 all_pnames.insert (
"cameraposition");
2929 all_pnames.insert (
"camerapositionmode");
2930 all_pnames.insert (
"cameratarget");
2931 all_pnames.insert (
"cameratargetmode");
2932 all_pnames.insert (
"cameraupvector");
2933 all_pnames.insert (
"cameraupvectormode");
2934 all_pnames.insert (
"cameraviewangle");
2935 all_pnames.insert (
"cameraviewanglemode");
2936 all_pnames.insert (
"clim");
2937 all_pnames.insert (
"climmode");
2938 all_pnames.insert (
"clippingstyle");
2939 all_pnames.insert (
"color");
2940 all_pnames.insert (
"colormap");
2941 all_pnames.insert (
"colororder");
2942 all_pnames.insert (
"colororderindex");
2943 all_pnames.insert (
"colorscale");
2944 all_pnames.insert (
"currentpoint");
2945 all_pnames.insert (
"dataaspectratio");
2946 all_pnames.insert (
"dataaspectratiomode");
2947 all_pnames.insert (
"fontangle");
2948 all_pnames.insert (
"fontname");
2949 all_pnames.insert (
"fontsize");
2950 all_pnames.insert (
"fontsizemode");
2951 all_pnames.insert (
"fontsmoothing");
2952 all_pnames.insert (
"fontunits");
2953 all_pnames.insert (
"fontweight");
2954 all_pnames.insert (
"gridalpha");
2955 all_pnames.insert (
"gridalphamode");
2956 all_pnames.insert (
"gridcolor");
2957 all_pnames.insert (
"gridcolormode");
2958 all_pnames.insert (
"gridlinestyle");
2959 all_pnames.insert (
"innerposition");
2960 all_pnames.insert (
"interactions");
2961 all_pnames.insert (
"labelfontsizemultiplier");
2962 all_pnames.insert (
"layer");
2963 all_pnames.insert (
"layout");
2964 all_pnames.insert (
"legend");
2965 all_pnames.insert (
"linestyleorder");
2966 all_pnames.insert (
"linestyleorderindex");
2967 all_pnames.insert (
"linewidth");
2968 all_pnames.insert (
"minorgridalpha");
2969 all_pnames.insert (
"minorgridalphamode");
2970 all_pnames.insert (
"minorgridcolor");
2971 all_pnames.insert (
"minorgridcolormode");
2972 all_pnames.insert (
"minorgridlinestyle");
2973 all_pnames.insert (
"nextplot");
2974 all_pnames.insert (
"nextseriesindex");
2975 all_pnames.insert (
"outerposition");
2976 all_pnames.insert (
"plotboxaspectratio");
2977 all_pnames.insert (
"plotboxaspectratiomode");
2978 all_pnames.insert (
"position");
2979 all_pnames.insert (
"positionconstraint");
2980 all_pnames.insert (
"projection");
2981 all_pnames.insert (
"sortmethod");
2982 all_pnames.insert (
"tickdir");
2983 all_pnames.insert (
"tickdirmode");
2984 all_pnames.insert (
"ticklabelinterpreter");
2985 all_pnames.insert (
"ticklength");
2986 all_pnames.insert (
"tightinset");
2987 all_pnames.insert (
"title");
2988 all_pnames.insert (
"titlefontsizemultiplier");
2989 all_pnames.insert (
"titlefontweight");
2990 all_pnames.insert (
"toolbar");
2991 all_pnames.insert (
"units");
2992 all_pnames.insert (
"view");
2993 all_pnames.insert (
"xaxis");
2994 all_pnames.insert (
"xaxislocation");
2995 all_pnames.insert (
"xcolor");
2996 all_pnames.insert (
"xcolormode");
2997 all_pnames.insert (
"xdir");
2998 all_pnames.insert (
"xgrid");
2999 all_pnames.insert (
"xlabel");
3000 all_pnames.insert (
"xlim");
3001 all_pnames.insert (
"xlimitmethod");
3002 all_pnames.insert (
"xlimmode");
3003 all_pnames.insert (
"xminorgrid");
3004 all_pnames.insert (
"xminortick");
3005 all_pnames.insert (
"xscale");
3006 all_pnames.insert (
"xtick");
3007 all_pnames.insert (
"xticklabel");
3008 all_pnames.insert (
"xticklabelmode");
3009 all_pnames.insert (
"xticklabelrotation");
3010 all_pnames.insert (
"xtickmode");
3011 all_pnames.insert (
"yaxis");
3012 all_pnames.insert (
"yaxislocation");
3013 all_pnames.insert (
"ycolor");
3014 all_pnames.insert (
"ycolormode");
3015 all_pnames.insert (
"ydir");
3016 all_pnames.insert (
"ygrid");
3017 all_pnames.insert (
"ylabel");
3018 all_pnames.insert (
"ylim");
3019 all_pnames.insert (
"ylimitmethod");
3020 all_pnames.insert (
"ylimmode");
3021 all_pnames.insert (
"yminorgrid");
3022 all_pnames.insert (
"yminortick");
3023 all_pnames.insert (
"yscale");
3024 all_pnames.insert (
"ytick");
3025 all_pnames.insert (
"yticklabel");
3026 all_pnames.insert (
"yticklabelmode");
3027 all_pnames.insert (
"yticklabelrotation");
3028 all_pnames.insert (
"ytickmode");
3029 all_pnames.insert (
"zaxis");
3030 all_pnames.insert (
"zcolor");
3031 all_pnames.insert (
"zcolormode");
3032 all_pnames.insert (
"zdir");
3033 all_pnames.insert (
"zgrid");
3034 all_pnames.insert (
"zlabel");
3035 all_pnames.insert (
"zlim");
3036 all_pnames.insert (
"zlimitmethod");
3037 all_pnames.insert (
"zlimmode");
3038 all_pnames.insert (
"zminorgrid");
3039 all_pnames.insert (
"zminortick");
3040 all_pnames.insert (
"zscale");
3041 all_pnames.insert (
"ztick");
3042 all_pnames.insert (
"zticklabel");
3043 all_pnames.insert (
"zticklabelmode");
3044 all_pnames.insert (
"zticklabelrotation");
3045 all_pnames.insert (
"ztickmode");
3046 all_pnames.insert (
"__colormap__");
3047 all_pnames.insert (
"mousewheelzoom");
3048 all_pnames.insert (
"__autopos_tag__");
3049 all_pnames.insert (
"looseinset");
3050 all_pnames.insert (
"xminortickvalues");
3051 all_pnames.insert (
"yminortickvalues");
3052 all_pnames.insert (
"zminortickvalues");
3053 all_pnames.insert (
"__fontsize_points__");
3056 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
3067 std::set<std::string> pnames = core_property_names ();
3069 return pnames.find (pname) != pnames.end ();
3072 std::set<std::string>
3075 static std::set<std::string> all_pnames;
3077 static bool initialized =
false;
3081 all_pnames.insert (
"interactions");
3082 all_pnames.insert (
"layout");
3083 all_pnames.insert (
"legend");
3084 all_pnames.insert (
"nextseriesindex");
3085 all_pnames.insert (
"tightinset");
3086 all_pnames.insert (
"toolbar");
3087 all_pnames.insert (
"xaxis");
3088 all_pnames.insert (
"yaxis");
3089 all_pnames.insert (
"zaxis");
3090 all_pnames.insert (
"__fontsize_points__");
3093 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
3104 std::set<std::string> pnames = readonly_property_names ();
3106 return pnames.find (pname) != pnames.end ();
3109 std::set<std::string>
3112 static std::set<std::string> all_pnames = core_property_names ();
3114 std::set<std::string> retval = all_pnames;
3116 retval.insert (base_props.begin (), base_props.end ());
3124 std::set<std::string> pnames = all_property_names ();
3126 return pnames.find (pname) != pnames.end ();
3134 m_displayname (
"displayname", mh,
""),
3135 m_linejoin (
"linejoin", mh,
"{round}|miter|chamfer"),
3136 m_linestyle (
"linestyle", mh,
"{-}|--|:|-.|none"),
3137 m_linewidth (
"linewidth", mh, 0.5),
3138 m_marker (
"marker", mh,
"{none}|+|o|*|.|x|||_|s|square|d|diamond|^|v|>|<|p|pentagram|h|hexagram"),
3141 m_markersize (
"markersize", mh, 6),
3142 m_xdata (
"xdata", mh, default_data ()),
3143 m_xdatasource (
"xdatasource", mh,
""),
3144 m_ydata (
"ydata", mh, default_data ()),
3145 m_ydatasource (
"ydatasource", mh,
""),
3146 m_zdata (
"zdata", mh,
Matrix ()),
3147 m_zdatasource (
"zdatasource", mh,
""),
3148 m_xlim (
"xlim", mh, default_data_lim ()),
3149 m_ylim (
"ylim", mh, default_data_lim ()),
3150 m_zlim (
"zlim", mh,
Matrix ()),
3151 m_xliminclude (
"xliminclude", mh,
"on"),
3152 m_yliminclude (
"yliminclude", mh,
"on"),
3153 m_zliminclude (
"zliminclude", mh,
"on")
3188 const std::set<std::string>& pnames = all_property_names ();
3190 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
3194 error (
"set: \"%s\" is read-only", pname.c_str ());
3200 else if (pname.
compare (
"displayname"))
3201 set_displayname (val);
3202 else if (pname.
compare (
"linejoin"))
3204 else if (pname.
compare (
"linestyle"))
3205 set_linestyle (val);
3206 else if (pname.
compare (
"linewidth"))
3207 set_linewidth (val);
3208 else if (pname.
compare (
"marker"))
3210 else if (pname.
compare (
"markeredgecolor"))
3211 set_markeredgecolor (val);
3212 else if (pname.
compare (
"markerfacecolor"))
3213 set_markerfacecolor (val);
3214 else if (pname.
compare (
"markersize"))
3215 set_markersize (val);
3216 else if (pname.
compare (
"xdata"))
3218 else if (pname.
compare (
"xdatasource"))
3219 set_xdatasource (val);
3220 else if (pname.
compare (
"ydata"))
3222 else if (pname.
compare (
"ydatasource"))
3223 set_ydatasource (val);
3224 else if (pname.
compare (
"zdata"))
3226 else if (pname.
compare (
"zdatasource"))
3227 set_zdatasource (val);
3228 else if (pname.
compare (
"xliminclude"))
3229 set_xliminclude (val);
3230 else if (pname.
compare (
"yliminclude"))
3231 set_yliminclude (val);
3232 else if (pname.
compare (
"zliminclude"))
3233 set_zliminclude (val);
3244 m.assign (
"displayname",
octave_value (get_displayname ()));
3249 m.assign (
"markeredgecolor",
octave_value (get_markeredgecolor ()));
3250 m.assign (
"markerfacecolor",
octave_value (get_markerfacecolor ()));
3253 m.assign (
"xdatasource",
octave_value (get_xdatasource ()));
3255 m.assign (
"ydatasource",
octave_value (get_ydatasource ()));
3257 m.assign (
"zdatasource",
octave_value (get_zdatasource ()));
3265 m.assign (
"xliminclude",
octave_value (get_xliminclude ()));
3267 m.assign (
"yliminclude",
octave_value (get_yliminclude ()));
3269 m.assign (
"zliminclude",
octave_value (get_zliminclude ()));
3279 const std::set<std::string>& pnames = all_property_names ();
3281 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
3284 retval = get_color ();
3285 else if (pname.
compare (
"displayname"))
3286 retval = get_displayname ();
3287 else if (pname.
compare (
"linejoin"))
3288 retval = get_linejoin ();
3289 else if (pname.
compare (
"linestyle"))
3290 retval = get_linestyle ();
3291 else if (pname.
compare (
"linewidth"))
3292 retval = get_linewidth ();
3293 else if (pname.
compare (
"marker"))
3294 retval = get_marker ();
3295 else if (pname.
compare (
"markeredgecolor"))
3296 retval = get_markeredgecolor ();
3297 else if (pname.
compare (
"markerfacecolor"))
3298 retval = get_markerfacecolor ();
3299 else if (pname.
compare (
"markersize"))
3300 retval = get_markersize ();
3301 else if (pname.
compare (
"xdata"))
3302 retval = get_xdata ();
3303 else if (pname.
compare (
"xdatasource"))
3304 retval = get_xdatasource ();
3305 else if (pname.
compare (
"ydata"))
3306 retval = get_ydata ();
3307 else if (pname.
compare (
"ydatasource"))
3308 retval = get_ydatasource ();
3309 else if (pname.
compare (
"zdata"))
3310 retval = get_zdata ();
3311 else if (pname.
compare (
"zdatasource"))
3312 retval = get_zdatasource ();
3313 else if (pname.
compare (
"xlim"))
3314 retval = get_xlim ();
3315 else if (pname.
compare (
"ylim"))
3316 retval = get_ylim ();
3317 else if (pname.
compare (
"zlim"))
3318 retval = get_zlim ();
3319 else if (pname.
compare (
"xliminclude"))
3320 retval = get_xliminclude ();
3321 else if (pname.
compare (
"yliminclude"))
3322 retval = get_yliminclude ();
3323 else if (pname.
compare (
"zliminclude"))
3324 retval = get_zliminclude ();
3334 const std::set<std::string>& pnames = all_property_names ();
3336 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
3340 else if (pname.
compare (
"displayname"))
3341 return property (&m_displayname,
true);
3342 else if (pname.
compare (
"linejoin"))
3343 return property (&m_linejoin,
true);
3344 else if (pname.
compare (
"linestyle"))
3345 return property (&m_linestyle,
true);
3346 else if (pname.
compare (
"linewidth"))
3347 return property (&m_linewidth,
true);
3348 else if (pname.
compare (
"marker"))
3350 else if (pname.
compare (
"markeredgecolor"))
3351 return property (&m_markeredgecolor,
true);
3352 else if (pname.
compare (
"markerfacecolor"))
3353 return property (&m_markerfacecolor,
true);
3354 else if (pname.
compare (
"markersize"))
3355 return property (&m_markersize,
true);
3356 else if (pname.
compare (
"xdata"))
3358 else if (pname.
compare (
"xdatasource"))
3359 return property (&m_xdatasource,
true);
3360 else if (pname.
compare (
"ydata"))
3362 else if (pname.
compare (
"ydatasource"))
3363 return property (&m_ydatasource,
true);
3364 else if (pname.
compare (
"zdata"))
3366 else if (pname.
compare (
"zdatasource"))
3367 return property (&m_zdatasource,
true);
3368 else if (pname.
compare (
"xlim"))
3370 else if (pname.
compare (
"ylim"))
3372 else if (pname.
compare (
"zlim"))
3374 else if (pname.
compare (
"xliminclude"))
3375 return property (&m_xliminclude,
true);
3376 else if (pname.
compare (
"yliminclude"))
3377 return property (&m_yliminclude,
true);
3378 else if (pname.
compare (
"zliminclude"))
3379 return property (&m_zliminclude,
true);
3390 m[
"displayname"] =
"";
3391 m[
"linejoin"] =
"round";
3392 m[
"linestyle"] =
"-";
3393 m[
"linewidth"] = 0.5;
3394 m[
"marker"] =
"none";
3397 m[
"markersize"] = 6;
3398 m[
"xdata"] = default_data ();
3399 m[
"xdatasource"] =
"";
3400 m[
"ydata"] = default_data ();
3401 m[
"ydatasource"] =
"";
3403 m[
"zdatasource"] =
"";
3404 m[
"xlim"] = default_data_lim ();
3405 m[
"ylim"] = default_data_lim ();
3407 m[
"xliminclude"] =
"on";
3408 m[
"yliminclude"] =
"on";
3409 m[
"zliminclude"] =
"on";
3414 std::string line::properties::s_go_name (
"line");
3416 std::set<std::string>
3419 static std::set<std::string> all_pnames;
3421 static bool initialized =
false;
3425 all_pnames.insert (
"color");
3426 all_pnames.insert (
"displayname");
3427 all_pnames.insert (
"linejoin");
3428 all_pnames.insert (
"linestyle");
3429 all_pnames.insert (
"linewidth");
3430 all_pnames.insert (
"marker");
3431 all_pnames.insert (
"markeredgecolor");
3432 all_pnames.insert (
"markerfacecolor");
3433 all_pnames.insert (
"markersize");
3434 all_pnames.insert (
"xdata");
3435 all_pnames.insert (
"xdatasource");
3436 all_pnames.insert (
"ydata");
3437 all_pnames.insert (
"ydatasource");
3438 all_pnames.insert (
"zdata");
3439 all_pnames.insert (
"zdatasource");
3440 all_pnames.insert (
"xlim");
3441 all_pnames.insert (
"ylim");
3442 all_pnames.insert (
"zlim");
3443 all_pnames.insert (
"xliminclude");
3444 all_pnames.insert (
"yliminclude");
3445 all_pnames.insert (
"zliminclude");
3448 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
3459 std::set<std::string> pnames = core_property_names ();
3461 return pnames.find (pname) != pnames.end ();
3464 std::set<std::string>
3467 static std::set<std::string> all_pnames;
3469 static bool initialized =
false;
3473 all_pnames.insert (
"xlim");
3474 all_pnames.insert (
"ylim");
3475 all_pnames.insert (
"zlim");
3478 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
3489 std::set<std::string> pnames = readonly_property_names ();
3491 return pnames.find (pname) != pnames.end ();
3494 std::set<std::string>
3497 static std::set<std::string> all_pnames = core_property_names ();
3499 std::set<std::string> retval = all_pnames;
3501 retval.insert (base_props.begin (), base_props.end ());
3509 std::set<std::string> pnames = all_property_names ();
3511 return pnames.find (pname) != pnames.end ();
3521 m_editing (
"editing", mh,
"off"),
3522 m_extent (
"extent", mh,
Matrix (1, 4, 0.0)),
3523 m_fontangle (
"fontangle", mh,
"{normal}|italic"),
3525 m_fontsize (
"fontsize", mh, 10),
3526 m_fontsmoothing (
"fontsmoothing", mh,
"on"),
3527 m_fontunits (
"fontunits", mh,
"inches|centimeters|normalized|{points}|pixels"),
3528 m_fontweight (
"fontweight", mh,
"{normal}|bold"),
3529 m_horizontalalignment (
"horizontalalignment", mh,
"{left}|center|right"),
3530 m_interpreter (
"interpreter", mh,
"{tex}|none|latex"),
3531 m_linestyle (
"linestyle", mh,
"{-}|--|:|-.|none"),
3532 m_linewidth (
"linewidth", mh, 0.5),
3533 m_margin (
"margin", mh, 3),
3534 m_position (
"position", mh,
Matrix (1, 3, 0.0)),
3535 m_rotation (
"rotation", mh, 0),
3536 m_string (
"string", mh,
""),
3537 m_units (
"units", mh,
"{data}|pixels|normalized|inches|centimeters|points"),
3538 m_verticalalignment (
"verticalalignment", mh,
"top|cap|{middle}|baseline|bottom"),
3539 m_xlim (
"xlim", mh,
Matrix ()),
3540 m_ylim (
"ylim", mh,
Matrix ()),
3541 m_zlim (
"zlim", mh,
Matrix ()),
3542 m_xliminclude (
"xliminclude", mh,
"off"),
3543 m_yliminclude (
"yliminclude", mh,
"off"),
3544 m_zliminclude (
"zliminclude", mh,
"off"),
3545 m_positionmode (
"positionmode", mh,
"{auto}|manual"),
3546 m_rotationmode (
"rotationmode", mh,
"{auto}|manual"),
3547 m_horizontalalignmentmode (
"horizontalalignmentmode", mh,
"{auto}|manual"),
3548 m_verticalalignmentmode (
"verticalalignmentmode", mh,
"{auto}|manual"),
3549 m___autopos_tag__ (
"__autopos_tag__", mh,
"{none}|xlabel|ylabel|zlabel|title"),
3550 m___fontsize_points__ (
"__fontsize_points__", mh, 0)
3603 const std::set<std::string>& pnames = all_property_names ();
3605 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
3609 error (
"set: \"%s\" is read-only", pname.c_str ());
3613 if (pname.
compare (
"backgroundcolor"))
3614 set_backgroundcolor (val);
3615 else if (pname.
compare (
"color"))
3617 else if (pname.
compare (
"edgecolor"))
3618 set_edgecolor (val);
3619 else if (pname.
compare (
"editing"))
3621 else if (pname.
compare (
"fontangle"))
3622 set_fontangle (val);
3623 else if (pname.
compare (
"fontname"))
3625 else if (pname.
compare (
"fontsize"))
3627 else if (pname.
compare (
"fontsmoothing"))
3628 set_fontsmoothing (val);
3629 else if (pname.
compare (
"fontunits"))
3630 set_fontunits (val);
3631 else if (pname.
compare (
"fontweight"))
3632 set_fontweight (val);
3633 else if (pname.
compare (
"horizontalalignment"))
3634 set_horizontalalignment (val);
3635 else if (pname.
compare (
"interpreter"))
3636 set_interpreter (val);
3637 else if (pname.
compare (
"linestyle"))
3638 set_linestyle (val);
3639 else if (pname.
compare (
"linewidth"))
3640 set_linewidth (val);
3641 else if (pname.
compare (
"margin"))
3643 else if (pname.
compare (
"position"))
3645 else if (pname.
compare (
"rotation"))
3647 else if (pname.
compare (
"string"))
3649 else if (pname.
compare (
"units"))
3651 else if (pname.
compare (
"verticalalignment"))
3652 set_verticalalignment (val);
3653 else if (pname.
compare (
"xliminclude"))
3654 set_xliminclude (val);
3655 else if (pname.
compare (
"yliminclude"))
3656 set_yliminclude (val);
3657 else if (pname.
compare (
"zliminclude"))
3658 set_zliminclude (val);
3659 else if (pname.
compare (
"positionmode"))
3660 set_positionmode (val);
3661 else if (pname.
compare (
"rotationmode"))
3662 set_rotationmode (val);
3663 else if (pname.
compare (
"horizontalalignmentmode"))
3664 set_horizontalalignmentmode (val);
3665 else if (pname.
compare (
"verticalalignmentmode"))
3666 set_verticalalignmentmode (val);
3667 else if (pname.
compare (
"__autopos_tag__"))
3668 set___autopos_tag__ (val);
3678 m.assign (
"backgroundcolor",
octave_value (get_backgroundcolor ()));
3686 m.assign (
"fontsmoothing",
octave_value (get_fontsmoothing ()));
3689 m.assign (
"horizontalalignment",
octave_value (get_horizontalalignment ()));
3690 m.assign (
"interpreter",
octave_value (get_interpreter ()));
3698 m.assign (
"verticalalignment",
octave_value (get_verticalalignment ()));
3706 m.assign (
"xliminclude",
octave_value (get_xliminclude ()));
3708 m.assign (
"yliminclude",
octave_value (get_yliminclude ()));
3710 m.assign (
"zliminclude",
octave_value (get_zliminclude ()));
3712 m.assign (
"positionmode",
octave_value (get_positionmode ()));
3714 m.assign (
"rotationmode",
octave_value (get_rotationmode ()));
3716 m.assign (
"horizontalalignmentmode",
octave_value (get_horizontalalignmentmode ()));
3718 m.assign (
"verticalalignmentmode",
octave_value (get_verticalalignmentmode ()));
3720 m.assign (
"__autopos_tag__",
octave_value (get___autopos_tag__ ()));
3722 m.assign (
"__fontsize_points__",
octave_value (get___fontsize_points__ ()));
3732 const std::set<std::string>& pnames = all_property_names ();
3734 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
3736 if (pname.
compare (
"backgroundcolor"))
3737 retval = get_backgroundcolor ();
3738 else if (pname.
compare (
"color"))
3739 retval = get_color ();
3740 else if (pname.
compare (
"edgecolor"))
3741 retval = get_edgecolor ();
3742 else if (pname.
compare (
"editing"))
3743 retval = get_editing ();
3744 else if (pname.
compare (
"extent"))
3745 retval = get_extent ();
3746 else if (pname.
compare (
"fontangle"))
3747 retval = get_fontangle ();
3748 else if (pname.
compare (
"fontname"))
3749 retval = get_fontname ();
3750 else if (pname.
compare (
"fontsize"))
3751 retval = get_fontsize ();
3752 else if (pname.
compare (
"fontsmoothing"))
3753 retval = get_fontsmoothing ();
3754 else if (pname.
compare (
"fontunits"))
3755 retval = get_fontunits ();
3756 else if (pname.
compare (
"fontweight"))
3757 retval = get_fontweight ();
3758 else if (pname.
compare (
"horizontalalignment"))
3759 retval = get_horizontalalignment ();
3760 else if (pname.
compare (
"interpreter"))
3761 retval = get_interpreter ();
3762 else if (pname.
compare (
"linestyle"))
3763 retval = get_linestyle ();
3764 else if (pname.
compare (
"linewidth"))
3765 retval = get_linewidth ();
3766 else if (pname.
compare (
"margin"))
3767 retval = get_margin ();
3768 else if (pname.
compare (
"position"))
3769 retval = get_position ();
3770 else if (pname.
compare (
"rotation"))
3771 retval = get_rotation ();
3772 else if (pname.
compare (
"string"))
3773 retval = get_string ();
3774 else if (pname.
compare (
"units"))
3775 retval = get_units ();
3776 else if (pname.
compare (
"verticalalignment"))
3777 retval = get_verticalalignment ();
3778 else if (pname.
compare (
"xlim"))
3779 retval = get_xlim ();
3780 else if (pname.
compare (
"ylim"))
3781 retval = get_ylim ();
3782 else if (pname.
compare (
"zlim"))
3783 retval = get_zlim ();
3784 else if (pname.
compare (
"xliminclude"))
3785 retval = get_xliminclude ();
3786 else if (pname.
compare (
"yliminclude"))
3787 retval = get_yliminclude ();
3788 else if (pname.
compare (
"zliminclude"))
3789 retval = get_zliminclude ();
3790 else if (pname.
compare (
"positionmode"))
3791 retval = get_positionmode ();
3792 else if (pname.
compare (
"rotationmode"))
3793 retval = get_rotationmode ();
3794 else if (pname.
compare (
"horizontalalignmentmode"))
3795 retval = get_horizontalalignmentmode ();
3796 else if (pname.
compare (
"verticalalignmentmode"))
3797 retval = get_verticalalignmentmode ();
3798 else if (pname.
compare (
"__autopos_tag__"))
3799 retval = get___autopos_tag__ ();
3800 else if (pname.
compare (
"__fontsize_points__"))
3801 retval = get___fontsize_points__ ();
3811 const std::set<std::string>& pnames = all_property_names ();
3813 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
3815 if (pname.
compare (
"backgroundcolor"))
3816 return property (&m_backgroundcolor,
true);
3817 else if (pname.
compare (
"color"))
3819 else if (pname.
compare (
"edgecolor"))
3820 return property (&m_edgecolor,
true);
3821 else if (pname.
compare (
"editing"))
3822 return property (&m_editing,
true);
3823 else if (pname.
compare (
"extent"))
3825 else if (pname.
compare (
"fontangle"))
3826 return property (&m_fontangle,
true);
3827 else if (pname.
compare (
"fontname"))
3828 return property (&m_fontname,
true);
3829 else if (pname.
compare (
"fontsize"))
3830 return property (&m_fontsize,
true);
3831 else if (pname.
compare (
"fontsmoothing"))
3832 return property (&m_fontsmoothing,
true);
3833 else if (pname.
compare (
"fontunits"))
3834 return property (&m_fontunits,
true);
3835 else if (pname.
compare (
"fontweight"))
3836 return property (&m_fontweight,
true);
3837 else if (pname.
compare (
"horizontalalignment"))
3838 return property (&m_horizontalalignment,
true);
3839 else if (pname.
compare (
"interpreter"))
3840 return property (&m_interpreter,
true);
3841 else if (pname.
compare (
"linestyle"))
3842 return property (&m_linestyle,
true);
3843 else if (pname.
compare (
"linewidth"))
3844 return property (&m_linewidth,
true);
3845 else if (pname.
compare (
"margin"))
3847 else if (pname.
compare (
"position"))
3848 return property (&m_position,
true);
3849 else if (pname.
compare (
"rotation"))
3850 return property (&m_rotation,
true);
3851 else if (pname.
compare (
"string"))
3853 else if (pname.
compare (
"units"))
3855 else if (pname.
compare (
"verticalalignment"))
3856 return property (&m_verticalalignment,
true);
3857 else if (pname.
compare (
"xlim"))
3859 else if (pname.
compare (
"ylim"))
3861 else if (pname.
compare (
"zlim"))
3863 else if (pname.
compare (
"xliminclude"))
3864 return property (&m_xliminclude,
true);
3865 else if (pname.
compare (
"yliminclude"))
3866 return property (&m_yliminclude,
true);
3867 else if (pname.
compare (
"zliminclude"))
3868 return property (&m_zliminclude,
true);
3869 else if (pname.
compare (
"positionmode"))
3870 return property (&m_positionmode,
true);
3871 else if (pname.
compare (
"rotationmode"))
3872 return property (&m_rotationmode,
true);
3873 else if (pname.
compare (
"horizontalalignmentmode"))
3874 return property (&m_horizontalalignmentmode,
true);
3875 else if (pname.
compare (
"verticalalignmentmode"))
3876 return property (&m_verticalalignmentmode,
true);
3877 else if (pname.
compare (
"__autopos_tag__"))
3878 return property (&m___autopos_tag__,
true);
3879 else if (pname.
compare (
"__fontsize_points__"))
3880 return property (&m___fontsize_points__,
true);
3893 m[
"editing"] =
"off";
3894 m[
"extent"] =
Matrix (1, 4, 0.0);
3895 m[
"fontangle"] =
"normal";
3898 m[
"fontsmoothing"] =
"on";
3899 m[
"fontunits"] =
"points";
3900 m[
"fontweight"] =
"normal";
3901 m[
"horizontalalignment"] =
"left";
3902 m[
"interpreter"] =
"tex";
3903 m[
"linestyle"] =
"-";
3904 m[
"linewidth"] = 0.5;
3906 m[
"position"] =
Matrix (1, 3, 0.0);
3909 m[
"units"] =
"data";
3910 m[
"verticalalignment"] =
"middle";
3914 m[
"xliminclude"] =
"off";
3915 m[
"yliminclude"] =
"off";
3916 m[
"zliminclude"] =
"off";
3917 m[
"positionmode"] =
"auto";
3918 m[
"rotationmode"] =
"auto";
3919 m[
"horizontalalignmentmode"] =
"auto";
3920 m[
"verticalalignmentmode"] =
"auto";
3921 m[
"__autopos_tag__"] =
"none";
3922 m[
"__fontsize_points__"] = 0;
3927 std::string text::properties::s_go_name (
"text");
3929 std::set<std::string>
3932 static std::set<std::string> all_pnames;
3934 static bool initialized =
false;
3938 all_pnames.insert (
"backgroundcolor");
3939 all_pnames.insert (
"color");
3940 all_pnames.insert (
"edgecolor");
3941 all_pnames.insert (
"editing");
3942 all_pnames.insert (
"extent");
3943 all_pnames.insert (
"fontangle");
3944 all_pnames.insert (
"fontname");
3945 all_pnames.insert (
"fontsize");
3946 all_pnames.insert (
"fontsmoothing");
3947 all_pnames.insert (
"fontunits");
3948 all_pnames.insert (
"fontweight");
3949 all_pnames.insert (
"horizontalalignment");
3950 all_pnames.insert (
"interpreter");
3951 all_pnames.insert (
"linestyle");
3952 all_pnames.insert (
"linewidth");
3953 all_pnames.insert (
"margin");
3954 all_pnames.insert (
"position");
3955 all_pnames.insert (
"rotation");
3956 all_pnames.insert (
"string");
3957 all_pnames.insert (
"units");
3958 all_pnames.insert (
"verticalalignment");
3959 all_pnames.insert (
"xlim");
3960 all_pnames.insert (
"ylim");
3961 all_pnames.insert (
"zlim");
3962 all_pnames.insert (
"xliminclude");
3963 all_pnames.insert (
"yliminclude");
3964 all_pnames.insert (
"zliminclude");
3965 all_pnames.insert (
"positionmode");
3966 all_pnames.insert (
"rotationmode");
3967 all_pnames.insert (
"horizontalalignmentmode");
3968 all_pnames.insert (
"verticalalignmentmode");
3969 all_pnames.insert (
"__autopos_tag__");
3970 all_pnames.insert (
"__fontsize_points__");
3973 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
3984 std::set<std::string> pnames = core_property_names ();
3986 return pnames.find (pname) != pnames.end ();
3989 std::set<std::string>
3992 static std::set<std::string> all_pnames;
3994 static bool initialized =
false;
3998 all_pnames.insert (
"extent");
3999 all_pnames.insert (
"xlim");
4000 all_pnames.insert (
"ylim");
4001 all_pnames.insert (
"zlim");
4002 all_pnames.insert (
"__fontsize_points__");
4005 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
4016 std::set<std::string> pnames = readonly_property_names ();
4018 return pnames.find (pname) != pnames.end ();
4021 std::set<std::string>
4024 static std::set<std::string> all_pnames = core_property_names ();
4026 std::set<std::string> retval = all_pnames;
4028 retval.insert (base_props.begin (), base_props.end ());
4036 std::set<std::string> pnames = all_property_names ();
4038 return pnames.find (pname) != pnames.end ();
4045 m_alphadata (
"alphadata", mh,
Matrix (1, 1, 1.0)),
4046 m_alphadatamapping (
"alphadatamapping", mh,
"{none}|direct|scaled"),
4047 m_cdata (
"cdata", mh, default_image_cdata ()),
4048 m_cdatamapping (
"cdatamapping", mh,
"scaled|{direct}"),
4049 m_xdata (
"xdata", mh,
Matrix ()),
4050 m_ydata (
"ydata", mh,
Matrix ()),
4051 m_alim (
"alim", mh,
Matrix ()),
4052 m_clim (
"clim", mh,
Matrix ()),
4053 m_xlim (
"xlim", mh,
Matrix ()),
4054 m_ylim (
"ylim", mh,
Matrix ()),
4055 m_aliminclude (
"aliminclude", mh,
"on"),
4056 m_climinclude (
"climinclude", mh,
"on"),
4057 m_xliminclude (
"xliminclude", mh,
"on"),
4058 m_yliminclude (
"yliminclude", mh,
"on"),
4059 m_xdatamode (
"xdatamode", mh,
"{auto}|manual"),
4060 m_ydatamode (
"ydatamode", mh,
"{auto}|manual")
4094 const std::set<std::string>& pnames = all_property_names ();
4096 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
4100 error (
"set: \"%s\" is read-only", pname.c_str ());
4104 if (pname.
compare (
"alphadata"))
4105 set_alphadata (val);
4106 else if (pname.
compare (
"alphadatamapping"))
4107 set_alphadatamapping (val);
4108 else if (pname.
compare (
"cdata"))
4110 else if (pname.
compare (
"cdatamapping"))
4111 set_cdatamapping (val);
4112 else if (pname.
compare (
"xdata"))
4114 else if (pname.
compare (
"ydata"))
4116 else if (pname.
compare (
"aliminclude"))
4117 set_aliminclude (val);
4118 else if (pname.
compare (
"climinclude"))
4119 set_climinclude (val);
4120 else if (pname.
compare (
"xliminclude"))
4121 set_xliminclude (val);
4122 else if (pname.
compare (
"yliminclude"))
4123 set_yliminclude (val);
4124 else if (pname.
compare (
"xdatamode"))
4125 set_xdatamode (val);
4126 else if (pname.
compare (
"ydatamode"))
4127 set_ydatamode (val);
4138 m.assign (
"alphadatamapping",
octave_value (get_alphadatamapping ()));
4140 m.assign (
"cdatamapping",
octave_value (get_cdatamapping ()));
4152 m.assign (
"aliminclude",
octave_value (get_aliminclude ()));
4154 m.assign (
"climinclude",
octave_value (get_climinclude ()));
4156 m.assign (
"xliminclude",
octave_value (get_xliminclude ()));
4158 m.assign (
"yliminclude",
octave_value (get_yliminclude ()));
4172 const std::set<std::string>& pnames = all_property_names ();
4174 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
4176 if (pname.
compare (
"alphadata"))
4177 retval = get_alphadata ();
4178 else if (pname.
compare (
"alphadatamapping"))
4179 retval = get_alphadatamapping ();
4180 else if (pname.
compare (
"cdata"))
4181 retval = get_cdata ();
4182 else if (pname.
compare (
"cdatamapping"))
4183 retval = get_cdatamapping ();
4184 else if (pname.
compare (
"xdata"))
4185 retval = get_xdata ();
4186 else if (pname.
compare (
"ydata"))
4187 retval = get_ydata ();
4188 else if (pname.
compare (
"alim"))
4189 retval = get_alim ();
4190 else if (pname.
compare (
"clim"))
4191 retval = get_clim ();
4192 else if (pname.
compare (
"xlim"))
4193 retval = get_xlim ();
4194 else if (pname.
compare (
"ylim"))
4195 retval = get_ylim ();
4196 else if (pname.
compare (
"aliminclude"))
4197 retval = get_aliminclude ();
4198 else if (pname.
compare (
"climinclude"))
4199 retval = get_climinclude ();
4200 else if (pname.
compare (
"xliminclude"))
4201 retval = get_xliminclude ();
4202 else if (pname.
compare (
"yliminclude"))
4203 retval = get_yliminclude ();
4204 else if (pname.
compare (
"xdatamode"))
4205 retval = get_xdatamode ();
4206 else if (pname.
compare (
"ydatamode"))
4207 retval = get_ydatamode ();
4217 const std::set<std::string>& pnames = all_property_names ();
4219 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
4221 if (pname.
compare (
"alphadata"))
4222 return property (&m_alphadata,
true);
4223 else if (pname.
compare (
"alphadatamapping"))
4224 return property (&m_alphadatamapping,
true);
4225 else if (pname.
compare (
"cdata"))
4227 else if (pname.
compare (
"cdatamapping"))
4228 return property (&m_cdatamapping,
true);
4229 else if (pname.
compare (
"xdata"))
4231 else if (pname.
compare (
"ydata"))
4233 else if (pname.
compare (
"alim"))
4235 else if (pname.
compare (
"clim"))
4237 else if (pname.
compare (
"xlim"))
4239 else if (pname.
compare (
"ylim"))
4241 else if (pname.
compare (
"aliminclude"))
4242 return property (&m_aliminclude,
true);
4243 else if (pname.
compare (
"climinclude"))
4244 return property (&m_climinclude,
true);
4245 else if (pname.
compare (
"xliminclude"))
4246 return property (&m_xliminclude,
true);
4247 else if (pname.
compare (
"yliminclude"))
4248 return property (&m_yliminclude,
true);
4249 else if (pname.
compare (
"xdatamode"))
4250 return property (&m_xdatamode,
true);
4251 else if (pname.
compare (
"ydatamode"))
4252 return property (&m_ydatamode,
true);
4262 m[
"alphadata"] =
Matrix (1, 1, 1.0);
4263 m[
"alphadatamapping"] =
"none";
4264 m[
"cdata"] = default_image_cdata ();
4265 m[
"cdatamapping"] =
"direct";
4272 m[
"aliminclude"] =
"on";
4273 m[
"climinclude"] =
"on";
4274 m[
"xliminclude"] =
"on";
4275 m[
"yliminclude"] =
"on";
4276 m[
"xdatamode"] =
"auto";
4277 m[
"ydatamode"] =
"auto";
4282 std::string image::properties::s_go_name (
"image");
4284 std::set<std::string>
4287 static std::set<std::string> all_pnames;
4289 static bool initialized =
false;
4293 all_pnames.insert (
"alphadata");
4294 all_pnames.insert (
"alphadatamapping");
4295 all_pnames.insert (
"cdata");
4296 all_pnames.insert (
"cdatamapping");
4297 all_pnames.insert (
"xdata");
4298 all_pnames.insert (
"ydata");
4299 all_pnames.insert (
"alim");
4300 all_pnames.insert (
"clim");
4301 all_pnames.insert (
"xlim");
4302 all_pnames.insert (
"ylim");
4303 all_pnames.insert (
"aliminclude");
4304 all_pnames.insert (
"climinclude");
4305 all_pnames.insert (
"xliminclude");
4306 all_pnames.insert (
"yliminclude");
4307 all_pnames.insert (
"xdatamode");
4308 all_pnames.insert (
"ydatamode");
4311 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
4322 std::set<std::string> pnames = core_property_names ();
4324 return pnames.find (pname) != pnames.end ();
4327 std::set<std::string>
4330 static std::set<std::string> all_pnames;
4332 static bool initialized =
false;
4336 all_pnames.insert (
"alim");
4337 all_pnames.insert (
"clim");
4338 all_pnames.insert (
"xlim");
4339 all_pnames.insert (
"ylim");
4342 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
4353 std::set<std::string> pnames = readonly_property_names ();
4355 return pnames.find (pname) != pnames.end ();
4358 std::set<std::string>
4361 static std::set<std::string> all_pnames = core_property_names ();
4363 std::set<std::string> retval = all_pnames;
4365 retval.insert (base_props.begin (), base_props.end ());
4373 std::set<std::string> pnames = all_property_names ();
4375 return pnames.find (pname) != pnames.end ();
4383 m_position (
"position", mh, default_light_position ()),
4384 m_style (
"style", mh,
"{infinite}|local")
4395 const std::set<std::string>& pnames = all_property_names ();
4397 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
4401 error (
"set: \"%s\" is read-only", pname.c_str ());
4407 else if (pname.
compare (
"position"))
4409 else if (pname.
compare (
"style"))
4432 const std::set<std::string>& pnames = all_property_names ();
4434 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
4437 retval = get_color ();
4438 else if (pname.
compare (
"position"))
4439 retval = get_position ();
4440 else if (pname.
compare (
"style"))
4441 retval = get_style ();
4451 const std::set<std::string>& pnames = all_property_names ();
4453 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
4457 else if (pname.
compare (
"position"))
4458 return property (&m_position,
true);
4459 else if (pname.
compare (
"style"))
4471 m[
"position"] = default_light_position ();
4472 m[
"style"] =
"infinite";
4477 std::string light::properties::s_go_name (
"light");
4479 std::set<std::string>
4482 static std::set<std::string> all_pnames;
4484 static bool initialized =
false;
4488 all_pnames.insert (
"color");
4489 all_pnames.insert (
"position");
4490 all_pnames.insert (
"style");
4493 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
4504 std::set<std::string> pnames = core_property_names ();
4506 return pnames.find (pname) != pnames.end ();
4509 std::set<std::string>
4512 static std::set<std::string> all_pnames;
4514 static bool initialized =
false;
4520 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
4531 std::set<std::string> pnames = readonly_property_names ();
4533 return pnames.find (pname) != pnames.end ();
4536 std::set<std::string>
4539 static std::set<std::string> all_pnames = core_property_names ();
4541 std::set<std::string> retval = all_pnames;
4543 retval.insert (base_props.begin (), base_props.end ());
4551 std::set<std::string> pnames = all_property_names ();
4553 return pnames.find (pname) != pnames.end ();
4560 m_alphadatamapping (
"alphadatamapping", mh,
"none|{scaled}|direct"),
4561 m_ambientstrength (
"ambientstrength", mh, 0.3),
4562 m_backfacelighting (
"backfacelighting", mh,
"unlit|lit|{reverselit}"),
4563 m_cdata (
"cdata", mh,
Matrix ()),
4564 m_cdatamapping (
"cdatamapping", mh,
"{scaled}|direct"),
4565 m_diffusestrength (
"diffusestrength", mh, 0.6),
4566 m_displayname (
"displayname", mh,
""),
4569 m_edgelighting (
"edgelighting", mh,
"{none}|flat|gouraud|phong"),
4572 m_facelighting (
"facelighting", mh,
"none|{flat}|gouraud|phong"),
4573 m_facenormals (
"facenormals", mh,
Matrix ()),
4574 m_facenormalsmode (
"facenormalsmode", mh,
"{auto}|manual"),
4575 m_faces (
"faces", mh, default_patch_faces ()),
4576 m_facevertexalphadata (
"facevertexalphadata", mh,
Matrix ()),
4577 m_facevertexcdata (
"facevertexcdata", mh,
Matrix ()),
4578 m_linestyle (
"linestyle", mh,
"{-}|--|:|-.|none"),
4579 m_linewidth (
"linewidth", mh, 0.5),
4580 m_marker (
"marker", mh,
"{none}|+|o|*|.|x|||_|s|square|d|diamond|^|v|>|<|p|pentagram|h|hexagram"),
4583 m_markersize (
"markersize", mh, 6),
4584 m_specularcolorreflectance (
"specularcolorreflectance", mh, 1.0),
4585 m_specularexponent (
"specularexponent", mh, 10.0),
4586 m_specularstrength (
"specularstrength", mh, 0.9),
4587 m_vertexnormals (
"vertexnormals", mh,
Matrix ()),
4588 m_vertexnormalsmode (
"vertexnormalsmode", mh,
"{auto}|manual"),
4589 m_vertices (
"vertices", mh, default_patch_vertices ()),
4590 m_xdata (
"xdata", mh, default_patch_xdata ()),
4591 m_ydata (
"ydata", mh, default_patch_ydata ()),
4592 m_zdata (
"zdata", mh,
Matrix ()),
4593 m_alim (
"alim", mh,
Matrix ()),
4594 m_clim (
"clim", mh,
Matrix ()),
4595 m_xlim (
"xlim", mh,
Matrix ()),
4596 m_ylim (
"ylim", mh,
Matrix ()),
4597 m_zlim (
"zlim", mh,
Matrix ()),
4598 m_aliminclude (
"aliminclude", mh,
"on"),
4599 m_climinclude (
"climinclude", mh,
"on"),
4600 m_xliminclude (
"xliminclude", mh,
"on"),
4601 m_yliminclude (
"yliminclude", mh,
"on"),
4602 m_zliminclude (
"zliminclude", mh,
"on")
4663 const std::set<std::string>& pnames = all_property_names ();
4665 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
4669 error (
"set: \"%s\" is read-only", pname.c_str ());
4673 if (pname.
compare (
"alphadatamapping"))
4674 set_alphadatamapping (val);
4675 else if (pname.
compare (
"ambientstrength"))
4676 set_ambientstrength (val);
4677 else if (pname.
compare (
"backfacelighting"))
4678 set_backfacelighting (val);
4679 else if (pname.
compare (
"cdata"))
4681 else if (pname.
compare (
"cdatamapping"))
4682 set_cdatamapping (val);
4683 else if (pname.
compare (
"diffusestrength"))
4684 set_diffusestrength (val);
4685 else if (pname.
compare (
"displayname"))
4686 set_displayname (val);
4687 else if (pname.
compare (
"edgealpha"))
4688 set_edgealpha (val);
4689 else if (pname.
compare (
"edgecolor"))
4690 set_edgecolor (val);
4691 else if (pname.
compare (
"edgelighting"))
4692 set_edgelighting (val);
4693 else if (pname.
compare (
"facealpha"))
4694 set_facealpha (val);
4695 else if (pname.
compare (
"facecolor"))
4696 set_facecolor (val);
4697 else if (pname.
compare (
"facelighting"))
4698 set_facelighting (val);
4699 else if (pname.
compare (
"facenormals"))
4700 set_facenormals (val);
4701 else if (pname.
compare (
"facenormalsmode"))
4702 set_facenormalsmode (val);
4703 else if (pname.
compare (
"faces"))
4705 else if (pname.
compare (
"facevertexalphadata"))
4706 set_facevertexalphadata (val);
4707 else if (pname.
compare (
"facevertexcdata"))
4708 set_facevertexcdata (val);
4709 else if (pname.
compare (
"linestyle"))
4710 set_linestyle (val);
4711 else if (pname.
compare (
"linewidth"))
4712 set_linewidth (val);
4713 else if (pname.
compare (
"marker"))
4715 else if (pname.
compare (
"markeredgecolor"))
4716 set_markeredgecolor (val);
4717 else if (pname.
compare (
"markerfacecolor"))
4718 set_markerfacecolor (val);
4719 else if (pname.
compare (
"markersize"))
4720 set_markersize (val);
4721 else if (pname.
compare (
"specularcolorreflectance"))
4722 set_specularcolorreflectance (val);
4723 else if (pname.
compare (
"specularexponent"))
4724 set_specularexponent (val);
4725 else if (pname.
compare (
"specularstrength"))
4726 set_specularstrength (val);
4727 else if (pname.
compare (
"vertexnormals"))
4728 set_vertexnormals (val);
4729 else if (pname.
compare (
"vertexnormalsmode"))
4730 set_vertexnormalsmode (val);
4731 else if (pname.
compare (
"vertices"))
4733 else if (pname.
compare (
"xdata"))
4735 else if (pname.
compare (
"ydata"))
4737 else if (pname.
compare (
"zdata"))
4739 else if (pname.
compare (
"aliminclude"))
4740 set_aliminclude (val);
4741 else if (pname.
compare (
"climinclude"))
4742 set_climinclude (val);
4743 else if (pname.
compare (
"xliminclude"))
4744 set_xliminclude (val);
4745 else if (pname.
compare (
"yliminclude"))
4746 set_yliminclude (val);
4747 else if (pname.
compare (
"zliminclude"))
4748 set_zliminclude (val);
4758 m.assign (
"alphadatamapping",
octave_value (get_alphadatamapping ()));
4759 m.assign (
"ambientstrength",
octave_value (get_ambientstrength ()));
4760 m.assign (
"backfacelighting",
octave_value (get_backfacelighting ()));
4762 m.assign (
"cdatamapping",
octave_value (get_cdatamapping ()));
4763 m.assign (
"diffusestrength",
octave_value (get_diffusestrength ()));
4764 m.assign (
"displayname",
octave_value (get_displayname ()));
4767 m.assign (
"edgelighting",
octave_value (get_edgelighting ()));
4770 m.assign (
"facelighting",
octave_value (get_facelighting ()));
4771 m.assign (
"facenormals",
octave_value (get_facenormals ()));
4772 m.assign (
"facenormalsmode",
octave_value (get_facenormalsmode ()));
4774 m.assign (
"facevertexalphadata",
octave_value (get_facevertexalphadata ()));
4775 m.assign (
"facevertexcdata",
octave_value (get_facevertexcdata ()));
4779 m.assign (
"markeredgecolor",
octave_value (get_markeredgecolor ()));
4780 m.assign (
"markerfacecolor",
octave_value (get_markerfacecolor ()));
4782 m.assign (
"specularcolorreflectance",
octave_value (get_specularcolorreflectance ()));
4783 m.assign (
"specularexponent",
octave_value (get_specularexponent ()));
4784 m.assign (
"specularstrength",
octave_value (get_specularstrength ()));
4785 m.assign (
"vertexnormals",
octave_value (get_vertexnormals ()));
4786 m.assign (
"vertexnormalsmode",
octave_value (get_vertexnormalsmode ()));
4802 m.assign (
"aliminclude",
octave_value (get_aliminclude ()));
4804 m.assign (
"climinclude",
octave_value (get_climinclude ()));
4806 m.assign (
"xliminclude",
octave_value (get_xliminclude ()));
4808 m.assign (
"yliminclude",
octave_value (get_yliminclude ()));
4810 m.assign (
"zliminclude",
octave_value (get_zliminclude ()));
4820 const std::set<std::string>& pnames = all_property_names ();
4822 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
4824 if (pname.
compare (
"alphadatamapping"))
4825 retval = get_alphadatamapping ();
4826 else if (pname.
compare (
"ambientstrength"))
4827 retval = get_ambientstrength ();
4828 else if (pname.
compare (
"backfacelighting"))
4829 retval = get_backfacelighting ();
4830 else if (pname.
compare (
"cdata"))
4831 retval = get_cdata ();
4832 else if (pname.
compare (
"cdatamapping"))
4833 retval = get_cdatamapping ();
4834 else if (pname.
compare (
"diffusestrength"))
4835 retval = get_diffusestrength ();
4836 else if (pname.
compare (
"displayname"))
4837 retval = get_displayname ();
4838 else if (pname.
compare (
"edgealpha"))
4839 retval = get_edgealpha ();
4840 else if (pname.
compare (
"edgecolor"))
4841 retval = get_edgecolor ();
4842 else if (pname.
compare (
"edgelighting"))
4843 retval = get_edgelighting ();
4844 else if (pname.
compare (
"facealpha"))
4845 retval = get_facealpha ();
4846 else if (pname.
compare (
"facecolor"))
4847 retval = get_facecolor ();
4848 else if (pname.
compare (
"facelighting"))
4849 retval = get_facelighting ();
4850 else if (pname.
compare (
"facenormals"))
4851 retval = get_facenormals ();
4852 else if (pname.
compare (
"facenormalsmode"))
4853 retval = get_facenormalsmode ();
4854 else if (pname.
compare (
"faces"))
4855 retval = get_faces ();
4856 else if (pname.
compare (
"facevertexalphadata"))
4857 retval = get_facevertexalphadata ();
4858 else if (pname.
compare (
"facevertexcdata"))
4859 retval = get_facevertexcdata ();
4860 else if (pname.
compare (
"linestyle"))
4861 retval = get_linestyle ();
4862 else if (pname.
compare (
"linewidth"))
4863 retval = get_linewidth ();
4864 else if (pname.
compare (
"marker"))
4865 retval = get_marker ();
4866 else if (pname.
compare (
"markeredgecolor"))
4867 retval = get_markeredgecolor ();
4868 else if (pname.
compare (
"markerfacecolor"))
4869 retval = get_markerfacecolor ();
4870 else if (pname.
compare (
"markersize"))
4871 retval = get_markersize ();
4872 else if (pname.
compare (
"specularcolorreflectance"))
4873 retval = get_specularcolorreflectance ();
4874 else if (pname.
compare (
"specularexponent"))
4875 retval = get_specularexponent ();
4876 else if (pname.
compare (
"specularstrength"))
4877 retval = get_specularstrength ();
4878 else if (pname.
compare (
"vertexnormals"))
4879 retval = get_vertexnormals ();
4880 else if (pname.
compare (
"vertexnormalsmode"))
4881 retval = get_vertexnormalsmode ();
4882 else if (pname.
compare (
"vertices"))
4883 retval = get_vertices ();
4884 else if (pname.
compare (
"xdata"))
4885 retval = get_xdata ();
4886 else if (pname.
compare (
"ydata"))
4887 retval = get_ydata ();
4888 else if (pname.
compare (
"zdata"))
4889 retval = get_zdata ();
4890 else if (pname.
compare (
"alim"))
4891 retval = get_alim ();
4892 else if (pname.
compare (
"clim"))
4893 retval = get_clim ();
4894 else if (pname.
compare (
"xlim"))
4895 retval = get_xlim ();
4896 else if (pname.
compare (
"ylim"))
4897 retval = get_ylim ();
4898 else if (pname.
compare (
"zlim"))
4899 retval = get_zlim ();
4900 else if (pname.
compare (
"aliminclude"))
4901 retval = get_aliminclude ();
4902 else if (pname.
compare (
"climinclude"))
4903 retval = get_climinclude ();
4904 else if (pname.
compare (
"xliminclude"))
4905 retval = get_xliminclude ();
4906 else if (pname.
compare (
"yliminclude"))
4907 retval = get_yliminclude ();
4908 else if (pname.
compare (
"zliminclude"))
4909 retval = get_zliminclude ();
4919 const std::set<std::string>& pnames = all_property_names ();
4921 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
4923 if (pname.
compare (
"alphadatamapping"))
4924 return property (&m_alphadatamapping,
true);
4925 else if (pname.
compare (
"ambientstrength"))
4926 return property (&m_ambientstrength,
true);
4927 else if (pname.
compare (
"backfacelighting"))
4928 return property (&m_backfacelighting,
true);
4929 else if (pname.
compare (
"cdata"))
4931 else if (pname.
compare (
"cdatamapping"))
4932 return property (&m_cdatamapping,
true);
4933 else if (pname.
compare (
"diffusestrength"))
4934 return property (&m_diffusestrength,
true);
4935 else if (pname.
compare (
"displayname"))
4936 return property (&m_displayname,
true);
4937 else if (pname.
compare (
"edgealpha"))
4938 return property (&m_edgealpha,
true);
4939 else if (pname.
compare (
"edgecolor"))
4940 return property (&m_edgecolor,
true);
4941 else if (pname.
compare (
"edgelighting"))
4942 return property (&m_edgelighting,
true);
4943 else if (pname.
compare (
"facealpha"))
4944 return property (&m_facealpha,
true);
4945 else if (pname.
compare (
"facecolor"))
4946 return property (&m_facecolor,
true);
4947 else if (pname.
compare (
"facelighting"))
4948 return property (&m_facelighting,
true);
4949 else if (pname.
compare (
"facenormals"))
4950 return property (&m_facenormals,
true);
4951 else if (pname.
compare (
"facenormalsmode"))
4952 return property (&m_facenormalsmode,
true);
4953 else if (pname.
compare (
"faces"))
4955 else if (pname.
compare (
"facevertexalphadata"))
4956 return property (&m_facevertexalphadata,
true);
4957 else if (pname.
compare (
"facevertexcdata"))
4958 return property (&m_facevertexcdata,
true);
4959 else if (pname.
compare (
"linestyle"))
4960 return property (&m_linestyle,
true);
4961 else if (pname.
compare (
"linewidth"))
4962 return property (&m_linewidth,
true);
4963 else if (pname.
compare (
"marker"))
4965 else if (pname.
compare (
"markeredgecolor"))
4966 return property (&m_markeredgecolor,
true);
4967 else if (pname.
compare (
"markerfacecolor"))
4968 return property (&m_markerfacecolor,
true);
4969 else if (pname.
compare (
"markersize"))
4970 return property (&m_markersize,
true);
4971 else if (pname.
compare (
"specularcolorreflectance"))
4972 return property (&m_specularcolorreflectance,
true);
4973 else if (pname.
compare (
"specularexponent"))
4974 return property (&m_specularexponent,
true);
4975 else if (pname.
compare (
"specularstrength"))
4976 return property (&m_specularstrength,
true);
4977 else if (pname.
compare (
"vertexnormals"))
4978 return property (&m_vertexnormals,
true);
4979 else if (pname.
compare (
"vertexnormalsmode"))
4980 return property (&m_vertexnormalsmode,
true);
4981 else if (pname.
compare (
"vertices"))
4982 return property (&m_vertices,
true);
4983 else if (pname.
compare (
"xdata"))
4985 else if (pname.
compare (
"ydata"))
4987 else if (pname.
compare (
"zdata"))
4989 else if (pname.
compare (
"alim"))
4991 else if (pname.
compare (
"clim"))
4993 else if (pname.
compare (
"xlim"))
4995 else if (pname.
compare (
"ylim"))
4997 else if (pname.
compare (
"zlim"))
4999 else if (pname.
compare (
"aliminclude"))
5000 return property (&m_aliminclude,
true);
5001 else if (pname.
compare (
"climinclude"))
5002 return property (&m_climinclude,
true);
5003 else if (pname.
compare (
"xliminclude"))
5004 return property (&m_xliminclude,
true);
5005 else if (pname.
compare (
"yliminclude"))
5006 return property (&m_yliminclude,
true);
5007 else if (pname.
compare (
"zliminclude"))
5008 return property (&m_zliminclude,
true);
5018 m[
"alphadatamapping"] =
"scaled";
5019 m[
"ambientstrength"] = 0.3;
5020 m[
"backfacelighting"] =
"reverselit";
5022 m[
"cdatamapping"] =
"scaled";
5023 m[
"diffusestrength"] = 0.6;
5024 m[
"displayname"] =
"";
5027 m[
"edgelighting"] =
"none";
5030 m[
"facelighting"] =
"flat";
5032 m[
"facenormalsmode"] =
"auto";
5033 m[
"faces"] = default_patch_faces ();
5034 m[
"facevertexalphadata"] =
Matrix ();
5035 m[
"facevertexcdata"] =
Matrix ();
5036 m[
"linestyle"] =
"-";
5037 m[
"linewidth"] = 0.5;
5038 m[
"marker"] =
"none";
5041 m[
"markersize"] = 6;
5042 m[
"specularcolorreflectance"] = 1.0;
5043 m[
"specularexponent"] = 10.0;
5044 m[
"specularstrength"] = 0.9;
5045 m[
"vertexnormals"] =
Matrix ();
5046 m[
"vertexnormalsmode"] =
"auto";
5047 m[
"vertices"] = default_patch_vertices ();
5048 m[
"xdata"] = default_patch_xdata ();
5049 m[
"ydata"] = default_patch_ydata ();
5056 m[
"aliminclude"] =
"on";
5057 m[
"climinclude"] =
"on";
5058 m[
"xliminclude"] =
"on";
5059 m[
"yliminclude"] =
"on";
5060 m[
"zliminclude"] =
"on";
5065 std::string patch::properties::s_go_name (
"patch");
5067 std::set<std::string>
5070 static std::set<std::string> all_pnames;
5072 static bool initialized =
false;
5076 all_pnames.insert (
"alphadatamapping");
5077 all_pnames.insert (
"ambientstrength");
5078 all_pnames.insert (
"backfacelighting");
5079 all_pnames.insert (
"cdata");
5080 all_pnames.insert (
"cdatamapping");
5081 all_pnames.insert (
"diffusestrength");
5082 all_pnames.insert (
"displayname");
5083 all_pnames.insert (
"edgealpha");
5084 all_pnames.insert (
"edgecolor");
5085 all_pnames.insert (
"edgelighting");
5086 all_pnames.insert (
"facealpha");
5087 all_pnames.insert (
"facecolor");
5088 all_pnames.insert (
"facelighting");
5089 all_pnames.insert (
"facenormals");
5090 all_pnames.insert (
"facenormalsmode");
5091 all_pnames.insert (
"faces");
5092 all_pnames.insert (
"facevertexalphadata");
5093 all_pnames.insert (
"facevertexcdata");
5094 all_pnames.insert (
"linestyle");
5095 all_pnames.insert (
"linewidth");
5096 all_pnames.insert (
"marker");
5097 all_pnames.insert (
"markeredgecolor");
5098 all_pnames.insert (
"markerfacecolor");
5099 all_pnames.insert (
"markersize");
5100 all_pnames.insert (
"specularcolorreflectance");
5101 all_pnames.insert (
"specularexponent");
5102 all_pnames.insert (
"specularstrength");
5103 all_pnames.insert (
"vertexnormals");
5104 all_pnames.insert (
"vertexnormalsmode");
5105 all_pnames.insert (
"vertices");
5106 all_pnames.insert (
"xdata");
5107 all_pnames.insert (
"ydata");
5108 all_pnames.insert (
"zdata");
5109 all_pnames.insert (
"alim");
5110 all_pnames.insert (
"clim");
5111 all_pnames.insert (
"xlim");
5112 all_pnames.insert (
"ylim");
5113 all_pnames.insert (
"zlim");
5114 all_pnames.insert (
"aliminclude");
5115 all_pnames.insert (
"climinclude");
5116 all_pnames.insert (
"xliminclude");
5117 all_pnames.insert (
"yliminclude");
5118 all_pnames.insert (
"zliminclude");
5121 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
5132 std::set<std::string> pnames = core_property_names ();
5134 return pnames.find (pname) != pnames.end ();
5137 std::set<std::string>
5140 static std::set<std::string> all_pnames;
5142 static bool initialized =
false;
5146 all_pnames.insert (
"alim");
5147 all_pnames.insert (
"clim");
5148 all_pnames.insert (
"xlim");
5149 all_pnames.insert (
"ylim");
5150 all_pnames.insert (
"zlim");
5153 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
5164 std::set<std::string> pnames = readonly_property_names ();
5166 return pnames.find (pname) != pnames.end ();
5169 std::set<std::string>
5172 static std::set<std::string> all_pnames = core_property_names ();
5174 std::set<std::string> retval = all_pnames;
5176 retval.insert (base_props.begin (), base_props.end ());
5184 std::set<std::string> pnames = all_property_names ();
5186 return pnames.find (pname) != pnames.end ();
5193 m_annotation (
"annotation", mh,
Matrix ()),
5194 m_cdata (
"cdata", mh,
Matrix ()),
5195 m_cdatamode (
"cdatamode", mh,
"{auto}|manual"),
5196 m_cdatasource (
"cdatasource", mh,
""),
5197 m_datatiptemplate (
"datatiptemplate", mh,
Matrix ()),
5198 m_displayname (
"displayname", mh,
""),
5199 m_latitudedata (
"latitudedata", mh,
Matrix ()),
5200 m_latitudedatasource (
"latitudedatasource", mh,
""),
5201 m_linewidth (
"linewidth", mh, 0.5),
5202 m_longitudedata (
"longitudedata", mh,
Matrix ()),
5203 m_longitudedatasource (
"longitudedatasource", mh,
""),
5204 m_marker (
"marker", mh,
"{o}|+|*|.|x|||_|s|square|d|diamond|^|v|>|<|p|pentagram|h|hexagram|none"),
5205 m_markeredgealpha (
"markeredgealpha", mh, 1.0),
5207 m_markerfacealpha (
"markerfacealpha", mh, 1.0),
5209 m_rdata (
"rdata", mh,
Matrix ()),
5210 m_rdatasource (
"rdatasource", mh,
""),
5211 m_seriesindex (
"seriesindex", mh,
Matrix ()),
5212 m_sizedata (
"sizedata", mh,
Matrix ()),
5213 m_sizedatasource (
"sizedatasource", mh,
""),
5214 m_thetadata (
"thetadata", mh,
Matrix ()),
5215 m_thetadatasource (
"thetadatasource", mh,
""),
5216 m_xdata (
"xdata", mh,
Matrix ()),
5217 m_xdatasource (
"xdatasource", mh,
""),
5218 m_ydata (
"ydata", mh,
Matrix ()),
5219 m_ydatasource (
"ydatasource", mh,
""),
5220 m_zdata (
"zdata", mh,
Matrix ()),
5221 m_zdatasource (
"zdatasource", mh,
""),
5222 m_alim (
"alim", mh,
Matrix ()),
5223 m_clim (
"clim", mh,
Matrix ()),
5224 m_xlim (
"xlim", mh,
Matrix ()),
5225 m_ylim (
"ylim", mh,
Matrix ()),
5226 m_zlim (
"zlim", mh,
Matrix ()),
5227 m_aliminclude (
"aliminclude", mh,
"on"),
5228 m_climinclude (
"climinclude", mh,
"on"),
5229 m_xliminclude (
"xliminclude", mh,
"on"),
5230 m_yliminclude (
"yliminclude", mh,
"on"),
5231 m_zliminclude (
"zliminclude", mh,
"on")
5288 const std::set<std::string>& pnames = all_property_names ();
5290 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
5294 error (
"set: \"%s\" is read-only", pname.c_str ());
5298 if (pname.
compare (
"annotation"))
5299 set_annotation (val);
5300 else if (pname.
compare (
"cdata"))
5302 else if (pname.
compare (
"cdatamode"))
5303 set_cdatamode (val);
5304 else if (pname.
compare (
"cdatasource"))
5305 set_cdatasource (val);
5306 else if (pname.
compare (
"datatiptemplate"))
5307 set_datatiptemplate (val);
5308 else if (pname.
compare (
"displayname"))
5309 set_displayname (val);
5310 else if (pname.
compare (
"latitudedata"))
5311 set_latitudedata (val);
5312 else if (pname.
compare (
"latitudedatasource"))
5313 set_latitudedatasource (val);
5314 else if (pname.
compare (
"linewidth"))
5315 set_linewidth (val);
5316 else if (pname.
compare (
"longitudedata"))
5317 set_longitudedata (val);
5318 else if (pname.
compare (
"longitudedatasource"))
5319 set_longitudedatasource (val);
5320 else if (pname.
compare (
"marker"))
5322 else if (pname.
compare (
"markeredgealpha"))
5323 set_markeredgealpha (val);
5324 else if (pname.
compare (
"markeredgecolor"))
5325 set_markeredgecolor (val);
5326 else if (pname.
compare (
"markerfacealpha"))
5327 set_markerfacealpha (val);
5328 else if (pname.
compare (
"markerfacecolor"))
5329 set_markerfacecolor (val);
5330 else if (pname.
compare (
"rdata"))
5332 else if (pname.
compare (
"rdatasource"))
5333 set_rdatasource (val);
5334 else if (pname.
compare (
"seriesindex"))
5335 set_seriesindex (val);
5336 else if (pname.
compare (
"sizedata"))
5338 else if (pname.
compare (
"sizedatasource"))
5339 set_sizedatasource (val);
5340 else if (pname.
compare (
"thetadata"))
5341 set_thetadata (val);
5342 else if (pname.
compare (
"thetadatasource"))
5343 set_thetadatasource (val);
5344 else if (pname.
compare (
"xdata"))
5346 else if (pname.
compare (
"xdatasource"))
5347 set_xdatasource (val);
5348 else if (pname.
compare (
"ydata"))
5350 else if (pname.
compare (
"ydatasource"))
5351 set_ydatasource (val);
5352 else if (pname.
compare (
"zdata"))
5354 else if (pname.
compare (
"zdatasource"))
5355 set_zdatasource (val);
5356 else if (pname.
compare (
"aliminclude"))
5357 set_aliminclude (val);
5358 else if (pname.
compare (
"climinclude"))
5359 set_climinclude (val);
5360 else if (pname.
compare (
"xliminclude"))
5361 set_xliminclude (val);
5362 else if (pname.
compare (
"yliminclude"))
5363 set_yliminclude (val);
5364 else if (pname.
compare (
"zliminclude"))
5365 set_zliminclude (val);
5378 m.assign (
"cdatasource",
octave_value (get_cdatasource ()));
5379 m.assign (
"datatiptemplate",
octave_value (get_datatiptemplate ()));
5380 m.assign (
"displayname",
octave_value (get_displayname ()));
5381 m.assign (
"latitudedata",
octave_value (get_latitudedata ()));
5382 m.assign (
"latitudedatasource",
octave_value (get_latitudedatasource ()));
5384 m.assign (
"longitudedata",
octave_value (get_longitudedata ()));
5385 m.assign (
"longitudedatasource",
octave_value (get_longitudedatasource ()));
5387 m.assign (
"markeredgealpha",
octave_value (get_markeredgealpha ()));
5388 m.assign (
"markeredgecolor",
octave_value (get_markeredgecolor ()));
5389 m.assign (
"markerfacealpha",
octave_value (get_markerfacealpha ()));
5390 m.assign (
"markerfacecolor",
octave_value (get_markerfacecolor ()));
5392 m.assign (
"rdatasource",
octave_value (get_rdatasource ()));
5393 m.assign (
"seriesindex",
octave_value (get_seriesindex ()));
5395 m.assign (
"sizedatasource",
octave_value (get_sizedatasource ()));
5397 m.assign (
"thetadatasource",
octave_value (get_thetadatasource ()));
5399 m.assign (
"xdatasource",
octave_value (get_xdatasource ()));
5401 m.assign (
"ydatasource",
octave_value (get_ydatasource ()));
5403 m.assign (
"zdatasource",
octave_value (get_zdatasource ()));
5415 m.assign (
"aliminclude",
octave_value (get_aliminclude ()));
5417 m.assign (
"climinclude",
octave_value (get_climinclude ()));
5419 m.assign (
"xliminclude",
octave_value (get_xliminclude ()));
5421 m.assign (
"yliminclude",
octave_value (get_yliminclude ()));
5423 m.assign (
"zliminclude",
octave_value (get_zliminclude ()));
5433 const std::set<std::string>& pnames = all_property_names ();
5435 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
5437 if (pname.
compare (
"annotation"))
5438 retval = get_annotation ();
5439 else if (pname.
compare (
"cdata"))
5440 retval = get_cdata ();
5441 else if (pname.
compare (
"cdatamode"))
5442 retval = get_cdatamode ();
5443 else if (pname.
compare (
"cdatasource"))
5444 retval = get_cdatasource ();
5445 else if (pname.
compare (
"datatiptemplate"))
5446 retval = get_datatiptemplate ();
5447 else if (pname.
compare (
"displayname"))
5448 retval = get_displayname ();
5449 else if (pname.
compare (
"latitudedata"))
5450 retval = get_latitudedata ();
5451 else if (pname.
compare (
"latitudedatasource"))
5452 retval = get_latitudedatasource ();
5453 else if (pname.
compare (
"linewidth"))
5454 retval = get_linewidth ();
5455 else if (pname.
compare (
"longitudedata"))
5456 retval = get_longitudedata ();
5457 else if (pname.
compare (
"longitudedatasource"))
5458 retval = get_longitudedatasource ();
5459 else if (pname.
compare (
"marker"))
5460 retval = get_marker ();
5461 else if (pname.
compare (
"markeredgealpha"))
5462 retval = get_markeredgealpha ();
5463 else if (pname.
compare (
"markeredgecolor"))
5464 retval = get_markeredgecolor ();
5465 else if (pname.
compare (
"markerfacealpha"))
5466 retval = get_markerfacealpha ();
5467 else if (pname.
compare (
"markerfacecolor"))
5468 retval = get_markerfacecolor ();
5469 else if (pname.
compare (
"rdata"))
5470 retval = get_rdata ();
5471 else if (pname.
compare (
"rdatasource"))
5472 retval = get_rdatasource ();
5473 else if (pname.
compare (
"seriesindex"))
5474 retval = get_seriesindex ();
5475 else if (pname.
compare (
"sizedata"))
5476 retval = get_sizedata ();
5477 else if (pname.
compare (
"sizedatasource"))
5478 retval = get_sizedatasource ();
5479 else if (pname.
compare (
"thetadata"))
5480 retval = get_thetadata ();
5481 else if (pname.
compare (
"thetadatasource"))
5482 retval = get_thetadatasource ();
5483 else if (pname.
compare (
"xdata"))
5484 retval = get_xdata ();
5485 else if (pname.
compare (
"xdatasource"))
5486 retval = get_xdatasource ();
5487 else if (pname.
compare (
"ydata"))
5488 retval = get_ydata ();
5489 else if (pname.
compare (
"ydatasource"))
5490 retval = get_ydatasource ();
5491 else if (pname.
compare (
"zdata"))
5492 retval = get_zdata ();
5493 else if (pname.
compare (
"zdatasource"))
5494 retval = get_zdatasource ();
5495 else if (pname.
compare (
"alim"))
5496 retval = get_alim ();
5497 else if (pname.
compare (
"clim"))
5498 retval = get_clim ();
5499 else if (pname.
compare (
"xlim"))
5500 retval = get_xlim ();
5501 else if (pname.
compare (
"ylim"))
5502 retval = get_ylim ();
5503 else if (pname.
compare (
"zlim"))
5504 retval = get_zlim ();
5505 else if (pname.
compare (
"aliminclude"))
5506 retval = get_aliminclude ();
5507 else if (pname.
compare (
"climinclude"))
5508 retval = get_climinclude ();
5509 else if (pname.
compare (
"xliminclude"))
5510 retval = get_xliminclude ();
5511 else if (pname.
compare (
"yliminclude"))
5512 retval = get_yliminclude ();
5513 else if (pname.
compare (
"zliminclude"))
5514 retval = get_zliminclude ();
5524 const std::set<std::string>& pnames = all_property_names ();
5526 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
5528 if (pname.
compare (
"annotation"))
5529 return property (&m_annotation,
true);
5530 else if (pname.
compare (
"cdata"))
5532 else if (pname.
compare (
"cdatamode"))
5533 return property (&m_cdatamode,
true);
5534 else if (pname.
compare (
"cdatasource"))
5535 return property (&m_cdatasource,
true);
5536 else if (pname.
compare (
"datatiptemplate"))
5537 return property (&m_datatiptemplate,
true);
5538 else if (pname.
compare (
"displayname"))
5539 return property (&m_displayname,
true);
5540 else if (pname.
compare (
"latitudedata"))
5541 return property (&m_latitudedata,
true);
5542 else if (pname.
compare (
"latitudedatasource"))
5543 return property (&m_latitudedatasource,
true);
5544 else if (pname.
compare (
"linewidth"))
5545 return property (&m_linewidth,
true);
5546 else if (pname.
compare (
"longitudedata"))
5547 return property (&m_longitudedata,
true);
5548 else if (pname.
compare (
"longitudedatasource"))
5549 return property (&m_longitudedatasource,
true);
5550 else if (pname.
compare (
"marker"))
5552 else if (pname.
compare (
"markeredgealpha"))
5553 return property (&m_markeredgealpha,
true);
5554 else if (pname.
compare (
"markeredgecolor"))
5555 return property (&m_markeredgecolor,
true);
5556 else if (pname.
compare (
"markerfacealpha"))
5557 return property (&m_markerfacealpha,
true);
5558 else if (pname.
compare (
"markerfacecolor"))
5559 return property (&m_markerfacecolor,
true);
5560 else if (pname.
compare (
"rdata"))
5562 else if (pname.
compare (
"rdatasource"))
5563 return property (&m_rdatasource,
true);
5564 else if (pname.
compare (
"seriesindex"))
5565 return property (&m_seriesindex,
true);
5566 else if (pname.
compare (
"sizedata"))
5567 return property (&m_sizedata,
true);
5568 else if (pname.
compare (
"sizedatasource"))
5569 return property (&m_sizedatasource,
true);
5570 else if (pname.
compare (
"thetadata"))
5571 return property (&m_thetadata,
true);
5572 else if (pname.
compare (
"thetadatasource"))
5573 return property (&m_thetadatasource,
true);
5574 else if (pname.
compare (
"xdata"))
5576 else if (pname.
compare (
"xdatasource"))
5577 return property (&m_xdatasource,
true);
5578 else if (pname.
compare (
"ydata"))
5580 else if (pname.
compare (
"ydatasource"))
5581 return property (&m_ydatasource,
true);
5582 else if (pname.
compare (
"zdata"))
5584 else if (pname.
compare (
"zdatasource"))
5585 return property (&m_zdatasource,
true);
5586 else if (pname.
compare (
"alim"))
5588 else if (pname.
compare (
"clim"))
5590 else if (pname.
compare (
"xlim"))
5592 else if (pname.
compare (
"ylim"))
5594 else if (pname.
compare (
"zlim"))
5596 else if (pname.
compare (
"aliminclude"))
5597 return property (&m_aliminclude,
true);
5598 else if (pname.
compare (
"climinclude"))
5599 return property (&m_climinclude,
true);
5600 else if (pname.
compare (
"xliminclude"))
5601 return property (&m_xliminclude,
true);
5602 else if (pname.
compare (
"yliminclude"))
5603 return property (&m_yliminclude,
true);
5604 else if (pname.
compare (
"zliminclude"))
5605 return property (&m_zliminclude,
true);
5617 m[
"cdatamode"] =
"auto";
5618 m[
"cdatasource"] =
"";
5619 m[
"datatiptemplate"] =
Matrix ();
5620 m[
"displayname"] =
"";
5621 m[
"latitudedata"] =
Matrix ();
5622 m[
"latitudedatasource"] =
"";
5623 m[
"linewidth"] = 0.5;
5624 m[
"longitudedata"] =
Matrix ();
5625 m[
"longitudedatasource"] =
"";
5627 m[
"markeredgealpha"] = 1.0;
5629 m[
"markerfacealpha"] = 1.0;
5632 m[
"rdatasource"] =
"";
5635 m[
"sizedatasource"] =
"";
5637 m[
"thetadatasource"] =
"";
5639 m[
"xdatasource"] =
"";
5641 m[
"ydatasource"] =
"";
5643 m[
"zdatasource"] =
"";
5649 m[
"aliminclude"] =
"on";
5650 m[
"climinclude"] =
"on";
5651 m[
"xliminclude"] =
"on";
5652 m[
"yliminclude"] =
"on";
5653 m[
"zliminclude"] =
"on";
5658 std::string scatter::properties::s_go_name (
"scatter");
5660 std::set<std::string>
5663 static std::set<std::string> all_pnames;
5665 static bool initialized =
false;
5669 all_pnames.insert (
"annotation");
5670 all_pnames.insert (
"cdata");
5671 all_pnames.insert (
"cdatamode");
5672 all_pnames.insert (
"cdatasource");
5673 all_pnames.insert (
"datatiptemplate");
5674 all_pnames.insert (
"displayname");
5675 all_pnames.insert (
"latitudedata");
5676 all_pnames.insert (
"latitudedatasource");
5677 all_pnames.insert (
"linewidth");
5678 all_pnames.insert (
"longitudedata");
5679 all_pnames.insert (
"longitudedatasource");
5680 all_pnames.insert (
"marker");
5681 all_pnames.insert (
"markeredgealpha");
5682 all_pnames.insert (
"markeredgecolor");
5683 all_pnames.insert (
"markerfacealpha");
5684 all_pnames.insert (
"markerfacecolor");
5685 all_pnames.insert (
"rdata");
5686 all_pnames.insert (
"rdatasource");
5687 all_pnames.insert (
"seriesindex");
5688 all_pnames.insert (
"sizedata");
5689 all_pnames.insert (
"sizedatasource");
5690 all_pnames.insert (
"thetadata");
5691 all_pnames.insert (
"thetadatasource");
5692 all_pnames.insert (
"xdata");
5693 all_pnames.insert (
"xdatasource");
5694 all_pnames.insert (
"ydata");
5695 all_pnames.insert (
"ydatasource");
5696 all_pnames.insert (
"zdata");
5697 all_pnames.insert (
"zdatasource");
5698 all_pnames.insert (
"alim");
5699 all_pnames.insert (
"clim");
5700 all_pnames.insert (
"xlim");
5701 all_pnames.insert (
"ylim");
5702 all_pnames.insert (
"zlim");
5703 all_pnames.insert (
"aliminclude");
5704 all_pnames.insert (
"climinclude");
5705 all_pnames.insert (
"xliminclude");
5706 all_pnames.insert (
"yliminclude");
5707 all_pnames.insert (
"zliminclude");
5710 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
5721 std::set<std::string> pnames = core_property_names ();
5723 return pnames.find (pname) != pnames.end ();
5726 std::set<std::string>
5729 static std::set<std::string> all_pnames;
5731 static bool initialized =
false;
5735 all_pnames.insert (
"alim");
5736 all_pnames.insert (
"clim");
5737 all_pnames.insert (
"xlim");
5738 all_pnames.insert (
"ylim");
5739 all_pnames.insert (
"zlim");
5742 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
5753 std::set<std::string> pnames = readonly_property_names ();
5755 return pnames.find (pname) != pnames.end ();
5758 std::set<std::string>
5761 static std::set<std::string> all_pnames = core_property_names ();
5763 std::set<std::string> retval = all_pnames;
5765 retval.insert (base_props.begin (), base_props.end ());
5773 std::set<std::string> pnames = all_property_names ();
5775 return pnames.find (pname) != pnames.end ();
5782 m_alphadata (
"alphadata", mh,
Matrix (1, 1, 1.0)),
5783 m_alphadatamapping (
"alphadatamapping", mh,
"none|direct|{scaled}"),
5784 m_ambientstrength (
"ambientstrength", mh, 0.3),
5785 m_backfacelighting (
"backfacelighting", mh,
"unlit|lit|{reverselit}"),
5786 m_cdata (
"cdata", mh, default_surface_cdata ()),
5787 m_cdatamapping (
"cdatamapping", mh,
"{scaled}|direct"),
5788 m_cdatasource (
"cdatasource", mh,
""),
5789 m_diffusestrength (
"diffusestrength", mh, 0.6),
5790 m_displayname (
"displayname", mh,
""),
5793 m_edgelighting (
"edgelighting", mh,
"{none}|flat|gouraud|phong"),
5796 m_facelighting (
"facelighting", mh,
"none|{flat}|gouraud|phong"),
5797 m_facenormals (
"facenormals", mh,
Matrix ()),
5798 m_facenormalsmode (
"facenormalsmode", mh,
"{auto}|manual"),
5799 m_linestyle (
"linestyle", mh,
"{-}|--|:|-.|none"),
5800 m_linewidth (
"linewidth", mh, 0.5),
5801 m_marker (
"marker", mh,
"{none}|+|o|*|.|x|||_|s|square|d|diamond|^|v|>|<|p|pentagram|h|hexagram"),
5804 m_markersize (
"markersize", mh, 6),
5805 m_meshstyle (
"meshstyle", mh,
"{both}|row|column"),
5806 m_specularcolorreflectance (
"specularcolorreflectance", mh, 1),
5807 m_specularexponent (
"specularexponent", mh, 10),
5808 m_specularstrength (
"specularstrength", mh, 0.9),
5809 m_vertexnormals (
"vertexnormals", mh,
Matrix ()),
5810 m_vertexnormalsmode (
"vertexnormalsmode", mh,
"{auto}|manual"),
5811 m_xdata (
"xdata", mh, default_surface_xdata ()),
5812 m_xdatasource (
"xdatasource", mh,
""),
5813 m_ydata (
"ydata", mh, default_surface_ydata ()),
5814 m_ydatasource (
"ydatasource", mh,
""),
5815 m_zdata (
"zdata", mh, default_surface_zdata ()),
5816 m_zdatasource (
"zdatasource", mh,
""),
5817 m_alim (
"alim", mh,
Matrix ()),
5818 m_clim (
"clim", mh,
Matrix ()),
5819 m_xlim (
"xlim", mh,
Matrix ()),
5820 m_ylim (
"ylim", mh,
Matrix ()),
5821 m_zlim (
"zlim", mh,
Matrix ()),
5822 m_aliminclude (
"aliminclude", mh,
"on"),
5823 m_climinclude (
"climinclude", mh,
"on"),
5824 m_xliminclude (
"xliminclude", mh,
"on"),
5825 m_yliminclude (
"yliminclude", mh,
"on"),
5826 m_zliminclude (
"zliminclude", mh,
"on")
5889 const std::set<std::string>& pnames = all_property_names ();
5891 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
5895 error (
"set: \"%s\" is read-only", pname.c_str ());
5899 if (pname.
compare (
"alphadata"))
5900 set_alphadata (val);
5901 else if (pname.
compare (
"alphadatamapping"))
5902 set_alphadatamapping (val);
5903 else if (pname.
compare (
"ambientstrength"))
5904 set_ambientstrength (val);
5905 else if (pname.
compare (
"backfacelighting"))
5906 set_backfacelighting (val);
5907 else if (pname.
compare (
"cdata"))
5909 else if (pname.
compare (
"cdatamapping"))
5910 set_cdatamapping (val);
5911 else if (pname.
compare (
"cdatasource"))
5912 set_cdatasource (val);
5913 else if (pname.
compare (
"diffusestrength"))
5914 set_diffusestrength (val);
5915 else if (pname.
compare (
"displayname"))
5916 set_displayname (val);
5917 else if (pname.
compare (
"edgealpha"))
5918 set_edgealpha (val);
5919 else if (pname.
compare (
"edgecolor"))
5920 set_edgecolor (val);
5921 else if (pname.
compare (
"edgelighting"))
5922 set_edgelighting (val);
5923 else if (pname.
compare (
"facealpha"))
5924 set_facealpha (val);
5925 else if (pname.
compare (
"facecolor"))
5926 set_facecolor (val);
5927 else if (pname.
compare (
"facelighting"))
5928 set_facelighting (val);
5929 else if (pname.
compare (
"facenormals"))
5930 set_facenormals (val);
5931 else if (pname.
compare (
"facenormalsmode"))
5932 set_facenormalsmode (val);
5933 else if (pname.
compare (
"linestyle"))
5934 set_linestyle (val);
5935 else if (pname.
compare (
"linewidth"))
5936 set_linewidth (val);
5937 else if (pname.
compare (
"marker"))
5939 else if (pname.
compare (
"markeredgecolor"))
5940 set_markeredgecolor (val);
5941 else if (pname.
compare (
"markerfacecolor"))
5942 set_markerfacecolor (val);
5943 else if (pname.
compare (
"markersize"))
5944 set_markersize (val);
5945 else if (pname.
compare (
"meshstyle"))
5946 set_meshstyle (val);
5947 else if (pname.
compare (
"specularcolorreflectance"))
5948 set_specularcolorreflectance (val);
5949 else if (pname.
compare (
"specularexponent"))
5950 set_specularexponent (val);
5951 else if (pname.
compare (
"specularstrength"))
5952 set_specularstrength (val);
5953 else if (pname.
compare (
"vertexnormals"))
5954 set_vertexnormals (val);
5955 else if (pname.
compare (
"vertexnormalsmode"))
5956 set_vertexnormalsmode (val);
5957 else if (pname.
compare (
"xdata"))
5959 else if (pname.
compare (
"xdatasource"))
5960 set_xdatasource (val);
5961 else if (pname.
compare (
"ydata"))
5963 else if (pname.
compare (
"ydatasource"))
5964 set_ydatasource (val);
5965 else if (pname.
compare (
"zdata"))
5967 else if (pname.
compare (
"zdatasource"))
5968 set_zdatasource (val);
5969 else if (pname.
compare (
"aliminclude"))
5970 set_aliminclude (val);
5971 else if (pname.
compare (
"climinclude"))
5972 set_climinclude (val);
5973 else if (pname.
compare (
"xliminclude"))
5974 set_xliminclude (val);
5975 else if (pname.
compare (
"yliminclude"))
5976 set_yliminclude (val);
5977 else if (pname.
compare (
"zliminclude"))
5978 set_zliminclude (val);
5989 m.assign (
"alphadatamapping",
octave_value (get_alphadatamapping ()));
5990 m.assign (
"ambientstrength",
octave_value (get_ambientstrength ()));
5991 m.assign (
"backfacelighting",
octave_value (get_backfacelighting ()));
5993 m.assign (
"cdatamapping",
octave_value (get_cdatamapping ()));
5994 m.assign (
"cdatasource",
octave_value (get_cdatasource ()));
5995 m.assign (
"diffusestrength",
octave_value (get_diffusestrength ()));
5996 m.assign (
"displayname",
octave_value (get_displayname ()));
5999 m.assign (
"edgelighting",
octave_value (get_edgelighting ()));
6002 m.assign (
"facelighting",
octave_value (get_facelighting ()));
6003 m.assign (
"facenormals",
octave_value (get_facenormals ()));
6004 m.assign (
"facenormalsmode",
octave_value (get_facenormalsmode ()));
6008 m.assign (
"markeredgecolor",
octave_value (get_markeredgecolor ()));
6009 m.assign (
"markerfacecolor",
octave_value (get_markerfacecolor ()));
6012 m.assign (
"specularcolorreflectance",
octave_value (get_specularcolorreflectance ()));
6013 m.assign (
"specularexponent",
octave_value (get_specularexponent ()));
6014 m.assign (
"specularstrength",
octave_value (get_specularstrength ()));
6015 m.assign (
"vertexnormals",
octave_value (get_vertexnormals ()));
6016 m.assign (
"vertexnormalsmode",
octave_value (get_vertexnormalsmode ()));
6018 m.assign (
"xdatasource",
octave_value (get_xdatasource ()));
6020 m.assign (
"ydatasource",
octave_value (get_ydatasource ()));
6022 m.assign (
"zdatasource",
octave_value (get_zdatasource ()));
6034 m.assign (
"aliminclude",
octave_value (get_aliminclude ()));
6036 m.assign (
"climinclude",
octave_value (get_climinclude ()));
6038 m.assign (
"xliminclude",
octave_value (get_xliminclude ()));
6040 m.assign (
"yliminclude",
octave_value (get_yliminclude ()));
6042 m.assign (
"zliminclude",
octave_value (get_zliminclude ()));
6052 const std::set<std::string>& pnames = all_property_names ();
6054 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
6056 if (pname.
compare (
"alphadata"))
6057 retval = get_alphadata ();
6058 else if (pname.
compare (
"alphadatamapping"))
6059 retval = get_alphadatamapping ();
6060 else if (pname.
compare (
"ambientstrength"))
6061 retval = get_ambientstrength ();
6062 else if (pname.
compare (
"backfacelighting"))
6063 retval = get_backfacelighting ();
6064 else if (pname.
compare (
"cdata"))
6065 retval = get_cdata ();
6066 else if (pname.
compare (
"cdatamapping"))
6067 retval = get_cdatamapping ();
6068 else if (pname.
compare (
"cdatasource"))
6069 retval = get_cdatasource ();
6070 else if (pname.
compare (
"diffusestrength"))
6071 retval = get_diffusestrength ();
6072 else if (pname.
compare (
"displayname"))
6073 retval = get_displayname ();
6074 else if (pname.
compare (
"edgealpha"))
6075 retval = get_edgealpha ();
6076 else if (pname.
compare (
"edgecolor"))
6077 retval = get_edgecolor ();
6078 else if (pname.
compare (
"edgelighting"))
6079 retval = get_edgelighting ();
6080 else if (pname.
compare (
"facealpha"))
6081 retval = get_facealpha ();
6082 else if (pname.
compare (
"facecolor"))
6083 retval = get_facecolor ();
6084 else if (pname.
compare (
"facelighting"))
6085 retval = get_facelighting ();
6086 else if (pname.
compare (
"facenormals"))
6087 retval = get_facenormals ();
6088 else if (pname.
compare (
"facenormalsmode"))
6089 retval = get_facenormalsmode ();
6090 else if (pname.
compare (
"linestyle"))
6091 retval = get_linestyle ();
6092 else if (pname.
compare (
"linewidth"))
6093 retval = get_linewidth ();
6094 else if (pname.
compare (
"marker"))
6095 retval = get_marker ();
6096 else if (pname.
compare (
"markeredgecolor"))
6097 retval = get_markeredgecolor ();
6098 else if (pname.
compare (
"markerfacecolor"))
6099 retval = get_markerfacecolor ();
6100 else if (pname.
compare (
"markersize"))
6101 retval = get_markersize ();
6102 else if (pname.
compare (
"meshstyle"))
6103 retval = get_meshstyle ();
6104 else if (pname.
compare (
"specularcolorreflectance"))
6105 retval = get_specularcolorreflectance ();
6106 else if (pname.
compare (
"specularexponent"))
6107 retval = get_specularexponent ();
6108 else if (pname.
compare (
"specularstrength"))
6109 retval = get_specularstrength ();
6110 else if (pname.
compare (
"vertexnormals"))
6111 retval = get_vertexnormals ();
6112 else if (pname.
compare (
"vertexnormalsmode"))
6113 retval = get_vertexnormalsmode ();
6114 else if (pname.
compare (
"xdata"))
6115 retval = get_xdata ();
6116 else if (pname.
compare (
"xdatasource"))
6117 retval = get_xdatasource ();
6118 else if (pname.
compare (
"ydata"))
6119 retval = get_ydata ();
6120 else if (pname.
compare (
"ydatasource"))
6121 retval = get_ydatasource ();
6122 else if (pname.
compare (
"zdata"))
6123 retval = get_zdata ();
6124 else if (pname.
compare (
"zdatasource"))
6125 retval = get_zdatasource ();
6126 else if (pname.
compare (
"alim"))
6127 retval = get_alim ();
6128 else if (pname.
compare (
"clim"))
6129 retval = get_clim ();
6130 else if (pname.
compare (
"xlim"))
6131 retval = get_xlim ();
6132 else if (pname.
compare (
"ylim"))
6133 retval = get_ylim ();
6134 else if (pname.
compare (
"zlim"))
6135 retval = get_zlim ();
6136 else if (pname.
compare (
"aliminclude"))
6137 retval = get_aliminclude ();
6138 else if (pname.
compare (
"climinclude"))
6139 retval = get_climinclude ();
6140 else if (pname.
compare (
"xliminclude"))
6141 retval = get_xliminclude ();
6142 else if (pname.
compare (
"yliminclude"))
6143 retval = get_yliminclude ();
6144 else if (pname.
compare (
"zliminclude"))
6145 retval = get_zliminclude ();
6155 const std::set<std::string>& pnames = all_property_names ();
6157 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
6159 if (pname.
compare (
"alphadata"))
6160 return property (&m_alphadata,
true);
6161 else if (pname.
compare (
"alphadatamapping"))
6162 return property (&m_alphadatamapping,
true);
6163 else if (pname.
compare (
"ambientstrength"))
6164 return property (&m_ambientstrength,
true);
6165 else if (pname.
compare (
"backfacelighting"))
6166 return property (&m_backfacelighting,
true);
6167 else if (pname.
compare (
"cdata"))
6169 else if (pname.
compare (
"cdatamapping"))
6170 return property (&m_cdatamapping,
true);
6171 else if (pname.
compare (
"cdatasource"))
6172 return property (&m_cdatasource,
true);
6173 else if (pname.
compare (
"diffusestrength"))
6174 return property (&m_diffusestrength,
true);
6175 else if (pname.
compare (
"displayname"))
6176 return property (&m_displayname,
true);
6177 else if (pname.
compare (
"edgealpha"))
6178 return property (&m_edgealpha,
true);
6179 else if (pname.
compare (
"edgecolor"))
6180 return property (&m_edgecolor,
true);
6181 else if (pname.
compare (
"edgelighting"))
6182 return property (&m_edgelighting,
true);
6183 else if (pname.
compare (
"facealpha"))
6184 return property (&m_facealpha,
true);
6185 else if (pname.
compare (
"facecolor"))
6186 return property (&m_facecolor,
true);
6187 else if (pname.
compare (
"facelighting"))
6188 return property (&m_facelighting,
true);
6189 else if (pname.
compare (
"facenormals"))
6190 return property (&m_facenormals,
true);
6191 else if (pname.
compare (
"facenormalsmode"))
6192 return property (&m_facenormalsmode,
true);
6193 else if (pname.
compare (
"linestyle"))
6194 return property (&m_linestyle,
true);
6195 else if (pname.
compare (
"linewidth"))
6196 return property (&m_linewidth,
true);
6197 else if (pname.
compare (
"marker"))
6199 else if (pname.
compare (
"markeredgecolor"))
6200 return property (&m_markeredgecolor,
true);
6201 else if (pname.
compare (
"markerfacecolor"))
6202 return property (&m_markerfacecolor,
true);
6203 else if (pname.
compare (
"markersize"))
6204 return property (&m_markersize,
true);
6205 else if (pname.
compare (
"meshstyle"))
6206 return property (&m_meshstyle,
true);
6207 else if (pname.
compare (
"specularcolorreflectance"))
6208 return property (&m_specularcolorreflectance,
true);
6209 else if (pname.
compare (
"specularexponent"))
6210 return property (&m_specularexponent,
true);
6211 else if (pname.
compare (
"specularstrength"))
6212 return property (&m_specularstrength,
true);
6213 else if (pname.
compare (
"vertexnormals"))
6214 return property (&m_vertexnormals,
true);
6215 else if (pname.
compare (
"vertexnormalsmode"))
6216 return property (&m_vertexnormalsmode,
true);
6217 else if (pname.
compare (
"xdata"))
6219 else if (pname.
compare (
"xdatasource"))
6220 return property (&m_xdatasource,
true);
6221 else if (pname.
compare (
"ydata"))
6223 else if (pname.
compare (
"ydatasource"))
6224 return property (&m_ydatasource,
true);
6225 else if (pname.
compare (
"zdata"))
6227 else if (pname.
compare (
"zdatasource"))
6228 return property (&m_zdatasource,
true);
6229 else if (pname.
compare (
"alim"))
6231 else if (pname.
compare (
"clim"))
6233 else if (pname.
compare (
"xlim"))
6235 else if (pname.
compare (
"ylim"))
6237 else if (pname.
compare (
"zlim"))
6239 else if (pname.
compare (
"aliminclude"))
6240 return property (&m_aliminclude,
true);
6241 else if (pname.
compare (
"climinclude"))
6242 return property (&m_climinclude,
true);
6243 else if (pname.
compare (
"xliminclude"))
6244 return property (&m_xliminclude,
true);
6245 else if (pname.
compare (
"yliminclude"))
6246 return property (&m_yliminclude,
true);
6247 else if (pname.
compare (
"zliminclude"))
6248 return property (&m_zliminclude,
true);
6258 m[
"alphadata"] =
Matrix (1, 1, 1.0);
6259 m[
"alphadatamapping"] =
"scaled";
6260 m[
"ambientstrength"] = 0.3;
6261 m[
"backfacelighting"] =
"reverselit";
6262 m[
"cdata"] = default_surface_cdata ();
6263 m[
"cdatamapping"] =
"scaled";
6264 m[
"cdatasource"] =
"";
6265 m[
"diffusestrength"] = 0.6;
6266 m[
"displayname"] =
"";
6269 m[
"edgelighting"] =
"none";
6272 m[
"facelighting"] =
"flat";
6274 m[
"facenormalsmode"] =
"auto";
6275 m[
"linestyle"] =
"-";
6276 m[
"linewidth"] = 0.5;
6277 m[
"marker"] =
"none";
6280 m[
"markersize"] = 6;
6281 m[
"meshstyle"] =
"both";
6282 m[
"specularcolorreflectance"] = 1;
6283 m[
"specularexponent"] = 10;
6284 m[
"specularstrength"] = 0.9;
6285 m[
"vertexnormals"] =
Matrix ();
6286 m[
"vertexnormalsmode"] =
"auto";
6287 m[
"xdata"] = default_surface_xdata ();
6288 m[
"xdatasource"] =
"";
6289 m[
"ydata"] = default_surface_ydata ();
6290 m[
"ydatasource"] =
"";
6291 m[
"zdata"] = default_surface_zdata ();
6292 m[
"zdatasource"] =
"";
6298 m[
"aliminclude"] =
"on";
6299 m[
"climinclude"] =
"on";
6300 m[
"xliminclude"] =
"on";
6301 m[
"yliminclude"] =
"on";
6302 m[
"zliminclude"] =
"on";
6307 std::string surface::properties::s_go_name (
"surface");
6309 std::set<std::string>
6312 static std::set<std::string> all_pnames;
6314 static bool initialized =
false;
6318 all_pnames.insert (
"alphadata");
6319 all_pnames.insert (
"alphadatamapping");
6320 all_pnames.insert (
"ambientstrength");
6321 all_pnames.insert (
"backfacelighting");
6322 all_pnames.insert (
"cdata");
6323 all_pnames.insert (
"cdatamapping");
6324 all_pnames.insert (
"cdatasource");
6325 all_pnames.insert (
"diffusestrength");
6326 all_pnames.insert (
"displayname");
6327 all_pnames.insert (
"edgealpha");
6328 all_pnames.insert (
"edgecolor");
6329 all_pnames.insert (
"edgelighting");
6330 all_pnames.insert (
"facealpha");
6331 all_pnames.insert (
"facecolor");
6332 all_pnames.insert (
"facelighting");
6333 all_pnames.insert (
"facenormals");
6334 all_pnames.insert (
"facenormalsmode");
6335 all_pnames.insert (
"linestyle");
6336 all_pnames.insert (
"linewidth");
6337 all_pnames.insert (
"marker");
6338 all_pnames.insert (
"markeredgecolor");
6339 all_pnames.insert (
"markerfacecolor");
6340 all_pnames.insert (
"markersize");
6341 all_pnames.insert (
"meshstyle");
6342 all_pnames.insert (
"specularcolorreflectance");
6343 all_pnames.insert (
"specularexponent");
6344 all_pnames.insert (
"specularstrength");
6345 all_pnames.insert (
"vertexnormals");
6346 all_pnames.insert (
"vertexnormalsmode");
6347 all_pnames.insert (
"xdata");
6348 all_pnames.insert (
"xdatasource");
6349 all_pnames.insert (
"ydata");
6350 all_pnames.insert (
"ydatasource");
6351 all_pnames.insert (
"zdata");
6352 all_pnames.insert (
"zdatasource");
6353 all_pnames.insert (
"alim");
6354 all_pnames.insert (
"clim");
6355 all_pnames.insert (
"xlim");
6356 all_pnames.insert (
"ylim");
6357 all_pnames.insert (
"zlim");
6358 all_pnames.insert (
"aliminclude");
6359 all_pnames.insert (
"climinclude");
6360 all_pnames.insert (
"xliminclude");
6361 all_pnames.insert (
"yliminclude");
6362 all_pnames.insert (
"zliminclude");
6365 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
6376 std::set<std::string> pnames = core_property_names ();
6378 return pnames.find (pname) != pnames.end ();
6381 std::set<std::string>
6384 static std::set<std::string> all_pnames;
6386 static bool initialized =
false;
6390 all_pnames.insert (
"alim");
6391 all_pnames.insert (
"clim");
6392 all_pnames.insert (
"xlim");
6393 all_pnames.insert (
"ylim");
6394 all_pnames.insert (
"zlim");
6397 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
6408 std::set<std::string> pnames = readonly_property_names ();
6410 return pnames.find (pname) != pnames.end ();
6413 std::set<std::string>
6416 static std::set<std::string> all_pnames = core_property_names ();
6418 std::set<std::string> retval = all_pnames;
6420 retval.insert (base_props.begin (), base_props.end ());
6428 std::set<std::string> pnames = all_property_names ();
6430 return pnames.find (pname) != pnames.end ();
6437 m_displayname (
"displayname", mh,
""),
6438 m_alim (
"alim", mh,
Matrix ()),
6439 m_clim (
"clim", mh,
Matrix ()),
6440 m_xlim (
"xlim", mh,
Matrix ()),
6441 m_ylim (
"ylim", mh,
Matrix ()),
6442 m_zlim (
"zlim", mh,
Matrix ()),
6443 m_aliminclude (
"aliminclude", mh,
"on"),
6444 m_climinclude (
"climinclude", mh,
"on"),
6445 m_xliminclude (
"xliminclude", mh,
"on"),
6446 m_yliminclude (
"yliminclude", mh,
"on"),
6447 m_zliminclude (
"zliminclude", mh,
"on")
6476 const std::set<std::string>& pnames = all_property_names ();
6478 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
6482 error (
"set: \"%s\" is read-only", pname.c_str ());
6486 if (pname.
compare (
"displayname"))
6487 set_displayname (val);
6488 else if (pname.
compare (
"aliminclude"))
6489 set_aliminclude (val);
6490 else if (pname.
compare (
"climinclude"))
6491 set_climinclude (val);
6492 else if (pname.
compare (
"xliminclude"))
6493 set_xliminclude (val);
6494 else if (pname.
compare (
"yliminclude"))
6495 set_yliminclude (val);
6496 else if (pname.
compare (
"zliminclude"))
6497 set_zliminclude (val);
6507 m.assign (
"displayname",
octave_value (get_displayname ()));
6519 m.assign (
"aliminclude",
octave_value (get_aliminclude ()));
6521 m.assign (
"climinclude",
octave_value (get_climinclude ()));
6523 m.assign (
"xliminclude",
octave_value (get_xliminclude ()));
6525 m.assign (
"yliminclude",
octave_value (get_yliminclude ()));
6527 m.assign (
"zliminclude",
octave_value (get_zliminclude ()));
6537 const std::set<std::string>& pnames = all_property_names ();
6539 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
6541 if (pname.
compare (
"displayname"))
6542 retval = get_displayname ();
6543 else if (pname.
compare (
"alim"))
6544 retval = get_alim ();
6545 else if (pname.
compare (
"clim"))
6546 retval = get_clim ();
6547 else if (pname.
compare (
"xlim"))
6548 retval = get_xlim ();
6549 else if (pname.
compare (
"ylim"))
6550 retval = get_ylim ();
6551 else if (pname.
compare (
"zlim"))
6552 retval = get_zlim ();
6553 else if (pname.
compare (
"aliminclude"))
6554 retval = get_aliminclude ();
6555 else if (pname.
compare (
"climinclude"))
6556 retval = get_climinclude ();
6557 else if (pname.
compare (
"xliminclude"))
6558 retval = get_xliminclude ();
6559 else if (pname.
compare (
"yliminclude"))
6560 retval = get_yliminclude ();
6561 else if (pname.
compare (
"zliminclude"))
6562 retval = get_zliminclude ();
6572 const std::set<std::string>& pnames = all_property_names ();
6574 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
6576 if (pname.
compare (
"displayname"))
6577 return property (&m_displayname,
true);
6578 else if (pname.
compare (
"alim"))
6580 else if (pname.
compare (
"clim"))
6582 else if (pname.
compare (
"xlim"))
6584 else if (pname.
compare (
"ylim"))
6586 else if (pname.
compare (
"zlim"))
6588 else if (pname.
compare (
"aliminclude"))
6589 return property (&m_aliminclude,
true);
6590 else if (pname.
compare (
"climinclude"))
6591 return property (&m_climinclude,
true);
6592 else if (pname.
compare (
"xliminclude"))
6593 return property (&m_xliminclude,
true);
6594 else if (pname.
compare (
"yliminclude"))
6595 return property (&m_yliminclude,
true);
6596 else if (pname.
compare (
"zliminclude"))
6597 return property (&m_zliminclude,
true);
6607 m[
"displayname"] =
"";
6613 m[
"aliminclude"] =
"on";
6614 m[
"climinclude"] =
"on";
6615 m[
"xliminclude"] =
"on";
6616 m[
"yliminclude"] =
"on";
6617 m[
"zliminclude"] =
"on";
6622 std::string hggroup::properties::s_go_name (
"hggroup");
6624 std::set<std::string>
6627 static std::set<std::string> all_pnames;
6629 static bool initialized =
false;
6633 all_pnames.insert (
"displayname");
6634 all_pnames.insert (
"alim");
6635 all_pnames.insert (
"clim");
6636 all_pnames.insert (
"xlim");
6637 all_pnames.insert (
"ylim");
6638 all_pnames.insert (
"zlim");
6639 all_pnames.insert (
"aliminclude");
6640 all_pnames.insert (
"climinclude");
6641 all_pnames.insert (
"xliminclude");
6642 all_pnames.insert (
"yliminclude");
6643 all_pnames.insert (
"zliminclude");
6646 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
6657 std::set<std::string> pnames = core_property_names ();
6659 return pnames.find (pname) != pnames.end ();
6662 std::set<std::string>
6665 static std::set<std::string> all_pnames;
6667 static bool initialized =
false;
6671 all_pnames.insert (
"alim");
6672 all_pnames.insert (
"clim");
6673 all_pnames.insert (
"xlim");
6674 all_pnames.insert (
"ylim");
6675 all_pnames.insert (
"zlim");
6678 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
6689 std::set<std::string> pnames = readonly_property_names ();
6691 return pnames.find (pname) != pnames.end ();
6694 std::set<std::string>
6697 static std::set<std::string> all_pnames = core_property_names ();
6699 std::set<std::string> retval = all_pnames;
6701 retval.insert (base_props.begin (), base_props.end ());
6709 std::set<std::string> pnames = all_property_names ();
6711 return pnames.find (pname) != pnames.end ();
6718 m_accelerator (
"accelerator", mh,
""),
6719 m_callback (
"callback", mh,
Matrix ()),
6720 m_checked (
"checked", mh,
"off"),
6721 m_enable (
"enable", mh,
"on"),
6722 m_foregroundcolor (
"foregroundcolor", mh,
color_values (0, 0, 0)),
6723 m_label (
"label", mh,
""),
6724 m_menuselectedfcn (
"menuselectedfcn", mh,
Matrix ()),
6725 m_position (
"position", mh, 0),
6726 m_separator (
"separator", mh,
"off"),
6727 m_text (
"text", mh,
""),
6728 m___fltk_label__ (
"__fltk_label__", mh,
""),
6729 m___object__ (
"__object__", mh,
Matrix ())
6753 const std::set<std::string>& pnames = all_property_names ();
6755 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
6759 error (
"set: \"%s\" is read-only", pname.c_str ());
6763 if (pname.
compare (
"accelerator"))
6764 set_accelerator (val);
6765 else if (pname.
compare (
"callback"))
6767 else if (pname.
compare (
"checked"))
6769 else if (pname.
compare (
"enable"))
6771 else if (pname.
compare (
"foregroundcolor"))
6772 set_foregroundcolor (val);
6773 else if (pname.
compare (
"label"))
6775 else if (pname.
compare (
"menuselectedfcn"))
6776 set_menuselectedfcn (val);
6777 else if (pname.
compare (
"position"))
6779 else if (pname.
compare (
"separator"))
6780 set_separator (val);
6781 else if (pname.
compare (
"text"))
6783 else if (pname.
compare (
"__fltk_label__"))
6784 set___fltk_label__ (val);
6785 else if (pname.
compare (
"__object__"))
6786 set___object__ (val);
6796 m.assign (
"accelerator",
octave_value (get_accelerator ()));
6801 m.assign (
"foregroundcolor",
octave_value (get_foregroundcolor ()));
6804 m.assign (
"menuselectedfcn",
octave_value (get_menuselectedfcn ()));
6809 m.assign (
"__fltk_label__",
octave_value (get___fltk_label__ ()));
6821 const std::set<std::string>& pnames = all_property_names ();
6823 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
6825 if (pname.
compare (
"accelerator"))
6826 retval = get_accelerator ();
6827 else if (pname.
compare (
"callback"))
6828 retval = get_callback ();
6829 else if (pname.
compare (
"checked"))
6830 retval = get_checked ();
6831 else if (pname.
compare (
"enable"))
6832 retval = get_enable ();
6833 else if (pname.
compare (
"foregroundcolor"))
6834 retval = get_foregroundcolor ();
6835 else if (pname.
compare (
"label"))
6836 retval = get_label ();
6837 else if (pname.
compare (
"menuselectedfcn"))
6838 retval = get_menuselectedfcn ();
6839 else if (pname.
compare (
"position"))
6840 retval = get_position ();
6841 else if (pname.
compare (
"separator"))
6842 retval = get_separator ();
6843 else if (pname.
compare (
"text"))
6844 retval = get_text ();
6845 else if (pname.
compare (
"__fltk_label__"))
6846 retval = get___fltk_label__ ();
6847 else if (pname.
compare (
"__object__"))
6848 retval = get___object__ ();
6858 const std::set<std::string>& pnames = all_property_names ();
6860 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
6862 if (pname.
compare (
"accelerator"))
6863 return property (&m_accelerator,
true);
6864 else if (pname.
compare (
"callback"))
6865 return property (&m_callback,
true);
6866 else if (pname.
compare (
"checked"))
6867 return property (&m_checked,
true);
6868 else if (pname.
compare (
"enable"))
6870 else if (pname.
compare (
"foregroundcolor"))
6871 return property (&m_foregroundcolor,
true);
6872 else if (pname.
compare (
"label"))
6874 else if (pname.
compare (
"menuselectedfcn"))
6875 return property (&m_menuselectedfcn,
true);
6876 else if (pname.
compare (
"position"))
6877 return property (&m_position,
true);
6878 else if (pname.
compare (
"separator"))
6879 return property (&m_separator,
true);
6880 else if (pname.
compare (
"text"))
6882 else if (pname.
compare (
"__fltk_label__"))
6883 return property (&m___fltk_label__,
true);
6884 else if (pname.
compare (
"__object__"))
6885 return property (&m___object__,
true);
6895 m[
"accelerator"] =
"";
6897 m[
"checked"] =
"off";
6901 m[
"menuselectedfcn"] =
Matrix ();
6903 m[
"separator"] =
"off";
6905 m[
"__fltk_label__"] =
"";
6911 std::string uimenu::properties::s_go_name (
"uimenu");
6913 std::set<std::string>
6916 static std::set<std::string> all_pnames;
6918 static bool initialized =
false;
6922 all_pnames.insert (
"accelerator");
6923 all_pnames.insert (
"callback");
6924 all_pnames.insert (
"checked");
6925 all_pnames.insert (
"enable");
6926 all_pnames.insert (
"foregroundcolor");
6927 all_pnames.insert (
"label");
6928 all_pnames.insert (
"menuselectedfcn");
6929 all_pnames.insert (
"position");
6930 all_pnames.insert (
"separator");
6931 all_pnames.insert (
"text");
6932 all_pnames.insert (
"__fltk_label__");
6933 all_pnames.insert (
"__object__");
6936 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
6947 std::set<std::string> pnames = core_property_names ();
6949 return pnames.find (pname) != pnames.end ();
6952 std::set<std::string>
6955 static std::set<std::string> all_pnames;
6957 static bool initialized =
false;
6963 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
6974 std::set<std::string> pnames = readonly_property_names ();
6976 return pnames.find (pname) != pnames.end ();
6979 std::set<std::string>
6982 static std::set<std::string> all_pnames = core_property_names ();
6984 std::set<std::string> retval = all_pnames;
6986 retval.insert (base_props.begin (), base_props.end ());
6994 std::set<std::string> pnames = all_property_names ();
6996 return pnames.find (pname) != pnames.end ();
7003 m_callback (
"callback", mh,
Matrix ()),
7004 m_position (
"position", mh,
Matrix (1, 2, 0.0)),
7005 m___object__ (
"__object__", mh,
Matrix ())
7017 const std::set<std::string>& pnames = all_property_names ();
7019 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
7023 error (
"set: \"%s\" is read-only", pname.c_str ());
7027 if (pname.
compare (
"callback"))
7029 else if (pname.
compare (
"position"))
7031 else if (pname.
compare (
"__object__"))
7032 set___object__ (val);
7055 const std::set<std::string>& pnames = all_property_names ();
7057 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
7059 if (pname.
compare (
"callback"))
7060 retval = get_callback ();
7061 else if (pname.
compare (
"position"))
7062 retval = get_position ();
7063 else if (pname.
compare (
"__object__"))
7064 retval = get___object__ ();
7074 const std::set<std::string>& pnames = all_property_names ();
7076 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
7078 if (pname.
compare (
"callback"))
7079 return property (&m_callback,
true);
7080 else if (pname.
compare (
"position"))
7081 return property (&m_position,
true);
7082 else if (pname.
compare (
"__object__"))
7083 return property (&m___object__,
true);
7094 m[
"position"] =
Matrix (1, 2, 0.0);
7100 std::string uicontextmenu::properties::s_go_name (
"uicontextmenu");
7102 std::set<std::string>
7105 static std::set<std::string> all_pnames;
7107 static bool initialized =
false;
7111 all_pnames.insert (
"callback");
7112 all_pnames.insert (
"position");
7113 all_pnames.insert (
"__object__");
7116 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
7127 std::set<std::string> pnames = core_property_names ();
7129 return pnames.find (pname) != pnames.end ();
7132 std::set<std::string>
7135 static std::set<std::string> all_pnames;
7137 static bool initialized =
false;
7143 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
7154 std::set<std::string> pnames = readonly_property_names ();
7156 return pnames.find (pname) != pnames.end ();
7159 std::set<std::string>
7162 static std::set<std::string> all_pnames = core_property_names ();
7164 std::set<std::string> retval = all_pnames;
7166 retval.insert (base_props.begin (), base_props.end ());
7174 std::set<std::string> pnames = all_property_names ();
7176 return pnames.find (pname) != pnames.end ();
7183 m_backgroundcolor (
"backgroundcolor", mh,
color_values (0.94, 0.94, 0.94)),
7184 m_callback (
"callback", mh,
Matrix ()),
7185 m_cdata (
"cdata", mh,
Matrix ()),
7186 m_clipping (
"clipping", mh,
"on"),
7187 m_enable (
"enable", mh,
"{on}|inactive|off"),
7188 m_extent (
"extent", mh,
Matrix (1, 4, 0.0)),
7189 m_fontangle (
"fontangle", mh,
"{normal}|italic"),
7191 m_fontsize (
"fontsize", mh, 10),
7192 m_fontunits (
"fontunits", mh,
"inches|centimeters|normalized|{points}|pixels"),
7193 m_fontweight (
"fontweight", mh,
"{normal}|bold"),
7194 m_foregroundcolor (
"foregroundcolor", mh,
color_values (0, 0, 0)),
7195 m_horizontalalignment (
"horizontalalignment", mh,
"left|{center}|right"),
7196 m_keypressfcn (
"keypressfcn", mh,
Matrix ()),
7197 m_listboxtop (
"listboxtop", mh, 1),
7198 m_max (
"max", mh, 1),
7199 m_min (
"min", mh, 0),
7200 m_position (
"position", mh, default_control_position ()),
7201 m_sliderstep (
"sliderstep", mh, default_control_sliderstep ()),
7202 m_string (
"string", mh,
""),
7203 m_style (
"style", mh,
"{pushbutton}|togglebutton|radiobutton|checkbox|edit|text|slider|frame|listbox|popupmenu"),
7204 m_tooltipstring (
"tooltipstring", mh,
""),
7205 m_units (
"units", mh,
"normalized|inches|centimeters|points|{pixels}|characters"),
7206 m_value (
"value", mh,
Matrix (1, 1, 0.0)),
7207 m_verticalalignment (
"verticalalignment", mh,
"top|{middle}|bottom"),
7208 m___focus__ (
"__focus__", mh,
"off"),
7209 m___object__ (
"__object__", mh,
Matrix ())
7246 const std::set<std::string>& pnames = all_property_names ();
7248 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
7252 error (
"set: \"%s\" is read-only", pname.c_str ());
7256 if (pname.
compare (
"backgroundcolor"))
7257 set_backgroundcolor (val);
7258 else if (pname.
compare (
"callback"))
7260 else if (pname.
compare (
"cdata"))
7262 else if (pname.
compare (
"clipping"))
7264 else if (pname.
compare (
"enable"))
7266 else if (pname.
compare (
"fontangle"))
7267 set_fontangle (val);
7268 else if (pname.
compare (
"fontname"))
7270 else if (pname.
compare (
"fontsize"))
7272 else if (pname.
compare (
"fontunits"))
7273 set_fontunits (val);
7274 else if (pname.
compare (
"fontweight"))
7275 set_fontweight (val);
7276 else if (pname.
compare (
"foregroundcolor"))
7277 set_foregroundcolor (val);
7278 else if (pname.
compare (
"horizontalalignment"))
7279 set_horizontalalignment (val);
7280 else if (pname.
compare (
"keypressfcn"))
7281 set_keypressfcn (val);
7282 else if (pname.
compare (
"listboxtop"))
7283 set_listboxtop (val);
7284 else if (pname.
compare (
"max"))
7286 else if (pname.
compare (
"min"))
7288 else if (pname.
compare (
"position"))
7290 else if (pname.
compare (
"sliderstep"))
7291 set_sliderstep (val);
7292 else if (pname.
compare (
"string"))
7294 else if (pname.
compare (
"style"))
7296 else if (pname.
compare (
"tooltipstring"))
7297 set_tooltipstring (val);
7298 else if (pname.
compare (
"units"))
7300 else if (pname.
compare (
"value"))
7302 else if (pname.
compare (
"verticalalignment"))
7303 set_verticalalignment (val);
7304 else if (pname.
compare (
"__focus__"))
7305 set___focus__ (val);
7306 else if (pname.
compare (
"__object__"))
7307 set___object__ (val);
7317 m.assign (
"backgroundcolor",
octave_value (get_backgroundcolor ()));
7328 m.assign (
"foregroundcolor",
octave_value (get_foregroundcolor ()));
7329 m.assign (
"horizontalalignment",
octave_value (get_horizontalalignment ()));
7330 m.assign (
"keypressfcn",
octave_value (get_keypressfcn ()));
7338 m.assign (
"tooltipstring",
octave_value (get_tooltipstring ()));
7341 m.assign (
"verticalalignment",
octave_value (get_verticalalignment ()));
7355 const std::set<std::string>& pnames = all_property_names ();
7357 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
7359 if (pname.
compare (
"backgroundcolor"))
7360 retval = get_backgroundcolor ();
7361 else if (pname.
compare (
"callback"))
7362 retval = get_callback ();
7363 else if (pname.
compare (
"cdata"))
7364 retval = get_cdata ();
7365 else if (pname.
compare (
"clipping"))
7366 retval = get_clipping ();
7367 else if (pname.
compare (
"enable"))
7368 retval = get_enable ();
7369 else if (pname.
compare (
"extent"))
7370 retval = get_extent ();
7371 else if (pname.
compare (
"fontangle"))
7372 retval = get_fontangle ();
7373 else if (pname.
compare (
"fontname"))
7374 retval = get_fontname ();
7375 else if (pname.
compare (
"fontsize"))
7376 retval = get_fontsize ();
7377 else if (pname.
compare (
"fontunits"))
7378 retval = get_fontunits ();
7379 else if (pname.
compare (
"fontweight"))
7380 retval = get_fontweight ();
7381 else if (pname.
compare (
"foregroundcolor"))
7382 retval = get_foregroundcolor ();
7383 else if (pname.
compare (
"horizontalalignment"))
7384 retval = get_horizontalalignment ();
7385 else if (pname.
compare (
"keypressfcn"))
7386 retval = get_keypressfcn ();
7387 else if (pname.
compare (
"listboxtop"))
7388 retval = get_listboxtop ();
7389 else if (pname.
compare (
"max"))
7390 retval = get_max ();
7391 else if (pname.
compare (
"min"))
7392 retval = get_min ();
7393 else if (pname.
compare (
"position"))
7394 retval = get_position ();
7395 else if (pname.
compare (
"sliderstep"))
7396 retval = get_sliderstep ();
7397 else if (pname.
compare (
"string"))
7398 retval = get_string ();
7399 else if (pname.
compare (
"style"))
7400 retval = get_style ();
7401 else if (pname.
compare (
"tooltipstring"))
7402 retval = get_tooltipstring ();
7403 else if (pname.
compare (
"units"))
7404 retval = get_units ();
7405 else if (pname.
compare (
"value"))
7406 retval = get_value ();
7407 else if (pname.
compare (
"verticalalignment"))
7408 retval = get_verticalalignment ();
7409 else if (pname.
compare (
"__focus__"))
7410 retval = get___focus__ ();
7411 else if (pname.
compare (
"__object__"))
7412 retval = get___object__ ();
7422 const std::set<std::string>& pnames = all_property_names ();
7424 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
7426 if (pname.
compare (
"backgroundcolor"))
7427 return property (&m_backgroundcolor,
true);
7428 else if (pname.
compare (
"callback"))
7429 return property (&m_callback,
true);
7430 else if (pname.
compare (
"cdata"))
7432 else if (pname.
compare (
"clipping"))
7433 return property (&m_clipping,
true);
7434 else if (pname.
compare (
"enable"))
7436 else if (pname.
compare (
"extent"))
7438 else if (pname.
compare (
"fontangle"))
7439 return property (&m_fontangle,
true);
7440 else if (pname.
compare (
"fontname"))
7441 return property (&m_fontname,
true);
7442 else if (pname.
compare (
"fontsize"))
7443 return property (&m_fontsize,
true);
7444 else if (pname.
compare (
"fontunits"))
7445 return property (&m_fontunits,
true);
7446 else if (pname.
compare (
"fontweight"))
7447 return property (&m_fontweight,
true);
7448 else if (pname.
compare (
"foregroundcolor"))
7449 return property (&m_foregroundcolor,
true);
7450 else if (pname.
compare (
"horizontalalignment"))
7451 return property (&m_horizontalalignment,
true);
7452 else if (pname.
compare (
"keypressfcn"))
7453 return property (&m_keypressfcn,
true);
7454 else if (pname.
compare (
"listboxtop"))
7455 return property (&m_listboxtop,
true);
7456 else if (pname.
compare (
"max"))
7458 else if (pname.
compare (
"min"))
7460 else if (pname.
compare (
"position"))
7461 return property (&m_position,
true);
7462 else if (pname.
compare (
"sliderstep"))
7463 return property (&m_sliderstep,
true);
7464 else if (pname.
compare (
"string"))
7466 else if (pname.
compare (
"style"))
7468 else if (pname.
compare (
"tooltipstring"))
7469 return property (&m_tooltipstring,
true);
7470 else if (pname.
compare (
"units"))
7472 else if (pname.
compare (
"value"))
7474 else if (pname.
compare (
"verticalalignment"))
7475 return property (&m_verticalalignment,
true);
7476 else if (pname.
compare (
"__focus__"))
7477 return property (&m___focus__,
true);
7478 else if (pname.
compare (
"__object__"))
7479 return property (&m___object__,
true);
7492 m[
"clipping"] =
"on";
7494 m[
"extent"] =
Matrix (1, 4, 0.0);
7495 m[
"fontangle"] =
"normal";
7498 m[
"fontunits"] =
"points";
7499 m[
"fontweight"] =
"normal";
7501 m[
"horizontalalignment"] =
"center";
7503 m[
"listboxtop"] = 1;
7506 m[
"position"] = default_control_position ();
7507 m[
"sliderstep"] = default_control_sliderstep ();
7509 m[
"style"] =
"pushbutton";
7510 m[
"tooltipstring"] =
"";
7511 m[
"units"] =
"pixels";
7512 m[
"value"] =
Matrix (1, 1, 0.0);
7513 m[
"verticalalignment"] =
"middle";
7514 m[
"__focus__"] =
"off";
7520 std::string uicontrol::properties::s_go_name (
"uicontrol");
7522 std::set<std::string>
7525 static std::set<std::string> all_pnames;
7527 static bool initialized =
false;
7531 all_pnames.insert (
"backgroundcolor");
7532 all_pnames.insert (
"callback");
7533 all_pnames.insert (
"cdata");
7534 all_pnames.insert (
"clipping");
7535 all_pnames.insert (
"enable");
7536 all_pnames.insert (
"extent");
7537 all_pnames.insert (
"fontangle");
7538 all_pnames.insert (
"fontname");
7539 all_pnames.insert (
"fontsize");
7540 all_pnames.insert (
"fontunits");
7541 all_pnames.insert (
"fontweight");
7542 all_pnames.insert (
"foregroundcolor");
7543 all_pnames.insert (
"horizontalalignment");
7544 all_pnames.insert (
"keypressfcn");
7545 all_pnames.insert (
"listboxtop");
7546 all_pnames.insert (
"max");
7547 all_pnames.insert (
"min");
7548 all_pnames.insert (
"position");
7549 all_pnames.insert (
"sliderstep");
7550 all_pnames.insert (
"string");
7551 all_pnames.insert (
"style");
7552 all_pnames.insert (
"tooltipstring");
7553 all_pnames.insert (
"units");
7554 all_pnames.insert (
"value");
7555 all_pnames.insert (
"verticalalignment");
7556 all_pnames.insert (
"__focus__");
7557 all_pnames.insert (
"__object__");
7560 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
7571 std::set<std::string> pnames = core_property_names ();
7573 return pnames.find (pname) != pnames.end ();
7576 std::set<std::string>
7579 static std::set<std::string> all_pnames;
7581 static bool initialized =
false;
7585 all_pnames.insert (
"extent");
7588 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
7599 std::set<std::string> pnames = readonly_property_names ();
7601 return pnames.find (pname) != pnames.end ();
7604 std::set<std::string>
7607 static std::set<std::string> all_pnames = core_property_names ();
7609 std::set<std::string> retval = all_pnames;
7611 retval.insert (base_props.begin (), base_props.end ());
7619 std::set<std::string> pnames = all_property_names ();
7621 return pnames.find (pname) != pnames.end ();
7628 m_backgroundcolor (
"backgroundcolor", mh,
color_values (0.94, 0.94, 0.94)),
7629 m_bordertype (
"bordertype", mh,
"none|{etchedin}|etchedout|beveledin|beveledout|line"),
7630 m_borderwidth (
"borderwidth", mh, 1),
7631 m_clipping (
"clipping", mh,
"on"),
7632 m_fontangle (
"fontangle", mh,
"{normal}|italic"),
7634 m_fontsize (
"fontsize", mh, 10),
7635 m_fontunits (
"fontunits", mh,
"inches|centimeters|normalized|{points}|pixels"),
7636 m_fontweight (
"fontweight", mh,
"{normal}|bold"),
7637 m_foregroundcolor (
"foregroundcolor", mh,
color_values (0, 0, 0)),
7638 m_highlightcolor (
"highlightcolor", mh,
color_values (1, 1, 1)),
7639 m_position (
"position", mh, default_panel_position ()),
7640 m_resizefcn (
"resizefcn", mh,
Matrix ()),
7642 m_selectionchangedfcn (
"selectionchangedfcn", mh,
Matrix ()),
7643 m_shadowcolor (
"shadowcolor", mh,
color_values (0.7, 0.7, 0.7)),
7644 m_sizechangedfcn (
"sizechangedfcn", mh,
Matrix ()),
7645 m_units (
"units", mh,
"{normalized}|inches|centimeters|points|pixels|characters"),
7646 m_title (
"title", mh,
""),
7647 m_titleposition (
"titleposition", mh,
"{lefttop}|centertop|righttop|leftbottom|centerbottom|rightbottom"),
7648 m___object__ (
"__object__", mh,
Matrix ())
7678 const std::set<std::string>& pnames = all_property_names ();
7680 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
7684 error (
"set: \"%s\" is read-only", pname.c_str ());
7688 if (pname.
compare (
"backgroundcolor"))
7689 set_backgroundcolor (val);
7690 else if (pname.
compare (
"bordertype"))
7691 set_bordertype (val);
7692 else if (pname.
compare (
"borderwidth"))
7693 set_borderwidth (val);
7694 else if (pname.
compare (
"clipping"))
7696 else if (pname.
compare (
"fontangle"))
7697 set_fontangle (val);
7698 else if (pname.
compare (
"fontname"))
7700 else if (pname.
compare (
"fontsize"))
7702 else if (pname.
compare (
"fontunits"))
7703 set_fontunits (val);
7704 else if (pname.
compare (
"fontweight"))
7705 set_fontweight (val);
7706 else if (pname.
compare (
"foregroundcolor"))
7707 set_foregroundcolor (val);
7708 else if (pname.
compare (
"highlightcolor"))
7709 set_highlightcolor (val);
7710 else if (pname.
compare (
"position"))
7712 else if (pname.
compare (
"resizefcn"))
7713 set_resizefcn (val);
7714 else if (pname.
compare (
"selectedobject"))
7715 set_selectedobject (val);
7716 else if (pname.
compare (
"selectionchangedfcn"))
7717 set_selectionchangedfcn (val);
7718 else if (pname.
compare (
"shadowcolor"))
7719 set_shadowcolor (val);
7720 else if (pname.
compare (
"sizechangedfcn"))
7721 set_sizechangedfcn (val);
7722 else if (pname.
compare (
"units"))
7724 else if (pname.
compare (
"title"))
7726 else if (pname.
compare (
"titleposition"))
7727 set_titleposition (val);
7728 else if (pname.
compare (
"__object__"))
7729 set___object__ (val);
7739 m.assign (
"backgroundcolor",
octave_value (get_backgroundcolor ()));
7741 m.assign (
"borderwidth",
octave_value (get_borderwidth ()));
7748 m.assign (
"foregroundcolor",
octave_value (get_foregroundcolor ()));
7749 m.assign (
"highlightcolor",
octave_value (get_highlightcolor ()));
7752 m.assign (
"selectedobject",
octave_value (get_selectedobject ().as_octave_value ()));
7753 m.assign (
"selectionchangedfcn",
octave_value (get_selectionchangedfcn ()));
7754 m.assign (
"shadowcolor",
octave_value (get_shadowcolor ()));
7755 m.assign (
"sizechangedfcn",
octave_value (get_sizechangedfcn ()));
7758 m.assign (
"titleposition",
octave_value (get_titleposition ()));
7770 const std::set<std::string>& pnames = all_property_names ();
7772 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
7774 if (pname.
compare (
"backgroundcolor"))
7775 retval = get_backgroundcolor ();
7776 else if (pname.
compare (
"bordertype"))
7777 retval = get_bordertype ();
7778 else if (pname.
compare (
"borderwidth"))
7779 retval = get_borderwidth ();
7780 else if (pname.
compare (
"clipping"))
7781 retval = get_clipping ();
7782 else if (pname.
compare (
"fontangle"))
7783 retval = get_fontangle ();
7784 else if (pname.
compare (
"fontname"))
7785 retval = get_fontname ();
7786 else if (pname.
compare (
"fontsize"))
7787 retval = get_fontsize ();
7788 else if (pname.
compare (
"fontunits"))
7789 retval = get_fontunits ();
7790 else if (pname.
compare (
"fontweight"))
7791 retval = get_fontweight ();
7792 else if (pname.
compare (
"foregroundcolor"))
7793 retval = get_foregroundcolor ();
7794 else if (pname.
compare (
"highlightcolor"))
7795 retval = get_highlightcolor ();
7796 else if (pname.
compare (
"position"))
7797 retval = get_position ();
7798 else if (pname.
compare (
"resizefcn"))
7799 retval = get_resizefcn ();
7800 else if (pname.
compare (
"selectedobject"))
7801 retval = get_selectedobject ().as_octave_value ();
7802 else if (pname.
compare (
"selectionchangedfcn"))
7803 retval = get_selectionchangedfcn ();
7804 else if (pname.
compare (
"shadowcolor"))
7805 retval = get_shadowcolor ();
7806 else if (pname.
compare (
"sizechangedfcn"))
7807 retval = get_sizechangedfcn ();
7808 else if (pname.
compare (
"units"))
7809 retval = get_units ();
7810 else if (pname.
compare (
"title"))
7811 retval = get_title ();
7812 else if (pname.
compare (
"titleposition"))
7813 retval = get_titleposition ();
7814 else if (pname.
compare (
"__object__"))
7815 retval = get___object__ ();
7825 const std::set<std::string>& pnames = all_property_names ();
7827 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
7829 if (pname.
compare (
"backgroundcolor"))
7830 return property (&m_backgroundcolor,
true);
7831 else if (pname.
compare (
"bordertype"))
7832 return property (&m_bordertype,
true);
7833 else if (pname.
compare (
"borderwidth"))
7834 return property (&m_borderwidth,
true);
7835 else if (pname.
compare (
"clipping"))
7836 return property (&m_clipping,
true);
7837 else if (pname.
compare (
"fontangle"))
7838 return property (&m_fontangle,
true);
7839 else if (pname.
compare (
"fontname"))
7840 return property (&m_fontname,
true);
7841 else if (pname.
compare (
"fontsize"))
7842 return property (&m_fontsize,
true);
7843 else if (pname.
compare (
"fontunits"))
7844 return property (&m_fontunits,
true);
7845 else if (pname.
compare (
"fontweight"))
7846 return property (&m_fontweight,
true);
7847 else if (pname.
compare (
"foregroundcolor"))
7848 return property (&m_foregroundcolor,
true);
7849 else if (pname.
compare (
"highlightcolor"))
7850 return property (&m_highlightcolor,
true);
7851 else if (pname.
compare (
"position"))
7852 return property (&m_position,
true);
7853 else if (pname.
compare (
"resizefcn"))
7854 return property (&m_resizefcn,
true);
7855 else if (pname.
compare (
"selectedobject"))
7856 return property (&m_selectedobject,
true);
7857 else if (pname.
compare (
"selectionchangedfcn"))
7858 return property (&m_selectionchangedfcn,
true);
7859 else if (pname.
compare (
"shadowcolor"))
7860 return property (&m_shadowcolor,
true);
7861 else if (pname.
compare (
"sizechangedfcn"))
7862 return property (&m_sizechangedfcn,
true);
7863 else if (pname.
compare (
"units"))
7865 else if (pname.
compare (
"title"))
7867 else if (pname.
compare (
"titleposition"))
7868 return property (&m_titleposition,
true);
7869 else if (pname.
compare (
"__object__"))
7870 return property (&m___object__,
true);
7881 m[
"bordertype"] =
"etchedin";
7882 m[
"borderwidth"] = 1;
7883 m[
"clipping"] =
"on";
7884 m[
"fontangle"] =
"normal";
7887 m[
"fontunits"] =
"points";
7888 m[
"fontweight"] =
"normal";
7891 m[
"position"] = default_panel_position ();
7894 m[
"selectionchangedfcn"] =
Matrix ();
7896 m[
"sizechangedfcn"] =
Matrix ();
7897 m[
"units"] =
"normalized";
7899 m[
"titleposition"] =
"lefttop";
7905 std::string uibuttongroup::properties::s_go_name (
"uibuttongroup");
7907 std::set<std::string>
7910 static std::set<std::string> all_pnames;
7912 static bool initialized =
false;
7916 all_pnames.insert (
"backgroundcolor");
7917 all_pnames.insert (
"bordertype");
7918 all_pnames.insert (
"borderwidth");
7919 all_pnames.insert (
"clipping");
7920 all_pnames.insert (
"fontangle");
7921 all_pnames.insert (
"fontname");
7922 all_pnames.insert (
"fontsize");
7923 all_pnames.insert (
"fontunits");
7924 all_pnames.insert (
"fontweight");
7925 all_pnames.insert (
"foregroundcolor");
7926 all_pnames.insert (
"highlightcolor");
7927 all_pnames.insert (
"position");
7928 all_pnames.insert (
"resizefcn");
7929 all_pnames.insert (
"selectedobject");
7930 all_pnames.insert (
"selectionchangedfcn");
7931 all_pnames.insert (
"shadowcolor");
7932 all_pnames.insert (
"sizechangedfcn");
7933 all_pnames.insert (
"units");
7934 all_pnames.insert (
"title");
7935 all_pnames.insert (
"titleposition");
7936 all_pnames.insert (
"__object__");
7939 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
7950 std::set<std::string> pnames = core_property_names ();
7952 return pnames.find (pname) != pnames.end ();
7955 std::set<std::string>
7958 static std::set<std::string> all_pnames;
7960 static bool initialized =
false;
7966 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
7977 std::set<std::string> pnames = readonly_property_names ();
7979 return pnames.find (pname) != pnames.end ();
7982 std::set<std::string>
7985 static std::set<std::string> all_pnames = core_property_names ();
7987 std::set<std::string> retval = all_pnames;
7989 retval.insert (base_props.begin (), base_props.end ());
7997 std::set<std::string> pnames = all_property_names ();
7999 return pnames.find (pname) != pnames.end ();
8006 m_backgroundcolor (
"backgroundcolor", mh,
color_values (0.94, 0.94, 0.94)),
8007 m_bordertype (
"bordertype", mh,
"none|{etchedin}|etchedout|beveledin|beveledout|line"),
8008 m_borderwidth (
"borderwidth", mh, 1),
8009 m_fontangle (
"fontangle", mh,
"{normal}|italic"),
8011 m_fontsize (
"fontsize", mh, 10),
8012 m_fontunits (
"fontunits", mh,
"inches|centimeters|normalized|{points}|pixels"),
8013 m_fontweight (
"fontweight", mh,
"{normal}|bold"),
8014 m_foregroundcolor (
"foregroundcolor", mh,
color_values (0, 0, 0)),
8015 m_highlightcolor (
"highlightcolor", mh,
color_values (1, 1, 1)),
8016 m_position (
"position", mh, default_panel_position ()),
8017 m_resizefcn (
"resizefcn", mh,
Matrix ()),
8018 m_shadowcolor (
"shadowcolor", mh,
color_values (0.7, 0.7, 0.7)),
8019 m_sizechangedfcn (
"sizechangedfcn", mh,
Matrix ()),
8020 m_title (
"title", mh,
""),
8021 m_titleposition (
"titleposition", mh,
"{lefttop}|centertop|righttop|leftbottom|centerbottom|rightbottom"),
8022 m_units (
"units", mh,
"{normalized}|inches|centimeters|points|pixels|characters"),
8023 m___object__ (
"__object__", mh,
Matrix ())
8050 const std::set<std::string>& pnames = all_property_names ();
8052 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
8056 error (
"set: \"%s\" is read-only", pname.c_str ());
8060 if (pname.
compare (
"backgroundcolor"))
8061 set_backgroundcolor (val);
8062 else if (pname.
compare (
"bordertype"))
8063 set_bordertype (val);
8064 else if (pname.
compare (
"borderwidth"))
8065 set_borderwidth (val);
8066 else if (pname.
compare (
"fontangle"))
8067 set_fontangle (val);
8068 else if (pname.
compare (
"fontname"))
8070 else if (pname.
compare (
"fontsize"))
8072 else if (pname.
compare (
"fontunits"))
8073 set_fontunits (val);
8074 else if (pname.
compare (
"fontweight"))
8075 set_fontweight (val);
8076 else if (pname.
compare (
"foregroundcolor"))
8077 set_foregroundcolor (val);
8078 else if (pname.
compare (
"highlightcolor"))
8079 set_highlightcolor (val);
8080 else if (pname.
compare (
"position"))
8082 else if (pname.
compare (
"resizefcn"))
8083 set_resizefcn (val);
8084 else if (pname.
compare (
"shadowcolor"))
8085 set_shadowcolor (val);
8086 else if (pname.
compare (
"sizechangedfcn"))
8087 set_sizechangedfcn (val);
8088 else if (pname.
compare (
"title"))
8090 else if (pname.
compare (
"titleposition"))
8091 set_titleposition (val);
8092 else if (pname.
compare (
"units"))
8094 else if (pname.
compare (
"__object__"))
8095 set___object__ (val);
8105 m.assign (
"backgroundcolor",
octave_value (get_backgroundcolor ()));
8107 m.assign (
"borderwidth",
octave_value (get_borderwidth ()));
8113 m.assign (
"foregroundcolor",
octave_value (get_foregroundcolor ()));
8114 m.assign (
"highlightcolor",
octave_value (get_highlightcolor ()));
8117 m.assign (
"shadowcolor",
octave_value (get_shadowcolor ()));
8118 m.assign (
"sizechangedfcn",
octave_value (get_sizechangedfcn ()));
8120 m.assign (
"titleposition",
octave_value (get_titleposition ()));
8133 const std::set<std::string>& pnames = all_property_names ();
8135 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
8137 if (pname.
compare (
"backgroundcolor"))
8138 retval = get_backgroundcolor ();
8139 else if (pname.
compare (
"bordertype"))
8140 retval = get_bordertype ();
8141 else if (pname.
compare (
"borderwidth"))
8142 retval = get_borderwidth ();
8143 else if (pname.
compare (
"fontangle"))
8144 retval = get_fontangle ();
8145 else if (pname.
compare (
"fontname"))
8146 retval = get_fontname ();
8147 else if (pname.
compare (
"fontsize"))
8148 retval = get_fontsize ();
8149 else if (pname.
compare (
"fontunits"))
8150 retval = get_fontunits ();
8151 else if (pname.
compare (
"fontweight"))
8152 retval = get_fontweight ();
8153 else if (pname.
compare (
"foregroundcolor"))
8154 retval = get_foregroundcolor ();
8155 else if (pname.
compare (
"highlightcolor"))
8156 retval = get_highlightcolor ();
8157 else if (pname.
compare (
"position"))
8158 retval = get_position ();
8159 else if (pname.
compare (
"resizefcn"))
8160 retval = get_resizefcn ();
8161 else if (pname.
compare (
"shadowcolor"))
8162 retval = get_shadowcolor ();
8163 else if (pname.
compare (
"sizechangedfcn"))
8164 retval = get_sizechangedfcn ();
8165 else if (pname.
compare (
"title"))
8166 retval = get_title ();
8167 else if (pname.
compare (
"titleposition"))
8168 retval = get_titleposition ();
8169 else if (pname.
compare (
"units"))
8170 retval = get_units ();
8171 else if (pname.
compare (
"__object__"))
8172 retval = get___object__ ();
8182 const std::set<std::string>& pnames = all_property_names ();
8184 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
8186 if (pname.
compare (
"backgroundcolor"))
8187 return property (&m_backgroundcolor,
true);
8188 else if (pname.
compare (
"bordertype"))
8189 return property (&m_bordertype,
true);
8190 else if (pname.
compare (
"borderwidth"))
8191 return property (&m_borderwidth,
true);
8192 else if (pname.
compare (
"fontangle"))
8193 return property (&m_fontangle,
true);
8194 else if (pname.
compare (
"fontname"))
8195 return property (&m_fontname,
true);
8196 else if (pname.
compare (
"fontsize"))
8197 return property (&m_fontsize,
true);
8198 else if (pname.
compare (
"fontunits"))
8199 return property (&m_fontunits,
true);
8200 else if (pname.
compare (
"fontweight"))
8201 return property (&m_fontweight,
true);
8202 else if (pname.
compare (
"foregroundcolor"))
8203 return property (&m_foregroundcolor,
true);
8204 else if (pname.
compare (
"highlightcolor"))
8205 return property (&m_highlightcolor,
true);
8206 else if (pname.
compare (
"position"))
8207 return property (&m_position,
true);
8208 else if (pname.
compare (
"resizefcn"))
8209 return property (&m_resizefcn,
true);
8210 else if (pname.
compare (
"shadowcolor"))
8211 return property (&m_shadowcolor,
true);
8212 else if (pname.
compare (
"sizechangedfcn"))
8213 return property (&m_sizechangedfcn,
true);
8214 else if (pname.
compare (
"title"))
8216 else if (pname.
compare (
"titleposition"))
8217 return property (&m_titleposition,
true);
8218 else if (pname.
compare (
"units"))
8220 else if (pname.
compare (
"__object__"))
8221 return property (&m___object__,
true);
8232 m[
"bordertype"] =
"etchedin";
8233 m[
"borderwidth"] = 1;
8234 m[
"fontangle"] =
"normal";
8237 m[
"fontunits"] =
"points";
8238 m[
"fontweight"] =
"normal";
8241 m[
"position"] = default_panel_position ();
8244 m[
"sizechangedfcn"] =
Matrix ();
8246 m[
"titleposition"] =
"lefttop";
8247 m[
"units"] =
"normalized";
8253 std::string uipanel::properties::s_go_name (
"uipanel");
8255 std::set<std::string>
8258 static std::set<std::string> all_pnames;
8260 static bool initialized =
false;
8264 all_pnames.insert (
"backgroundcolor");
8265 all_pnames.insert (
"bordertype");
8266 all_pnames.insert (
"borderwidth");
8267 all_pnames.insert (
"fontangle");
8268 all_pnames.insert (
"fontname");
8269 all_pnames.insert (
"fontsize");
8270 all_pnames.insert (
"fontunits");
8271 all_pnames.insert (
"fontweight");
8272 all_pnames.insert (
"foregroundcolor");
8273 all_pnames.insert (
"highlightcolor");
8274 all_pnames.insert (
"position");
8275 all_pnames.insert (
"resizefcn");
8276 all_pnames.insert (
"shadowcolor");
8277 all_pnames.insert (
"sizechangedfcn");
8278 all_pnames.insert (
"title");
8279 all_pnames.insert (
"titleposition");
8280 all_pnames.insert (
"units");
8281 all_pnames.insert (
"__object__");
8284 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
8295 std::set<std::string> pnames = core_property_names ();
8297 return pnames.find (pname) != pnames.end ();
8300 std::set<std::string>
8303 static std::set<std::string> all_pnames;
8305 static bool initialized =
false;
8311 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
8322 std::set<std::string> pnames = readonly_property_names ();
8324 return pnames.find (pname) != pnames.end ();
8327 std::set<std::string>
8330 static std::set<std::string> all_pnames = core_property_names ();
8332 std::set<std::string> retval = all_pnames;
8334 retval.insert (base_props.begin (), base_props.end ());
8342 std::set<std::string> pnames = all_property_names ();
8344 return pnames.find (pname) != pnames.end ();
8351 m___object__ (
"__object__", mh,
Matrix ()),
8352 m_backgroundcolor (
"backgroundcolor", mh, default_table_backgroundcolor ()),
8353 m_celleditcallback (
"celleditcallback", mh,
Matrix ()),
8354 m_cellselectioncallback (
"cellselectioncallback", mh,
Matrix ()),
8355 m_columneditable (
"columneditable", mh,
Matrix ()),
8356 m_columnformat (
"columnformat", mh,
Cell ()),
8357 m_columnname (
"columnname", mh,
"numbered"),
8358 m_columnwidth (
"columnwidth", mh,
"auto"),
8359 m_data (
"data", mh,
Matrix ()),
8360 m_enable (
"enable", mh,
"on"),
8361 m_extent (
"extent", mh,
Matrix (1, 4, 0.0)),
8362 m_fontangle (
"fontangle", mh,
"{normal}|italic"),
8364 m_fontsize (
"fontsize", mh, 10),
8365 m_fontunits (
"fontunits", mh,
"inches|centimeters|normalized|{points}|pixels"),
8366 m_fontweight (
"fontweight", mh,
"{normal}|bold"),
8367 m_foregroundcolor (
"foregroundcolor", mh,
color_values (0, 0, 0)),
8368 m_keypressfcn (
"keypressfcn", mh,
Matrix ()),
8369 m_keyreleasefcn (
"keyreleasefcn", mh,
Matrix ()),
8370 m_position (
"position", mh, default_table_position ()),
8371 m_rearrangeablecolumns (
"rearrangeablecolumns", mh,
"off"),
8372 m_rowname (
"rowname", mh,
"numbered"),
8373 m_rowstriping (
"rowstriping", mh,
"on"),
8374 m_tooltipstring (
"tooltipstring", mh,
""),
8375 m_units (
"units", mh,
"normalized|inches|centimeters|points|{pixels}|characters")
8409 const std::set<std::string>& pnames = all_property_names ();
8411 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
8415 error (
"set: \"%s\" is read-only", pname.c_str ());
8419 if (pname.
compare (
"__object__"))
8420 set___object__ (val);
8421 else if (pname.
compare (
"backgroundcolor"))
8422 set_backgroundcolor (val);
8423 else if (pname.
compare (
"celleditcallback"))
8424 set_celleditcallback (val);
8425 else if (pname.
compare (
"cellselectioncallback"))
8426 set_cellselectioncallback (val);
8427 else if (pname.
compare (
"columneditable"))
8428 set_columneditable (val);
8429 else if (pname.
compare (
"columnformat"))
8430 set_columnformat (val);
8431 else if (pname.
compare (
"columnname"))
8432 set_columnname (val);
8433 else if (pname.
compare (
"columnwidth"))
8434 set_columnwidth (val);
8435 else if (pname.
compare (
"data"))
8437 else if (pname.
compare (
"enable"))
8439 else if (pname.
compare (
"fontangle"))
8440 set_fontangle (val);
8441 else if (pname.
compare (
"fontname"))
8443 else if (pname.
compare (
"fontsize"))
8445 else if (pname.
compare (
"fontunits"))
8446 set_fontunits (val);
8447 else if (pname.
compare (
"fontweight"))
8448 set_fontweight (val);
8449 else if (pname.
compare (
"foregroundcolor"))
8450 set_foregroundcolor (val);
8451 else if (pname.
compare (
"keypressfcn"))
8452 set_keypressfcn (val);
8453 else if (pname.
compare (
"keyreleasefcn"))
8454 set_keyreleasefcn (val);
8455 else if (pname.
compare (
"position"))
8457 else if (pname.
compare (
"rearrangeablecolumns"))
8458 set_rearrangeablecolumns (val);
8459 else if (pname.
compare (
"rowname"))
8461 else if (pname.
compare (
"rowstriping"))
8462 set_rowstriping (val);
8463 else if (pname.
compare (
"tooltipstring"))
8464 set_tooltipstring (val);
8465 else if (pname.
compare (
"units"))
8478 m.assign (
"backgroundcolor",
octave_value (get_backgroundcolor ()));
8479 m.assign (
"celleditcallback",
octave_value (get_celleditcallback ()));
8480 m.assign (
"cellselectioncallback",
octave_value (get_cellselectioncallback ()));
8481 m.assign (
"columneditable",
octave_value (get_columneditable ()));
8482 m.assign (
"columnformat",
octave_value (get_columnformat ()));
8484 m.assign (
"columnwidth",
octave_value (get_columnwidth ()));
8493 m.assign (
"foregroundcolor",
octave_value (get_foregroundcolor ()));
8494 m.assign (
"keypressfcn",
octave_value (get_keypressfcn ()));
8495 m.assign (
"keyreleasefcn",
octave_value (get_keyreleasefcn ()));
8497 m.assign (
"rearrangeablecolumns",
octave_value (get_rearrangeablecolumns ()));
8499 m.assign (
"rowstriping",
octave_value (get_rowstriping ()));
8500 m.assign (
"tooltipstring",
octave_value (get_tooltipstring ()));
8511 const std::set<std::string>& pnames = all_property_names ();
8513 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
8515 if (pname.
compare (
"__object__"))
8516 retval = get___object__ ();
8517 else if (pname.
compare (
"backgroundcolor"))
8518 retval = get_backgroundcolor ();
8519 else if (pname.
compare (
"celleditcallback"))
8520 retval = get_celleditcallback ();
8521 else if (pname.
compare (
"cellselectioncallback"))
8522 retval = get_cellselectioncallback ();
8523 else if (pname.
compare (
"columneditable"))
8524 retval = get_columneditable ();
8525 else if (pname.
compare (
"columnformat"))
8526 retval = get_columnformat ();
8527 else if (pname.
compare (
"columnname"))
8528 retval = get_columnname ();
8529 else if (pname.
compare (
"columnwidth"))
8530 retval = get_columnwidth ();
8531 else if (pname.
compare (
"data"))
8532 retval = get_data ();
8533 else if (pname.
compare (
"enable"))
8534 retval = get_enable ();
8535 else if (pname.
compare (
"extent"))
8536 retval = get_extent ();
8537 else if (pname.
compare (
"fontangle"))
8538 retval = get_fontangle ();
8539 else if (pname.
compare (
"fontname"))
8540 retval = get_fontname ();
8541 else if (pname.
compare (
"fontsize"))
8542 retval = get_fontsize ();
8543 else if (pname.
compare (
"fontunits"))
8544 retval = get_fontunits ();
8545 else if (pname.
compare (
"fontweight"))
8546 retval = get_fontweight ();
8547 else if (pname.
compare (
"foregroundcolor"))
8548 retval = get_foregroundcolor ();
8549 else if (pname.
compare (
"keypressfcn"))
8550 retval = get_keypressfcn ();
8551 else if (pname.
compare (
"keyreleasefcn"))
8552 retval = get_keyreleasefcn ();
8553 else if (pname.
compare (
"position"))
8554 retval = get_position ();
8555 else if (pname.
compare (
"rearrangeablecolumns"))
8556 retval = get_rearrangeablecolumns ();
8557 else if (pname.
compare (
"rowname"))
8558 retval = get_rowname ();
8559 else if (pname.
compare (
"rowstriping"))
8560 retval = get_rowstriping ();
8561 else if (pname.
compare (
"tooltipstring"))
8562 retval = get_tooltipstring ();
8563 else if (pname.
compare (
"units"))
8564 retval = get_units ();
8574 const std::set<std::string>& pnames = all_property_names ();
8576 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
8578 if (pname.
compare (
"__object__"))
8579 return property (&m___object__,
true);
8580 else if (pname.
compare (
"backgroundcolor"))
8581 return property (&m_backgroundcolor,
true);
8582 else if (pname.
compare (
"celleditcallback"))
8583 return property (&m_celleditcallback,
true);
8584 else if (pname.
compare (
"cellselectioncallback"))
8585 return property (&m_cellselectioncallback,
true);
8586 else if (pname.
compare (
"columneditable"))
8587 return property (&m_columneditable,
true);
8588 else if (pname.
compare (
"columnformat"))
8589 return property (&m_columnformat,
true);
8590 else if (pname.
compare (
"columnname"))
8591 return property (&m_columnname,
true);
8592 else if (pname.
compare (
"columnwidth"))
8593 return property (&m_columnwidth,
true);
8594 else if (pname.
compare (
"data"))
8596 else if (pname.
compare (
"enable"))
8598 else if (pname.
compare (
"extent"))
8600 else if (pname.
compare (
"fontangle"))
8601 return property (&m_fontangle,
true);
8602 else if (pname.
compare (
"fontname"))
8603 return property (&m_fontname,
true);
8604 else if (pname.
compare (
"fontsize"))
8605 return property (&m_fontsize,
true);
8606 else if (pname.
compare (
"fontunits"))
8607 return property (&m_fontunits,
true);
8608 else if (pname.
compare (
"fontweight"))
8609 return property (&m_fontweight,
true);
8610 else if (pname.
compare (
"foregroundcolor"))
8611 return property (&m_foregroundcolor,
true);
8612 else if (pname.
compare (
"keypressfcn"))
8613 return property (&m_keypressfcn,
true);
8614 else if (pname.
compare (
"keyreleasefcn"))
8615 return property (&m_keyreleasefcn,
true);
8616 else if (pname.
compare (
"position"))
8617 return property (&m_position,
true);
8618 else if (pname.
compare (
"rearrangeablecolumns"))
8619 return property (&m_rearrangeablecolumns,
true);
8620 else if (pname.
compare (
"rowname"))
8621 return property (&m_rowname,
true);
8622 else if (pname.
compare (
"rowstriping"))
8623 return property (&m_rowstriping,
true);
8624 else if (pname.
compare (
"tooltipstring"))
8625 return property (&m_tooltipstring,
true);
8626 else if (pname.
compare (
"units"))
8638 m[
"backgroundcolor"] = default_table_backgroundcolor ();
8639 m[
"celleditcallback"] =
Matrix ();
8640 m[
"cellselectioncallback"] =
Matrix ();
8641 m[
"columneditable"] =
Matrix ();
8642 m[
"columnformat"] =
Cell ();
8643 m[
"columnname"] =
"numbered";
8644 m[
"columnwidth"] =
"auto";
8647 m[
"extent"] =
Matrix (1, 4, 0.0);
8648 m[
"fontangle"] =
"normal";
8651 m[
"fontunits"] =
"points";
8652 m[
"fontweight"] =
"normal";
8655 m[
"keyreleasefcn"] =
Matrix ();
8656 m[
"position"] = default_table_position ();
8657 m[
"rearrangeablecolumns"] =
"off";
8658 m[
"rowname"] =
"numbered";
8659 m[
"rowstriping"] =
"on";
8660 m[
"tooltipstring"] =
"";
8661 m[
"units"] =
"pixels";
8666 std::string uitable::properties::s_go_name (
"uitable");
8668 std::set<std::string>
8671 static std::set<std::string> all_pnames;
8673 static bool initialized =
false;
8677 all_pnames.insert (
"__object__");
8678 all_pnames.insert (
"backgroundcolor");
8679 all_pnames.insert (
"celleditcallback");
8680 all_pnames.insert (
"cellselectioncallback");
8681 all_pnames.insert (
"columneditable");
8682 all_pnames.insert (
"columnformat");
8683 all_pnames.insert (
"columnname");
8684 all_pnames.insert (
"columnwidth");
8685 all_pnames.insert (
"data");
8686 all_pnames.insert (
"enable");
8687 all_pnames.insert (
"extent");
8688 all_pnames.insert (
"fontangle");
8689 all_pnames.insert (
"fontname");
8690 all_pnames.insert (
"fontsize");
8691 all_pnames.insert (
"fontunits");
8692 all_pnames.insert (
"fontweight");
8693 all_pnames.insert (
"foregroundcolor");
8694 all_pnames.insert (
"keypressfcn");
8695 all_pnames.insert (
"keyreleasefcn");
8696 all_pnames.insert (
"position");
8697 all_pnames.insert (
"rearrangeablecolumns");
8698 all_pnames.insert (
"rowname");
8699 all_pnames.insert (
"rowstriping");
8700 all_pnames.insert (
"tooltipstring");
8701 all_pnames.insert (
"units");
8704 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
8715 std::set<std::string> pnames = core_property_names ();
8717 return pnames.find (pname) != pnames.end ();
8720 std::set<std::string>
8723 static std::set<std::string> all_pnames;
8725 static bool initialized =
false;
8729 all_pnames.insert (
"extent");
8732 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
8743 std::set<std::string> pnames = readonly_property_names ();
8745 return pnames.find (pname) != pnames.end ();
8748 std::set<std::string>
8751 static std::set<std::string> all_pnames = core_property_names ();
8753 std::set<std::string> retval = all_pnames;
8755 retval.insert (base_props.begin (), base_props.end ());
8763 std::set<std::string> pnames = all_property_names ();
8765 return pnames.find (pname) != pnames.end ();
8772 m___object__ (
"__object__", mh,
Matrix ())
8782 const std::set<std::string>& pnames = all_property_names ();
8784 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
8788 error (
"set: \"%s\" is read-only", pname.c_str ());
8792 if (pname.
compare (
"__object__"))
8793 set___object__ (val);
8814 const std::set<std::string>& pnames = all_property_names ();
8816 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
8818 if (pname.
compare (
"__object__"))
8819 retval = get___object__ ();
8829 const std::set<std::string>& pnames = all_property_names ();
8831 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
8833 if (pname.
compare (
"__object__"))
8834 return property (&m___object__,
true);
8849 std::string uitoolbar::properties::s_go_name (
"uitoolbar");
8851 std::set<std::string>
8854 static std::set<std::string> all_pnames;
8856 static bool initialized =
false;
8860 all_pnames.insert (
"__object__");
8863 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
8874 std::set<std::string> pnames = core_property_names ();
8876 return pnames.find (pname) != pnames.end ();
8879 std::set<std::string>
8882 static std::set<std::string> all_pnames;
8884 static bool initialized =
false;
8890 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
8901 std::set<std::string> pnames = readonly_property_names ();
8903 return pnames.find (pname) != pnames.end ();
8906 std::set<std::string>
8909 static std::set<std::string> all_pnames = core_property_names ();
8911 std::set<std::string> retval = all_pnames;
8913 retval.insert (base_props.begin (), base_props.end ());
8921 std::set<std::string> pnames = all_property_names ();
8923 return pnames.find (pname) != pnames.end ();
8930 m_cdata (
"cdata", mh,
Matrix ()),
8931 m_clickedcallback (
"clickedcallback", mh,
Matrix ()),
8932 m_enable (
"enable", mh,
"on"),
8933 m_separator (
"separator", mh,
"off"),
8934 m_tooltipstring (
"tooltipstring", mh,
""),
8935 m___named_icon__ (
"__named_icon__", mh,
""),
8936 m___object__ (
"__object__", mh,
Matrix ())
8952 const std::set<std::string>& pnames = all_property_names ();
8954 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
8958 error (
"set: \"%s\" is read-only", pname.c_str ());
8964 else if (pname.
compare (
"clickedcallback"))
8965 set_clickedcallback (val);
8966 else if (pname.
compare (
"enable"))
8968 else if (pname.
compare (
"separator"))
8969 set_separator (val);
8970 else if (pname.
compare (
"tooltipstring"))
8971 set_tooltipstring (val);
8972 else if (pname.
compare (
"__named_icon__"))
8973 set___named_icon__ (val);
8974 else if (pname.
compare (
"__object__"))
8975 set___object__ (val);
8986 m.assign (
"clickedcallback",
octave_value (get_clickedcallback ()));
8989 m.assign (
"tooltipstring",
octave_value (get_tooltipstring ()));
8990 m.assign (
"__named_icon__",
octave_value (get___named_icon__ ()));
9002 const std::set<std::string>& pnames = all_property_names ();
9004 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
9007 retval = get_cdata ();
9008 else if (pname.
compare (
"clickedcallback"))
9009 retval = get_clickedcallback ();
9010 else if (pname.
compare (
"enable"))
9011 retval = get_enable ();
9012 else if (pname.
compare (
"separator"))
9013 retval = get_separator ();
9014 else if (pname.
compare (
"tooltipstring"))
9015 retval = get_tooltipstring ();
9016 else if (pname.
compare (
"__named_icon__"))
9017 retval = get___named_icon__ ();
9018 else if (pname.
compare (
"__object__"))
9019 retval = get___object__ ();
9029 const std::set<std::string>& pnames = all_property_names ();
9031 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
9035 else if (pname.
compare (
"clickedcallback"))
9036 return property (&m_clickedcallback,
true);
9037 else if (pname.
compare (
"enable"))
9039 else if (pname.
compare (
"separator"))
9040 return property (&m_separator,
true);
9041 else if (pname.
compare (
"tooltipstring"))
9042 return property (&m_tooltipstring,
true);
9043 else if (pname.
compare (
"__named_icon__"))
9044 return property (&m___named_icon__,
true);
9045 else if (pname.
compare (
"__object__"))
9046 return property (&m___object__,
true);
9057 m[
"clickedcallback"] =
Matrix ();
9059 m[
"separator"] =
"off";
9060 m[
"tooltipstring"] =
"";
9061 m[
"__named_icon__"] =
"";
9067 std::string uipushtool::properties::s_go_name (
"uipushtool");
9069 std::set<std::string>
9072 static std::set<std::string> all_pnames;
9074 static bool initialized =
false;
9078 all_pnames.insert (
"cdata");
9079 all_pnames.insert (
"clickedcallback");
9080 all_pnames.insert (
"enable");
9081 all_pnames.insert (
"separator");
9082 all_pnames.insert (
"tooltipstring");
9083 all_pnames.insert (
"__named_icon__");
9084 all_pnames.insert (
"__object__");
9087 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
9098 std::set<std::string> pnames = core_property_names ();
9100 return pnames.find (pname) != pnames.end ();
9103 std::set<std::string>
9106 static std::set<std::string> all_pnames;
9108 static bool initialized =
false;
9114 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
9125 std::set<std::string> pnames = readonly_property_names ();
9127 return pnames.find (pname) != pnames.end ();
9130 std::set<std::string>
9133 static std::set<std::string> all_pnames = core_property_names ();
9135 std::set<std::string> retval = all_pnames;
9137 retval.insert (base_props.begin (), base_props.end ());
9145 std::set<std::string> pnames = all_property_names ();
9147 return pnames.find (pname) != pnames.end ();
9154 m_cdata (
"cdata", mh,
Matrix ()),
9155 m_clickedcallback (
"clickedcallback", mh,
Matrix ()),
9156 m_enable (
"enable", mh,
"on"),
9157 m_offcallback (
"offcallback", mh,
Matrix ()),
9158 m_oncallback (
"oncallback", mh,
Matrix ()),
9159 m_separator (
"separator", mh,
"off"),
9160 m_state (
"state", mh,
"off"),
9161 m_tooltipstring (
"tooltipstring", mh,
""),
9162 m___named_icon__ (
"__named_icon__", mh,
""),
9163 m___object__ (
"__object__", mh,
Matrix ())
9182 const std::set<std::string>& pnames = all_property_names ();
9184 caseless_str pname = validate_property_name (
"set", s_go_name, pnames, pname_arg);
9188 error (
"set: \"%s\" is read-only", pname.c_str ());
9194 else if (pname.
compare (
"clickedcallback"))
9195 set_clickedcallback (val);
9196 else if (pname.
compare (
"enable"))
9198 else if (pname.
compare (
"offcallback"))
9199 set_offcallback (val);
9200 else if (pname.
compare (
"oncallback"))
9201 set_oncallback (val);
9202 else if (pname.
compare (
"separator"))
9203 set_separator (val);
9204 else if (pname.
compare (
"state"))
9206 else if (pname.
compare (
"tooltipstring"))
9207 set_tooltipstring (val);
9208 else if (pname.
compare (
"__named_icon__"))
9209 set___named_icon__ (val);
9210 else if (pname.
compare (
"__object__"))
9211 set___object__ (val);
9222 m.assign (
"clickedcallback",
octave_value (get_clickedcallback ()));
9224 m.assign (
"offcallback",
octave_value (get_offcallback ()));
9228 m.assign (
"tooltipstring",
octave_value (get_tooltipstring ()));
9229 m.assign (
"__named_icon__",
octave_value (get___named_icon__ ()));
9241 const std::set<std::string>& pnames = all_property_names ();
9243 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
9246 retval = get_cdata ();
9247 else if (pname.
compare (
"clickedcallback"))
9248 retval = get_clickedcallback ();
9249 else if (pname.
compare (
"enable"))
9250 retval = get_enable ();
9251 else if (pname.
compare (
"offcallback"))
9252 retval = get_offcallback ();
9253 else if (pname.
compare (
"oncallback"))
9254 retval = get_oncallback ();
9255 else if (pname.
compare (
"separator"))
9256 retval = get_separator ();
9257 else if (pname.
compare (
"state"))
9258 retval = get_state ();
9259 else if (pname.
compare (
"tooltipstring"))
9260 retval = get_tooltipstring ();
9261 else if (pname.
compare (
"__named_icon__"))
9262 retval = get___named_icon__ ();
9263 else if (pname.
compare (
"__object__"))
9264 retval = get___object__ ();
9274 const std::set<std::string>& pnames = all_property_names ();
9276 caseless_str pname = validate_property_name (
"get", s_go_name, pnames, pname_arg);
9280 else if (pname.
compare (
"clickedcallback"))
9281 return property (&m_clickedcallback,
true);
9282 else if (pname.
compare (
"enable"))
9284 else if (pname.
compare (
"offcallback"))
9285 return property (&m_offcallback,
true);
9286 else if (pname.
compare (
"oncallback"))
9287 return property (&m_oncallback,
true);
9288 else if (pname.
compare (
"separator"))
9289 return property (&m_separator,
true);
9290 else if (pname.
compare (
"state"))
9292 else if (pname.
compare (
"tooltipstring"))
9293 return property (&m_tooltipstring,
true);
9294 else if (pname.
compare (
"__named_icon__"))
9295 return property (&m___named_icon__,
true);
9296 else if (pname.
compare (
"__object__"))
9297 return property (&m___object__,
true);
9308 m[
"clickedcallback"] =
Matrix ();
9312 m[
"separator"] =
"off";
9314 m[
"tooltipstring"] =
"";
9315 m[
"__named_icon__"] =
"";
9321 std::string uitoggletool::properties::s_go_name (
"uitoggletool");
9323 std::set<std::string>
9326 static std::set<std::string> all_pnames;
9328 static bool initialized =
false;
9332 all_pnames.insert (
"cdata");
9333 all_pnames.insert (
"clickedcallback");
9334 all_pnames.insert (
"enable");
9335 all_pnames.insert (
"offcallback");
9336 all_pnames.insert (
"oncallback");
9337 all_pnames.insert (
"separator");
9338 all_pnames.insert (
"state");
9339 all_pnames.insert (
"tooltipstring");
9340 all_pnames.insert (
"__named_icon__");
9341 all_pnames.insert (
"__object__");
9344 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
9355 std::set<std::string> pnames = core_property_names ();
9357 return pnames.find (pname) != pnames.end ();
9360 std::set<std::string>
9363 static std::set<std::string> all_pnames;
9365 static bool initialized =
false;
9371 all_pnames.insert (base_pnames.begin (), base_pnames.end ());
9382 std::set<std::string> pnames = readonly_property_names ();
9384 return pnames.find (pname) != pnames.end ();
9387 std::set<std::string>
9390 static std::set<std::string> all_pnames = core_property_names ();
9392 std::set<std::string> retval = all_pnames;
9394 retval.insert (base_props.begin (), base_props.end ());
9402 std::set<std::string> pnames = all_property_names ();
9404 return pnames.find (pname) != pnames.end ();
static bool has_core_property(const caseless_str &pname)
static std::set< std::string > core_property_names()
@ ID_ACTIVEPOSITIONPROPERTY
@ ID_TITLEFONTSIZEMULTIPLIER
@ ID_TICKLABELINTERPRETER
@ ID_PLOTBOXASPECTRATIOMODE
@ ID_LABELFONTSIZEMULTIPLIER
static std::set< std::string > readonly_property_names()
octave_value get(bool all=false) const
void set(const caseless_str &pname, const octave_value &val)
property get_property(const caseless_str &pname)
static bool has_readonly_property(const caseless_str &pname)
bool has_property(const caseless_str &pname) const
std::set< std::string > all_property_names() const
static property_list::pval_map_type factory_defaults()
bool has_readonly_property(const caseless_str &pname) const
static property_list::pval_map_type factory_defaults()
void set___modified__(const octave_value &val)
void set_selectionhighlight(const octave_value &val)
callback_property m_buttondownfcn
bool_property m_interruptible
std::string get_handlevisibility() const
void set_pickableparts(const octave_value &val)
std::string get_interruptible() const
void set_busyaction(const octave_value &val)
bool_property m_beingdeleted
graphics_handle get_parent() const
children_property m_children
void set_contextmenu(const octave_value &val)
octave_value get_userdata() const
std::string get___modified__() const
void set_visible(const octave_value &val)
graphics_handle get_uicontextmenu() const
void set_interruptible(const octave_value &val)
virtual void set(const caseless_str &, const octave_value &)
callback_property m_deletefcn
virtual property get_property(const caseless_str &pname)
std::string get_clipping() const
static std::set< std::string > readonly_property_names()
std::map< caseless_str, property, cmp_caseless_str > m_all_props
std::string get_selectionhighlight() const
graphics_handle get___myhandle__() const
void set_buttondownfcn(const octave_value &val)
void set_hittest(const octave_value &val)
void set_clipping(const octave_value &val)
void set_selected(const octave_value &val)
radio_property m_handlevisibility
std::string get_hittest() const
octave_value get_createfcn() const
void set___appdata__(const octave_value &val)
std::string get_type() const
void set_children(const octave_value &val)
bool_property m_selectionhighlight
any_property m___appdata__
octave_value get_dynamic(const caseless_str &pname) const
std::string get_selected() const
void set_handlevisibility(const octave_value &val)
std::string get_beingdeleted() const
void set_uicontextmenu(const octave_value &val)
void set_createfcn(const octave_value &val)
octave_value get_deletefcn() const
void set_deletefcn(const octave_value &val)
radio_property m_busyaction
property get_property_dynamic(const caseless_str &pname) const
virtual octave_value get(const caseless_str &pname) const
radio_property m_pickableparts
void set_parent(const octave_value &val)
bool_property m___modified__
void set_userdata(const octave_value &val)
handle_property m_contextmenu
static bool has_readonly_property(const caseless_str &pname)
octave_value get___appdata__() const
graphics_handle get_contextmenu() const
std::string get_busyaction() const
std::set< std::string > dynamic_property_names() const
std::string get_pickableparts() const
static bool has_core_property(const caseless_str &pname)
Matrix get_children() const
void set_beingdeleted(const octave_value &val)
callback_property m_createfcn
void set_dynamic(const caseless_str &pname, const octave_value &val)
handle_property m_uicontextmenu
std::set< std::string > all_property_names() const
base_properties(const std::string &ty="unknown", const graphics_handle &mh=graphics_handle(), const graphics_handle &p=graphics_handle())
std::string get_visible() const
static std::set< std::string > core_property_names()
octave_value get_buttondownfcn() const
void set_tag(const octave_value &val)
std::string get_tag() const
void set_hidden(bool flag)
bool compare(const std::string &s, std::size_t limit=std::string::npos) const
property get_property(const caseless_str &pname)
static std::set< std::string > readonly_property_names()
static std::set< std::string > core_property_names()
std::set< std::string > all_property_names() const
static property_list::pval_map_type factory_defaults()
bool has_property(const caseless_str &pname) const
octave_value get(bool all=false) const
static bool has_readonly_property(const caseless_str &pname)
static bool has_core_property(const caseless_str &pname)
void set(const caseless_str &pname, const octave_value &val)
bool has_readonly_property(const caseless_str &pname) const
static property_list::pval_map_type factory_defaults()
std::set< std::string > all_property_names() const
bool has_property(const caseless_str &pname) const
static bool has_readonly_property(const caseless_str &pname)
static bool has_core_property(const caseless_str &pname)
property get_property(const caseless_str &pname)
void set(const caseless_str &pname, const octave_value &val)
static std::set< std::string > core_property_names()
static std::set< std::string > readonly_property_names()
octave_value get(bool all=false) const
bool has_readonly_property(const caseless_str &pname) const
bool has_property(const caseless_str &pname) const
void set(const caseless_str &pname, const octave_value &val)
property get_property(const caseless_str &pname)
static bool has_readonly_property(const caseless_str &pname)
static std::set< std::string > readonly_property_names()
octave_value get(bool all=false) const
static std::set< std::string > core_property_names()
static property_list::pval_map_type factory_defaults()
std::set< std::string > all_property_names() const
static bool has_core_property(const caseless_str &pname)
bool has_readonly_property(const caseless_str &pname) const
std::set< std::string > all_property_names() const
static property_list::pval_map_type factory_defaults()
bool has_property(const caseless_str &pname) const
static bool has_core_property(const caseless_str &pname)
octave_value get(bool all=false) const
property get_property(const caseless_str &pname)
static std::set< std::string > core_property_names()
void set(const caseless_str &pname, const octave_value &val)
static bool has_readonly_property(const caseless_str &pname)
static std::set< std::string > readonly_property_names()
bool has_readonly_property(const caseless_str &pname) const
octave_value as_octave_value() const
octave_map map_value() const
octave_value get(bool all=false) const
bool has_property(const caseless_str &pname) const
std::set< std::string > all_property_names() const
static std::set< std::string > core_property_names()
static property_list::pval_map_type factory_defaults()
static std::set< std::string > readonly_property_names()
void set(const caseless_str &pname, const octave_value &val)
static bool has_readonly_property(const caseless_str &pname)
property get_property(const caseless_str &pname)
static bool has_core_property(const caseless_str &pname)
@ ID_SPECULARCOLORREFLECTANCE
bool has_readonly_property(const caseless_str &pname) const
static bool has_core_property(const caseless_str &pname)
static std::set< std::string > readonly_property_names()
bool has_property(const caseless_str &pname) const
static property_list::pval_map_type factory_defaults()
std::set< std::string > all_property_names() const
property get_property(const caseless_str &pname)
static bool has_readonly_property(const caseless_str &pname)
static std::set< std::string > core_property_names()
octave_value get(bool all=false) const
void set(const caseless_str &pname, const octave_value &val)
bool has_readonly_property(const caseless_str &pname) const
property get_property(const caseless_str &pname)
octave_value get(bool all=false) const
static bool has_readonly_property(const caseless_str &pname)
static bool has_core_property(const caseless_str &pname)
static property_list::pval_map_type factory_defaults()
static std::set< std::string > core_property_names()
static std::set< std::string > readonly_property_names()
bool has_property(const caseless_str &pname) const
@ ID_SPECULARCOLORREFLECTANCE
std::set< std::string > all_property_names() const
void set(const caseless_str &pname, const octave_value &val)
bool has_readonly_property(const caseless_str &pname) const
void set(const caseless_str &pname, const octave_value &val)
octave_value get(bool all=false) const
static std::set< std::string > readonly_property_names()
static std::set< std::string > core_property_names()
bool has_property(const caseless_str &pname) const
property get_property(const caseless_str &pname)
static bool has_core_property(const caseless_str &pname)
std::set< std::string > all_property_names() const
static property_list::pval_map_type factory_defaults()
static bool has_readonly_property(const caseless_str &pname)
@ ID_HORIZONTALALIGNMENTMODE
@ ID_VERTICALALIGNMENTMODE
bool has_readonly_property(const caseless_str &pname) const
static property_list::pval_map_type factory_defaults()
property get_property(const caseless_str &pname)
static bool has_readonly_property(const caseless_str &pname)
void set(const caseless_str &pname, const octave_value &val)
octave_value get(bool all=false) const
static bool has_core_property(const caseless_str &pname)
static std::set< std::string > readonly_property_names()
bool has_property(const caseless_str &pname) const
static std::set< std::string > core_property_names()
std::set< std::string > all_property_names() const
bool has_readonly_property(const caseless_str &pname) const
bool has_property(const caseless_str &pname) const
static std::set< std::string > readonly_property_names()
static property_list::pval_map_type factory_defaults()
std::set< std::string > all_property_names() const
static bool has_readonly_property(const caseless_str &pname)
static std::set< std::string > core_property_names()
property get_property(const caseless_str &pname)
static bool has_core_property(const caseless_str &pname)
octave_value get(bool all=false) const
void set(const caseless_str &pname, const octave_value &val)
bool has_readonly_property(const caseless_str &pname) const
static property_list::pval_map_type factory_defaults()
void set(const caseless_str &pname, const octave_value &val)
std::set< std::string > all_property_names() const
bool has_property(const caseless_str &pname) const
static std::set< std::string > core_property_names()
octave_value get(bool all=false) const
static bool has_core_property(const caseless_str &pname)
static std::set< std::string > readonly_property_names()
@ ID_REARRANGEABLECOLUMNS
@ ID_CELLSELECTIONCALLBACK
property get_property(const caseless_str &pname)
static bool has_readonly_property(const caseless_str &pname)
bool has_readonly_property(const caseless_str &pname) const
void() error(const char *fmt,...)
octave_handle graphics_handle
#define OCTAVE_DEFAULT_FONTNAME