source: trunk/src/set_title.m @ 19

Last change on this file since 19 was 19, checked in by gostiaux, 11 years ago

the private files have been moved down to the root folder

File size: 1.0 KB
Line 
1%'set_title': defines the 'TITLE' of a projection object
2%-----------------------------------------------------------
3% function TITLE=set_title(Style,ProjMode)
4% OUTPUT:
5%    TITLE: char string defining the title
6%
7% INPUT:
8%    Style: char string defining the style of the projection opbject
9%    ProjMode:  char string defining the projection mode
10%------------------------------------------------
11function TITLE=set_title(Style,ProjMode)
12%------------------------------------------------
13TITLE=[]; %default
14if isequal(Style,'points')
15    TITLE='POINTS';
16elseif isequal(Style,'line')|isequal(Style,'polyline')
17    TITLE='LINE';
18elseif isequal(Style,'plane')
19    TITLE='PLANE';
20elseif isequal(Style,'volume')
21    TITLE='VOLUME';
22elseif isequal(Style,'polygon')|isequal(Style,'rectangle')|isequal(Style,'ellipse')
23    if isequal(ProjMode,'inside')|isequal(ProjMode,'outside')
24        TITLE='PATCH';
25    elseif isequal(ProjMode,'mask_inside')|isequal(ProjMode,'mask_outside')
26        TITLE='MASK';
27    else
28        TITLE='LINE';
29    end
30end
Note: See TracBrowser for help on using the repository browser.