function CreateEulerPanel(handles)
%
% Copyright 2010, Joseph O. Deasy, on behalf of the CERR development team.
% 
% This file is part of The Computational Environment for Radiotherapy Research (CERR).
% 
% CERR development has been led by:  Aditya Apte, Divya Khullar, James Alaly, and Joseph O. Deasy.
% 
% CERR has been financially supported by the US National Institutes of Health under multiple grants.
% 
% CERR is distributed under the terms of the Lesser GNU Public License. 
% 
%     This version of CERR is free software: you can redistribute it and/or modify
%     it under the terms of the GNU General Public License as published by
%     the Free Software Foundation, either version 3 of the License, or
%     (at your option) any later version.
% 
% CERR is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
% without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
% See the GNU General Public License for more details.
% 
% You should have received a copy of the GNU General Public License
% along with CERR.  If not, see <http://www.gnu.org/licenses/>.


    %Euler Panel
    handles.eulerPanel = uipanel('Parent',handles.toolPanel,'Units','normalize','FontSize',10,'Title','Registration Parameters',...
                                    'Tag','eulerPanel','Clipping','off',...
                                    'Position',[0 0 1 1],...
                                    'Visible','on');
    dx = 0; dy = 80;                                
    h380 = uicontrol(...
    'Parent',handles.eulerPanel,...
    'FontSize',10,...
    'HorizontalAlignment','right',...
    'Position',[19.5308641975309+dx 214.470588235294+dy 115.086419753087 19],...
    'String','Rotation Scale:',...
    'Style','text',...
    'Tag','text97');

    handles.Euler_RS = uicontrol(...
    'Parent',handles.eulerPanel,...
    'FontSize',10,...
    'HorizontalAlignment','left',...
    'Position',[143.395061728395+dx 210+dy 77.0493827160494 24.5882352941177],...
    'String','1.0',...
    'Style','edit',...
    'Tag','Euler_RS');

    h382 = uicontrol(...
    'Parent',handles.eulerPanel,...
    'FontSize',10,...
    'HorizontalAlignment','right',...
    'Position',[19.5308641975309+dx 179.823529411765+dy 115.086419753087 19],...
    'String','Translation Scale:',...
    'Style','text',...
    'Tag','text98');

    handles.Euler_TS = uicontrol(...
    'Parent',handles.eulerPanel,...
    'FontSize',10,...
    'HorizontalAlignment','left',...
    'Position',[143.395061728395+dx 175.352941176471+dy 77.0493827160494 23.4705882352941],...
    'String','0.001',...
    'Style','edit',...
    'Tag','Euler_TS');

    h384 = uicontrol(...
    'Parent',handles.eulerPanel,...
    'FontSize',10,...
    'HorizontalAlignment','right',...
    'Position',[10.7530864197531+dx 146.294117647059+dy 123.864197530864 20.1176470588235],...
    'String','Initial Angle(Degree):',...
    'Style','text',...
    'Tag','text99');

    handles.Euler_InitAngle = uicontrol(...
    'Parent',handles.eulerPanel,...
    'FontSize',10,...
    'HorizontalAlignment','left',...
    'Position',[143.395061728395+dx 142.941176470588+dy 77.0493827160494 23.4705882352941],...
    'String','0',...
    'Style','edit',...
    'Tag','Euler_InitAngle');

    handles.Euler_minstep = uicontrol(...
    'Parent',handles.eulerPanel,...
    'FontSize',10,...
    'HorizontalAlignment','left',...
    'Position',[143.395061728395+dx 99.3529411764706+dy 76.0740740740741 26.8235294117647],...
    'String','0.01',...
    'Style','edit',...
    'Tag','Euler_minstep');

    handles.Euler_maxstep = uicontrol(...
    'Parent',handles.eulerPanel,...
    'FontSize',10,...
    'HorizontalAlignment','left',...
    'Position',[143.395061728395+dx 62.4705882352942+dy 76.0740740740741 25.7058823529412],...
    'String','1.0',...
    'Style','edit',...
    'Tag','Euler_maxstep');

    h388 = uicontrol(...
    'Parent',handles.eulerPanel,...
    'FontSize',10,...
    'HorizontalAlignment','right',...
    'Position',[19.5308641975309+dx 106.058823529412+dy 115.086419753087 19],...
    'String','Minimum Step:',...
    'Style','text',...
    'Tag','text100');

    h389 = uicontrol(...
    'Parent',handles.eulerPanel,...
    'FontSize',10,...
    'HorizontalAlignment','right',...
    'Position',[19.5308641975309+dx 69.1764705882353+dy 115.086419753087 19],...
    'String','Maximum Step:',...
    'Style','text',...
    'Tag','text101');

    h390 = uicontrol(...
    'Parent',handles.eulerPanel,...
    'FontSize',10,...
    'HorizontalAlignment','right',...
    'Position',[19.5308641975309+dx 31.1764705882353+dy 115.086419753087 19],...
    'String','Iteration Number :',...
    'Style','text',...
    'Tag','text102');

    handles.Euler_IterNum = uicontrol(...
    'Parent',handles.eulerPanel,...
    'FontSize',10,...
    'HorizontalAlignment','left',...
    'Position',[143.395061728395+dx 25.5882352941177+dy 76.0740740740741 25.7058823529412],...
    'String','200',...
    'Style','edit',...
    'Tag','Euler_IterNum');

    guidata(handles.mainframe, handles);
    
end

    