KerMor  0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FunVis2DHandler.m
Go to the documentation of this file.
1 
2 
3 /* (Autoinserted by mtoc++)
4  * This source code has been filtered by the mtoc++ executable,
5  * which generates code that can be processed by the doxygen documentation tool.
6  *
7  * On the other hand, it can neither be interpreted by MATLAB, nor can it be compiled with a C++ compiler.
8  * Except for the comments, the function bodies of your M-file functions are untouched.
9  * Consequently, the FILTER_SOURCE_FILES doxygen switch (default in our Doxyfile.template) will produce
10  * attached source files that are highly readable by humans.
11  *
12  * Additionally, links in the doxygen generated documentation to the source code of functions and class members refer to
13  * the correct locations in the source code browser.
14  * However, the line numbers most likely do not correspond to the line numbers in the original MATLAB source files.
15  */
16 
18  :public handle {
37  public:
38 
40 
42 
43 
44  public:
45 
46  FunVis2DHandler(handleFunVis2DFigure) {
47  this.Figure= handleFunVis2DFigure;
48  this.handles= guidata(handleFunVis2DFigure);
49  }
50 
51 
52  function setPlotFunction(value) {
53  set(this.handles.chkPlotFun," Value ",value);
54  this.updatePlot;
55  }
56 
57 
58  function setDisplayedCentersPerc(value) {
59  ch = this.handles.slCenters;
60  set(ch," Value ",value);
61  FunVis2D(" slCenters_Callback ",ch,[],this.handles);
62  }
63 
64 
66  ch = this.handles.slPerc;
67  set(ch," Value ",value);
68  FunVis2D(" slPerc_Callback ",ch,[],this.handles);
69  }
70 
71 
72  function setGridElems(num) {
73  ch = this.handles.slRefine;
74  set(ch," Value ",num);
75  FunVis2D(" slRefine_Callback ",ch,[],this.handles);
76  }
77 
78 
79  function setInputDim1(value) {
80  l = this.handles.dim1;
81  set(l," Value ",value);
82  FunVis2D(" dim1_Callback ",l,[],this.handles);
83  }
84 
85 
86  function setInputDim2(value) {
87  l = this.handles.dim2;
88  set(l," Value ",value);
89  FunVis2D(" dim2_Callback ",l,[],this.handles);
90  }
91 
92 
93  function setOutputDim(value) {
94  l = this.handles.dout;
95  set(l," Value ",value);
96  FunVis2D(" dout_Callback ",l,[],this.handles);
97  }
98 
99 
100  function setFreeDim(dim,value) {
101  h = this.handles;
102  conf = getappdata(h.main," conf ");
103  if value < conf.box(dim,1)
104  value = conf.box(dim,1);
105  fprintf(2," Minimum value of %g allowed.\n ",conf.box(dim,1));
106  elseif value > conf.box(dim,2)
107  value = conf.box(dim,2);
108  fprintf(2," Maximum value of %g allowed.\n ",conf.box(dim,2));
109  end
110 
111  conf.basex(dim) = value;
112  setappdata(h.main," conf ",conf);
113 
114  /* Update GUI */
115  ch = get(this.Figure," Children ");
116  sh = findobj(ch," UserData ",dim);
117  if ~isempty(sh)
118  set(sh," Value ",value);
119  tag = get(sh," Tag ");
120  pos = strfind(tag," _ ");
121  lbltag = sprintf(" runtime_lbl_val_%s ",tag(pos(end)+1:end));
122  lbl = findobj(ch," Tag ",lbltag);
123  set(lbl," String ",sprintf(" %2.4e ",conf.basex(dim)));
124  end
125 
126  /* Call other updating methods */
127  FunVis2D(" updateATDPoints ",h,conf);
128  conf = FunVis2D(" updateCenterPoints ",h,conf);
129  FunVis2D(" updateFX ", h, conf);
130  }
138  function setPlotCenterLines(value) {
139  set(this.handles.chkPlotCenterLines," Value ",value);
140  this.updatePlot;
141  }
142 
143 
144  function copyAxesTo(ax) {
145  copyobj(get(this.handles.ax," Children "), ax);
146  /* Set same view */
147  set(ax," View ",get(this.handles.ax," View "));
148  zlabel(ax, this.getOutputDimLabel);
149  }
157  function setView(az,el) {
158  set(this.handles.ax," View ",[az el]);
159  }
160 
161 
162  function lbl = getOutputDimLabel() {
163  sv = get(this.handles.dout," String ");
164  lbl = sv(get(this.handles.dout," Value "));
165  }
166 
167  private:
168 
169  function h = getHandle() {
170  h = findobj(this.fh," Tag ",name);
171  }
172 
173 
174  function updatePlot() {
175  FunVis2D(" plotCurrent ",this.handles,getappdata(this.handles.main," conf "));
176  }
177 
178 
179 
180 };
181 
function setInputDim2(value)
function setDisplayedCentersPerc(value)
function lbl = getOutputDimLabel()
function setFreeDim(dim, value)
Get app data and update.
function setPlotCenterLines(value)
function setGridElems(num)
function setDisplayedTrainingPointsPerc(value)
function varargout = FunVis2D(varargin)
User interface to visualize highdimensional functions using two input dimensions and one output dimen...
Definition: FunVis2D.m:17
FunVis2DHandler:
Matlab's base handle class (documentation generation substitute)
function copyAxesTo(ax)
Copy children.
FunVis2DHandler(handleFunVis2DFigure)
function setInputDim1(value)
function setOutputDim(value)
function setPlotFunction(value)
findobj
Finds objects matching the specified conditions from the input array of handle objects.
function setView(az, el)