source: an2_helpabout.m @ 44

Last change on this file since 44 was 42, checked in by tjniskan, 11 years ago
  • Rewrote the overlay feature of Aedes to work with absolute rather

than relative values.

  • The export tool can now also print overlays and ROIs with

transparencies. In these cases, however, it has to use OpenGL renderer
which is more unreliable in terms of print quality than other renderers.

  • Added a license notification that prints into the command window

every time Aedes is started. This has to do with the coming
"internationalization" of Aedes. The notification can be suppressed y
typing setpref('Aedes','ShowLicenseAtStartUp?',false) into the command
window.

  • Added some further error checking in an2_fitmaps.m
  • Fixed a minor bug in an2_write_nifti.m

M an2_export_gui.m
M an2_revision.m
M an2_fitmaps.m
M aedes.m
M an2_helpabout.m
M an2_write_nifti.m

File size: 6.4 KB
Line 
1function an2_helpabout()
2% AN2_HELPABOUT - Show Aedes About dialog
3%   
4%
5% Synopsis:
6%
7% Description:
8%
9% Examples:
10%
11% See also:
12%        AEDES
13
14% This function is a part of Aedes - A graphical tool for analyzing
15% medical images
16%
17% Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uku.fi>
18%
19% Department of Physics, (or Department of Neurobiology)
20% University of Kuopio, FINLAND
21%
22% This program may be used under the terms of the GNU General Public
23% License version 2.0 as published by the Free Software Foundation
24% and appearing in the file LICENSE.TXT included in the packaging of
25% this program.
26%
27% This program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
28% WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
29
30
31%% Load default font and colors
32GD=an2_gui_defaults;
33
34% Position figure to the center of the screen
35scrsz = get(0,'screensize');
36fig_w = 310;
37fig_h = 395;
38fig_pos = [scrsz(3)/2-fig_w/2 scrsz(4)/2-fig_h/2 fig_w fig_h];
39
40%% Main Figure ----------------------------
41fh = figure('Units','Pixel', ...
42            'position',fig_pos,...
43            'Name',['About Aedes'],...
44            'Numbertitle','off', ...
45            'Tag','aedes_about_figure', ...
46            'Color','w',...%GD.col.mainfig, ...
47            'Toolbar','none', ...
48            'Menubar','none', ...
49            'DoubleBuffer','on', ...
50            'DockControls','off',...
51            'renderer','painters',...
52            'Handlevisibility','off',...
53            'windowstyle','modal',...
54            'colormap',gray(256));
55set(fh,'resize','off')
56
57%% Background axes
58bgax = axes('parent',fh,...
59            'units','normal',...
60            'position',[0 0 1 1],...
61            'xlim',[0 1],...
62            'ylim',[0 1],...
63            'visible','off');
64
65%% Image axes
66imax = axes('parent',fh,...
67            'units','pixel',...
68            'position',[0.05*fig_w 0.12*fig_h 0.9*fig_w 0.9*fig_w],...
69            'visible','off',...
70            'ydir','reverse',...
71            'clim',[0 500]);
72uistack(imax,'bottom')
73
74%% Show head image
75fpath=which('aedes');
76[fp,fn,fe]=fileparts(fpath);
77try
78  imdata = imread([fp,filesep,'about_aedes.png']);
79  imdata = imdata(:,:,1);
80catch
81  delete(fh);
82  hh=errordlg('Cannot find file "about_aedes.png"!','Error!',...
83              'modal');
84  return
85end
86sz=size(imdata);
87im=image('parent',imax,'cdata',imdata,...
88         'cdatamapping','scaled');
89set(imax,'xlim',[0.5 sz(1)+0.5],...
90         'ylim',[0.5 sz(2)+0.5],...
91         'clim',[min(min(imdata)) max(max(imdata))])
92set(imax,'clim',[-500 255])
93
94%% Title text
95shadow_tx = text('parent',bgax,...
96                 'horizontalalign','left',...
97                 'units','normal',...
98                 'position',[0.054 0.976],...
99                 'verticalalign','top',...
100                 'string','Aedes 1.0',...
101                 'fontsize',22,...
102                 'fontweig','bold',...
103                 'color',[0 0 0]);
104title_tx = text('parent',bgax,...
105                'horizontalalign','left',...
106                'units','normal',...
107                'position',[0.05 0.98],...
108                'verticalalign','top',...
109                'string','Aedes 1.0',...
110                'fontsize',22,...
111                'fontweig','bold',...
112                'color',[0 0 0.85]);
113
114% Version text
115[rev,repo,wc_dir] = an2_revision;
116version_tx = text('parent',bgax,...
117                  'horizontalalign','left',...
118                  'units','normal',...
119                  'position',[0.10 0.89],...
120                  'verticalalign','top',...
121                  'string',...
122                                  sprintf(['version 1.0 rev %d\n(%s)'],rev,repo),...
123                  'fontsize',10,...
124                  'fontweig','bold',...
125                  'color',[0 0 0]);
126                               
127% Licence notise text
128tmp = get(version_tx,'position');
129lic_tx = text('parent',bgax,...
130  'horizontalalign','left',...
131  'units','normal',...
132  'position',[tmp(1) tmp(2)-0.1],...
133  'verticalalign','top',...
134  'string',{'Aedes comes with ABSOLUTELY NO WARRANTY!',...
135  'This is free software, and you are welcome to',...
136  'redistribute it under certain conditions. Please ',...
137  'see the file "license.txt" for details.'},...
138  'fontsize',8,...
139  'fontweig','bold',...
140  'color',[0 0 0]);
141
142% Copyright text
143tmp=get(imax,'position');
144copyright_tx = text('parent',bgax,...
145                    'horizontalalign','left',...
146                    'units','pixel',...
147                    'position',[0.05*fig_w 25],...%[tmp(1) tmp(2)],...
148                    'verticalalign','bottom',...
149                    'string',[char(169),' 2006 Juha-Pekka Niskanen'],...
150                    'fontsize',8,...
151                    'fontweig','bold',...
152                    'color',[0 0 0]);
153
154% Horizontal line
155ln = line('parent',bgax,...
156          'xdata',[0.05 0.95],...
157          'ydata',[0.1 0.1],...
158          'color',[0.8 0.8 0.8]);
159
160% Contact info
161contact_shadow = text('parent',imax,...
162                      'horizontalalign','left',...
163                      'units','normal',...
164                      'position',[0.053 0.047],...
165                      'verticalalign','bottom',...
166                      'string',{'Contact information:','',...
167                    'Juha-Pekka Niskanen,',...
168                    'University of Kuopio,',...
169                    'Department of Physics,',...
170                    'PL 1627, 70211 Kuopio, Finland'...
171                    'Email: Juha-Pekka.Niskanen@uku.fi'},...
172                      'fontsize',8,...
173                      'fontweig','bold',...
174                      'color',[1 1 1]);
175contact_tx = text('parent',imax,...
176                  'horizontalalign','left',...
177                  'units','normal',...
178                  'position',[0.05 0.05],...
179                  'verticalalign','bottom',...
180                  'string',{'Contact information:','',...
181                    'Juha-Pekka Niskanen,',...
182                    'University of Kuopio,',...
183                    'Department of Physics,',...
184                    'PL 1627, 70211 Kuopio, Finland'...
185                    'Email: Juha-Pekka.Niskanen@uku.fi'},...
186                  'fontsize',8,...
187                  'fontweig','bold',...
188                  'color',[0 0 0]);
189
190% Close button
191close_btn = uicontrol('parent',fh,...
192                      'units','normal',...
193                      'position',[0.7 0.01 0.25 0.075],...
194                      'style','pushbutton',...
195                      'string','Close',...
196                      'callback','delete(gcbf)');
Note: See TracBrowser for help on using the repository browser.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008