Microscopy Image Browser  1.233
All Classes Files Functions Variables Pages
toolbarInterpolation.m File Reference

Function to set the state of the interpolation button in the toolbar. More...

Functions

function  toolbarInterpolation (hObject, eventdata, handles, options)
 Function to set the state of the interpolation button in the toolbar. More...
 

Detailed Description

Function to set the state of the interpolation button in the toolbar.

Function Documentation

function toolbarInterpolation (   hObject,
  eventdata,
  handles,
  options 
)

Function to set the state of the interpolation button in the toolbar.

When the 'options' variable is omitted the function works as a standard callback and changes the type of interpolation: 'shape' or 'line'. However, when 'options' are specified the function sets the state of the button to the currently selected type.

Parameters
hObjecta handle of the button, handles.toolbarInterpolation
eventdataeventdata, may be empty - ' '
handleshandles structure of im_browser.m
options[optional],
  • when 'keepcurrent' set the state of the button to the currently selected type of the interpolation.
Required fields of handles:

Examples:

toolbarInterpolation(handles.toolbarInterpolation, '', handles, 'keepcurrent'); // update the interpolation button icon
toolbarInterpolation(handles.toolbarInterpolation, '', handles); // a callback to the button press

Referenced by im_browser_getDefaultParameters(), menuFilePreferences(), imbrowser>toolbarInterpolation_ClickedCallback(), and preferencesDlg>applyBtn_Callback().

Here is the caller graph for this function: