Home > . > set_title.m

# set_title

## PURPOSE

'set_title': defines the 'TITLE' of a projection object

## SYNOPSIS

function TITLE=set_title(Style,ProjMode)

## DESCRIPTION

    'set_title': defines the 'TITLE' of a projection object
    -----------------------------------------------------------
     function TITLE=set_title(Style,ProjMode)
     OUTPUT:
        TITLE: char string defining the title

     INPUT:
        Style: char string defining the style of the projection opbject
        ProjMode:  char string defining the projection mode
    ------------------------------------------------
    ------------------------------------------------

## CROSS-REFERENCE INFORMATION

This function calls:

This function is called by:

- mouse_down 'mouse_down': function activated when the mouse button is pressed on a figure (callback for 'WindowButtonDownFcn'
- plot_field 'plot_field': plot any field with the structure defined in the uvmat package
- set_grid 'set_grid':produce grid for PIV with one or two images (stereo case)
- set_object 'set_object': GUI to edit a projection object
- update_obj 'update_obj': update the object graph representation and its projection field, record it in the uvmat interface

## SOURCE CODE

    0001 %'set_title': defines the 'TITLE' of a projection object
    0002 %-----------------------------------------------------------
    0003 % function TITLE=set_title(Style,ProjMode)
    0004 % OUTPUT:
    0005 %    TITLE: char string defining the title
    0006 %
    0007 % INPUT:
    0008 %    Style: char string defining the style of the projection opbject
    0009 %    ProjMode:  char string defining the projection mode
    0010 %------------------------------------------------
    0011 function TITLE=set_title(Style,ProjMode)
    0012 %------------------------------------------------
    0013 TITLE=[]; %default
    0014 if isequal(Style,'points')
    0015     TITLE='POINTS';
    0016 elseif isequal(Style,'line')|isequal(Style,'polyline')
    0017     TITLE='LINE';
    0018 elseif isequal(Style,'plane')
    0019     TITLE='PLANE';
    0020 elseif isequal(Style,'volume')
    0021     TITLE='VOLUME';
    0022 elseif isequal(Style,'polygon')|isequal(Style,'rectangle')|isequal(Style,'ellipse')
    0023     if isequal(ProjMode,'inside')|isequal(ProjMode,'outside')
    0024         TITLE='PATCH';
    0025     elseif isequal(ProjMode,'mask_inside')|isequal(ProjMode,'mask_outside')
    0026         TITLE='MASK';
    0027     else
    0028         TITLE='LINE';
    0029     end
    0030 end