1 | %'read_set_object': read the data on the 'set_object' interface
|
---|
2 | %--------------------------------------------------------
|
---|
3 | % data=read_set_object(handles)
|
---|
4 | %--------------------------------------------------------
|
---|
5 | %OUTPUT
|
---|
6 | %data: structure of data read on the set_object interface
|
---|
7 | % .Style : style of projection object
|
---|
8 | % .Coord(nbpos,3): set of coordinates defining the object position;
|
---|
9 | % .ProjMode=type of projection ;
|
---|
10 | % .Phi=angle of projection;
|
---|
11 | % .DX,.DY,.DZ=increments;
|
---|
12 | % .YMax,YMin: min and max Y
|
---|
13 | %INPUT:
|
---|
14 | % handles: structure describing the tags of the edit boxes and menus
|
---|
15 | function data=read_set_object(handles)
|
---|
16 | %menus
|
---|
17 | data=read_GUI(handles);
|
---|
18 |
|
---|
19 | % %Euler angles and projection ranges
|
---|
20 | % if isfield(data,'Angle_x')
|
---|
21 | % data.Angle(1)=data.Angle_x;
|
---|
22 | % data=rmfield(data,'Angle_x');
|
---|
23 | % end
|
---|
24 | % if isfield(data,'Angle_y')
|
---|
25 | % data.Angle(2)=data.Angle_y;
|
---|
26 | % data=rmfield(data,'Angle_y');
|
---|
27 | % end
|
---|
28 | % if isfield(data,'Angle_z')
|
---|
29 | % data.Angle(3)=data.Angle_z;
|
---|
30 | % data=rmfield(data,'Angle_z');
|
---|
31 | % end
|
---|
32 | % % ranges of projection
|
---|
33 | % data.RangeZ=[];
|
---|
34 | % data.RangeY=[];
|
---|
35 | % data.RangeX=[];
|
---|
36 | % if isfield(data,'ZMin')&& ~isempty(data.ZMin)
|
---|
37 | % data.RangeZ=data.ZMin;
|
---|
38 | % data=rmfield(data,'ZMin');
|
---|
39 | % end
|
---|
40 | % if isfield(data,'ZMax')&& ~isempty(data.ZMax)
|
---|
41 | % data.RangeZ=[data.RangeZ data.ZMax];
|
---|
42 | % data=rmfield(data,'ZMax');
|
---|
43 | % end
|
---|
44 | % if isfield(data,'YMin')&& ~isempty(data.YMin)
|
---|
45 | % data.RangeY=data.YMin;
|
---|
46 | % data=rmfield(data,'YMin');
|
---|
47 | % end
|
---|
48 | % if isfield(data,'YMax')&& ~isempty(data.YMax)
|
---|
49 | % data.RangeY=[data.RangeY data.YMax];
|
---|
50 | % data=rmfield(data,'YMax');
|
---|
51 | % end
|
---|
52 | % if isfield(data,'XMin')&& ~isempty(data.XMin)
|
---|
53 | % data.RangeX=data.XMin;
|
---|
54 | % data=rmfield(data,'XMin');
|
---|
55 | % end
|
---|
56 | % if isfield(data,'XMax')&& ~isempty(data.XMax)
|
---|
57 | % data.RangeX=[data.RangeX data.XMax];
|
---|
58 | % data=rmfield(data,'XMax');
|
---|
59 | % end
|
---|
60 | %
|
---|
61 | %
|
---|
62 | %
|
---|
63 | %
|
---|