| Trees | Indices | Help |
|---|
|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
__package__ = None
|
|||
|
|||
Returns
|
Globally disables drawing of 3D view axes. If axis drawing is disabled, axes are never drawn. If it is not disabled, their rendering depends on the 3D view setup. This function is a hack and exists to work around various GL implementations that crash on pixmap drawing operations. Since: 2.14
|
Gets the tooltips object used for adding tooltips to 3D window parts.
|
Sets the tooltips object to use for adding tooltips to 3D window parts. This is a class method. It affects only newly cerated 3D windows, existing 3D windows will continue to use the tooltips they were constructed with. If no class tooltips object is set before first
|
Adds main (global) application accelerator group to a window. This includes accelerators for terminating Gwyddion, opening files, etc.
|
Constructs the application <guimenu>Graph</guimenu> menu. The menu is created from graph functions registered by modules, therefore module registeration has to be performed first for this function to make sense.
|
Constructs the application <guimenu>Data Process</guimenu> menu. The menu is created from data processing functions registered by modules, therefore module registeration has to be performed first for this function to make sense.
|
Replaces bad data points with some neutral values. Since Gwyddion has no concept of bad data points, they are usually marked with a mask and replaced with some neutral values upon import, leaving the user to decide how to proceed further. This helper function performs such replacement, using the average of all good points as the neutral replacement value (at this moment). Since: 2.14
|
Adds a channel title based on data field units. The guess is very simple, but probably better than `Unknown channel' in most cases. If there already is a title it is left intact, making use of this function as a fall-back easier. Since: 2.3
|
Adds a data container to the application data browser. The data browser takes a reference on the container so you can release yours.
|
Adds a watch function called when a channel changes. The function is called whenever a channel is added, removed, its data changes or its metadata such as the title changes. If a channel is removed it may longer exist when the function is called.
|
Adds a data field to a data container. |
Adds a graph model to a data container.
|
Adds a spectra object to a data container. Since: 2.7 |
Copies a channel including all auxiliary data. |
Gets the list of all channels in a data container whose titles match the specified pattern. Since: 2.21
|
Gets the list of all graphs in a data container whose titles match the specified pattern. Since: 2.21
|
Gets the list of all spectra in a data container whose titles match the specified pattern. Since: 2.21
|
Calls a function for each data container managed by data browser.
|
Get list of containers of current data browser.
|
Get current object of given type.
|
Gets the list of all channels in a data container. The container must be known to the data browser.
|
Gets the list of all graphs in a data container.
|
Reports whether creation of windows by the data-browser is enabled. Since: 2.21
|
Gets data browser behaviour for inaccessible data.
|
Gets the list of all spectra in a data container. Since: 2.7
|
Merges the data from a data container to the current one. Since: 2.7
|
Removed a data container from the application data browser.
|
Removes a channel watch function. Since: 2.21
|
Resets visibility of all data objects in a container.
|
Restores the data browser window. The data browser window is always created (if it does not exist). If it should be visible according to settings, is shown at the saved position. Otherwise it is kept hidden until gwy_app_data_browser_show(). |
Makes a data field (channel) current in the data browser.
|
Switches application data browser to display container of
|
Switches application data browser to display container of
|
Makes a graph model (channel) current in the data browser.
|
Switches application data browser to display container of
However, it is not actually supposed to work with spectra from a different container than those of the currently active channel, so do not try that for now. Since: 2.7
|
Globally enables or disables creation of widgets by the data-browser. By default, the data-browser creates windows for data objects automatically, for instance when reconstructing view of a loaded file, after a module function creates a new channel or graph or when it is explicitly asked so by gwy_app_data_browser_show_3d(). Non-GUI applications that run module functions usually wish to disable GUI. If GUI is disabled the data browser never creates windows showing data objects and also gwy_app_data_browser_show() becomes no-op. Disabling GUI after widgets have been already created is a bad idea. Hence you should do so before loading files or calling module functions. Since: 2.21
|
Sets data browser behaviour for inaccessible data. Normally, when all visual objects belonging to a file are closed the
container is removed from the data browser and dereferenced, leading to
its finalization. By setting
|
Shows the data browser window. If the window does not exist, it is created. |
Shows a 3D window displaying a channel. If a 3D window of the specified channel already exists, it is just presented to the user. If it does not exist, it is created. The caller must ensure 3D display is available, for example by checking gwy_app_gl_is_ok().
|
Releases data browser resources and saves its state. |
Clears all selections associated with a data channel. This is the preferred selection handling after changes in data geometry as they have generally unpredictable effects on selections. Selection should not be removed because this is likely to make the current tool stop working.
|
Runs mask color selector on a data view. This is a convenience function to run gwy_color_selector_for_mask(), possibly taking the initial color from settings.
|
Asks for file overwrite for a file save chooser.
|
Load specified file
|
Merges a user-selected file (very high-level app function). Since: 2.7 |
Opens a user-selected file (very high-level app function). |
Saves current data to a file (very high-level app function). May fall back to gwy_app_file_save_as() when current data has no file name associated with it, or the format it was loaded from is not saveable. |
Saves current data to a user-selected file (very high-level app function). |
Writes container to a file (a high-level function). At least one of The file is saved in interactive mode, modules can ask for user input. If the write fails, an error dialog is presented.
|
Finds the window displaying a data channel.
|
Creates a channel thumbnail.
|
Returns what the app uses as `current directory'. Warning: This function is probably temporary.
|
Gets a data channel title. This function should return a reasoanble title for untitled channels, channels with old titles, channels with and without a file, etc.
|
Calculates data field quark identifier from its id.
|
Calculates graph model quark identifier from its id. Since: 2.7
|
Calculates mask field quark identifier from its id.
|
Calculates presentation field quark identifier from its id.
|
Calculates spectra quark identifier from its id. Since: 2.7
|
Gets the application-wide tooltips instance.
|
Checks for working OpenGL and initializes it. When OpenGL support is not compiled in, this function does not do anything. When OpenGL is supported, it calls gtk_gl_init_check() and gwy_widgets_gl_init() (if the former succeeeds).
|
Returns OpenGL availability.
|
Creates or presents OpenGL material editor. Material editor is singleton, therefore if it doesn't exist, this function creates and displays it. If it already exists, it simply calls gtk_window_present() on the existing instance. It exists until it's closed by user. |
Creates or presents color gradient editor. Gradient editor is singleton, therefore if it doesn't exist, this function creates and displays it. If it already exists, it simply calls gtk_window_present() on the existing instance. It exists until it's closed by user. |
Initializes internationalization. Normally not needed to call explicitly. |
Sets up style properties for special Gwyddion widgets. Normally not needed to call explicitly. |
Returns Gwyddion main application window (toolbox).
|
Gets the application recent files menu. The menu is initially empty and can be updated with
|
Updates recent file menu. If the list of files is longer than the maximum number of recent file menu items, only the maximum number is shown.
|
Saves application data processing function statistics. |
Adds <guimenuitem>Re-show Last</guimenuitem> and <guimenuitem>Repeat Last</guimenuitem> items to application data process menu. This function is essentially useful only for toolbox construction.
|
Quits the application. This function may present a confirmation dialog to the user and it may let the application to continue running. If it quits the application, it performs some shutdown actions and then quits the Gtk+ main loop with gtk_main_quit().
|
Gets thumbnail of a recently open file.
|
Frees all memory taken by recent file list. Should not be called while the recent file menu still exists. |
Loads list of recently open files from
Cannot be called more than once (at least not without doing gwy_app_recent_file_list_free() first). Must be called
before any other document history function can be used, even if on a
nonexistent file: use
|
Saves list of recently open files to
|
Moves At least one of
|
Restores a window position and/or size from settings. Unlike gwy_app_save_window_position(), this function has no
Note to restore position (not size) it should be called twice for each window to accommodate sloppy window managers: once before the window is shown, second time immediately after showing the window. Some sanity checks are included, therefore if saved window position and/or size is too suspicious, it is not restored.
|
Runs a graph function on the current graph.
|
Runs a data processing function on the current data. From the run modes function
|
Runs a data processing function on current data in specified mode.
|
Saves position and/or size of a window to settings. Some sanity checks are included, therefore if window position and/or size is too suspicious, it is not saved.
|
Adds a widget to the application-wide widget sensitvity group. The semantics of this function is the same as SensitivityGroup.add_widget() (in fact, it's a simple wrapper around it).
|
Gets the application-wide widget sensitvity group. The flags to be used with this sensitvity group are defined in
|
Sets the state of application-wide widget sensitvity group. The semantics of this function is the same as SensitivityGroup.set_state() (in fact, it's a simple wrapper around it).
|
Sets what the app should use as `current directory'. Warning: This function is probably temporary.
|
Sets channel title.
|
Create gwyddion config directory.
|
Returns error domain for application settings operations. See and use
|
Frees Gwyddion settings. Should not be called only by main application. |
Gets the Gwyddion settings. The settings are a
|
Returns a suitable log file name.
|
Returns a list of directories to search modules in.
|
Returns a suitable recent file list file name.
|
Returns a suitable human-readable settings file name.
|
Loads settings file.
|
Saves the settings. Use gwy_app_settings_get_settings_filename() to obtain a suitable default filename.
|
Switches the current tool.
|
Create a point in the undo history it is possible to return to. In addition to what
|
Removes undo/redo information for a data container. In addition to what gwy_undo_container_remove() does, this function takes care of updating application controls state. Since: 2.23
|
Create a point in the undo history it is possible to return to. In addition to what If
|
Performs undo on a data container. It must have redo available. In addition to what gwy_undo_redo_container() does, this function takes care of updating application controls state.
|
Performs undo on a data container. It must have undo available. In addition to what gwy_undo_undo_container() does, this function takes care of updating application controls state.
|
Resets the cursor for a window. This function lets the Gtk+ main loop to run. If the window cursor was non-default before gwy_app_wait_cursor_start(), it is not restored and has to be set manually. This limitation is due to the nonexistence of a method to obtain the current cursor. Since: 2.3
|
Changes the cursor for a window to indicate work. This function lets the Gtk+ main loop to run. Since: 2.3
|
Finishes waiting, closing the dialog. No function like gwy_app_wait_set_message() should be call after that. This function must be called even if user cancelled the operation. |
Sets the amount of progress the progress bar on the dialog displays.
|
Sets the message shown on the progress dialog. See also gwy_app_wait_set_message_prefix() which makes this function more usable directly as a callback.
|
Sets prefix for the messages shown in the progress dialog. The prefix will take effect in the next gwy_app_wait_set_message() call.
|
Starts waiting for a window Waiting is global, there can be only one at a time.
|
Compares two strings for equality, ignoring case. The case folding is performed only on ASCII characters. This function is intended to be passed to g_hash_table_new() as
Since: 2.26
|
Converts a string to a hash value, ignoring case. The case folding is performed only on ASCII characters. This function is intended to be passed to g_hash_table_new() as
Since: 2.26
|
Canonicalizes a filesystem path. Particularly it makes the path absolute, resolves `..' and `.', and fixes slash sequences to single slashes. On Win32 it also converts all backslashes to slashes along the way. Note this function does NOT resolve symlinks, use g_file_read_link() for that.
|
Gets inventory with all the critical dimension evaluators.
|
Creates a new color axis.
|
Creates a new color button.
|
Creates and runs a color selector dialog for a mask. See gwy_mask_color_selector_run() for details.
|
Changes the unit selection displayed by a metric unit combo box. Since: 2.5
|
Restores a container from is text representation.
|
Converts a block of raw data items to doubles. Note that conversion from 64bit integral types may lose information as they have more bits than the mantissa of doubles. All other conversions should be precise. Since: 2.25
|
Creates a data chooser for data channels.
|
Destroys a correlation iterator, freeing all resources.
|
Performs one iteration of correlation. An iterator can be created with
|
Destroys a cross-correlation iterator, freeing all resources.
|
Performs one iteration of cross-correlation. Cross-correlation matches two different images of the same object under changes. It does not use any special features for matching. It simply searches
for all points (with their neighbourhood) of
A cross-correlation iterator can be created with
|
Computes fractal dimension by cube counting method from log-log plot data. The |
Computes fractal dimension by partitioning method from log-log plot data. The |
Computes fractal dimension by spectral density function method from log-log plot data. The |
Computes fractal dimension by triangulation method from log-log plot data. The |
Calculates an upper bound of the number of samples in a circular region.
|
Calculates an upper bound of the number of samples in an elliptic region.
|
Destroys a watershed iterator, freeing all resources.
|
Performs one iteration of the watershed algorithm. Fields A watershed iterator can be created with
|
Finds rotation corrections. Rotation correction is computed for for all symmetry types. In addition an estimate is made about the prevalent one.
|
Gets the tooltips object used for adding tooltips to Data window parts.
|
Sets the tooltips object to use for adding tooltips to data window parts. This is a class method. It affects only newly cerated data windows, existing data windows will continue to use the tooltips they were constructed with. If no class tooltips object is set before first
|
Deserializes an object with arbitrary components from gwy-file format. This function works like
|
Returns Use gtk_true() instead.
|
Makes libgwydraw types safe for deserialization and performs other initialization. You have to call this function before using objects from libgwydraw. Calls gwy_process_type_init() first to make sure libgwyprocess is initialized. It is safe to call this function more than once, subsequent calls are no-op. |
Returns
|
Fills resampled or nely allocated data line with wavelet coefficients.
|
Returns
|
Returns a constant inventory with all available entities.
|
Converts a single named entity The string passed to this function should be a bare entity name, i.e. it should not contain the ampersand and semicolon.
|
Converts entities in a text to UTF-8.
|
Gets the enum value corresponding to currently active combo box item.
|
Sets the active combo box item by corresponding enum value.
|
Convenience callback keeping an integer synchronized with selected enum combo box value.
|
Makes sure an enum value is valid.
|
Creates a string representation of an integer enum value
|
Returns error domain for expression parsin and evaluation. See and use
|
Gets inventory with all the FD curve presets. Since: 2.7
|
Finds a nice-for-FFT array size. The `nice' means three properties are guaranteed: it is greater than
or equal to To be compatible with Gwyddion <= 2.7 one has to pass only data fields and lines with sizes returned by this function to raw integral transforms. Otherwise this function is mainly useful if you extend and pad the input data for other reasons and thus have the freedom to choose a convenient transform size.
|
Performs a DFT algorithm. This is a low-level function used by other FFT functions when no better backend is available. Strides are distances between samples in input and output arrays. Use
1 for normal `dense' arrays. To use The output is symmetrically normalized by square root of
|
Multiplies data by given window.
|
Performs windowing of a data field in given direction.
|
Frees or unmmaps memory allocated by
|
Detects the type of a file.
|
Detects the type of a file and gives the score. Since: 2.1
|
Checks whether a file type function exists.
|
Calls a function for each file function.
|
Gets file function description. That is, the
|
Returns if the file format is reasonably detectable. This is If files that can be actually loaded as a given type form a subset of files that are detected as this format, which is normaly the case, it makes no sense to let the user explicitly choose between these formats. Hence, detectable formats normally are not explicitly offered. Since: 2.18
|
Returns operations supported by a file type function.
|
Registered a file function. At least one of Note: the string arguments are not copied as modules are not expected to vanish. If they are constructed (non-constant) strings, do not free them. Should modules ever become unloadable they will get chance to clean-up.
|
Runs a file type detection function identified by
Value of This is a low-level function, consider using gwy_file_detect() if you simply want to detect a file type.
|
Runs a file export function identified by
It guarantees the container lifetime spans through the actual file saving, so the module function doesn't have to care about it. This is a low-level function, consider using gwy_file_save() if you simply want to save a file.
|
Runs a file load function identified by This is a low-level function, consider using gwy_file_load() if you simply want to load a file.
|
Runs a file save function identified by It guarantees the container lifetime spans through the actual file saving, so the module function doesn't have to care about it. This is a low-level function, consider using gwy_file_save() if you simply want to save a file.
|
Sets the detectability status of a file format. See gwy_file_func_get_is_detectable() for details. The only rare case when it makes sense to call this function is when a detection function is provided for some reason, however, this function is not really able to detect the format. For instance, the fallback detection method of the Gwyddion rawfile module. Since: 2.18
|
Reads or mmaps file The buffer must be treated as read-only and must be freed with gwy_file_abandon_contents(). It is NOT guaranteed to be
NUL-terminated, use
|
Gets file information about a data. The information is set on two ocasions: file load and successful file save. File export does not set it.
|
Loads a data file, autodetecting its type. Since: 2.25
|
Saves a data file, deciding to save as what type from the file name. It tries to find a module implementing
|
Saves a data file, deciding to save as what type from the file name. It tries to find a module implementing
Since: 2.25
|
Checks whether file should be ignored. This function checks for common file names indicating files that should be normally ignored. Currently it means backup files (ending with ~ or .bak) and Unix hidden files (starting with a dot).
|
Finds a system Gwyddion directory. On Unix, a compiled-in path is returned, unless it's overriden with environment variables (see gwyddion manual page). On Win32, the directory where the libgwyddion DLL from which this function was called resides is taken as the base and the location of other Gwyddion directories is calculated from it. The returned value is not actually tested for existence, it's up to caller. To obtain the Gwyddion user directory see gwy_get_user_dir().
|
Creates a string representation of integer flag combination
|
Adds an use of a function to the statistics.
|
Destroys function use statistics, freeing all associated resourced.
|
Gets the n-th most function from a function statistics.
|
Gets the (preferred) name for a file to store function use statistics to.
|
Loads function use statistics from a file.
|
Saves function use statistics data to a file.
|
Returns home directory, or temporary directory as a fallback. Under normal circumstances the same string as g_get_home_dir() would return is returned. But on MS Windows, something like "C:\Windows\Temp" can be returned too, as it is as good as anything else (we can write there).
|
Returns global Pango FT2 font map, eventually creating it. FT2 portability to Win32 is questionable, use PangoCairo instead.
|
Returns the directory where Gwyddion user settings and data should be stored. On Unix this is usually a dot-directory in user's home directory. On modern Win32 the returned directory resides in user's Documents and Settings. On silly platforms or silly occasions, silly locations (namely a temporary directory) can be returned as fallback. To obtain a Gwyddion system directory see gwy_find_self_dir().
|
Gets the name of currently selected GL material of a selection button.
|
Sets the currently selected GL material of a selection button.
|
Selects a GL material in a GL material list and scrolls to make it visible.
|
Gets inventory with all the GL materials.
|
Convenience function to get a GL material from gwy_gl_materials() by name.
|
Gets the name of currently selected gradient of a selection button.
|
Sets the currently selected gradient of a selection button.
|
Selects a gradient in a gradient list and scrolls to make it visible.
|
Gets inventory with all the gradients.
|
Convenience function to get a gradient from gwy_gradients() by name.
|
Returns
|
Draws a single graph curve on a drawable.
|
Draws an array of grid lines on a drawable.
|
Draws a line segment on a drawable.
|
Draws a point on a drawable.
|
Draws selected area on a drawable.
|
Draws selected lines on a drawable.
|
Draws selection points on a drawable.
|
Draws selected x-area on a drawable.
|
Drawss selected y-area on a drawable.
|
Checks whether a graph function exists.
|
Calls a function for each graph function.
|
Gets menu path of a graph function. The returned menu path is only the tail part registered by the function, i.e., without any leading "/Graph".
|
Gets menu sensititivy mask for a graph function.
|
Gets stock icon id of a graph function.
|
Gets tooltip for a graph function.
|
Registers a graph function. Note: the string arguments are not copied as modules are not expected to vanish. If they are constructed (non-constant) strings, do not free them. Should modules ever become unloadable they will get chance to clean-up.
|
Runs a graph function identified by
|
Gets the number of distinct colors
|
Gets a preset graph color. Preset colors are a set of selected colors one can use to distingush graph curves when there is no reason to prefer a particular color. Note they can occasionally change between version, even their number can change.
|
Gets the tooltips object used for adding tooltips to Graph window parts.
|
Sets the tooltips object to use for adding tooltips to graph window parts. This is a class method. It affects only newly created graph windows, existing graph windows will continue to use the tooltips they were constructed with. If no class tooltips object is set before first
|
Usble in g_hash_table_foreach(), pass a pointer to a
|
Usble in g_hash_table_foreach(), pass a pointer to a
|
This function uses two-point interpolation methods to get interpolated value between two arbitrary data points.
|
Computes interpolated value from 2 or 4 equidistant values. For For For four value interpolations you have to prepare
Interpolation with non-interpolating bases are silently replaced with an interpolating function with the same support size. See gwy_interpolation_interpolate_1d() for a function interpolating from interpolation coefficients.
|
Obtains the basis support size for an interpolation type. Since: 2.2
|
Obtains the interpolating basis property of an inteprolation type. Interpolation types with inteprolating basis directly use data values
for interpolation. For these types Generalized interpolation types (with non-interpolation basis) require to preprocess the data values to obtain interpolation coefficients first. On the ohter hand they typically offer much higher interpolation quality. Since: 2.2
|
Interpolates a signle data point in one dimension. The interpolation basis support size can be obtained generically with gwy_interpolation_get_support_size(). Since: 2.2
|
Interpolates a signle data point in two dimensions. Since: 2.2
|
Resamples a one-dimensional data array. This is a primitive operation, in most cases methods such as DataLine.new_resampled() provide more convenient interface. Since: 2.2
|
Resamples a two-dimensional data array. This is a primitive operation, in most cases methods such as DataField.new_resampled() provide more convenient interface. Since: 2.2
|
Transforms data values in a one-dimensional array to interpolation coefficients. This function is no-op for interpolation types with finite-support interpolating function. Therefore you can also omit it and use the data array directly for these interpolation types. Since: 2.2
|
Transforms data values in a two-dimensional array to interpolation coefficients. This function is no-op for interpolation types with finite-support interpolating function. Therefore you can also omit it and use the data array directly for these interpolation types. Since: 2.2
|
Shifts a one-dimensional data block by a possibly non-integer offset. Since: 2.2
|
Returns
|
Creates a new inventory and fills it with items.
|
Creates a new inventory from static item array. The inventory is neither modifiable nor sortable, it simply serves as
an adaptor for the array
|
Creates a bold, left aligned label. The purpose of this function is to avoid propagation of too much markup to translations (and to reduce code clutter by avoiding dummy constructor and left-aligning automatically).
|
Calls a function for each layer function.
|
Registeres a layer function (layer type).
|
Convenience function to emit "GtkTreeModel::row-changed" signal on a tree store. At least one of The behaviour of this function is undefined for specified, but
inconsistent
|
Creates and runs a color selector dialog for a mask. Note this function does not return anything, it runs the color selection dialog modally and returns when it is finished. Since: 2.1
|
Returns Since: 2.18
|
Decomposes a symmetric positive definite matrix in place.
|
Solves a system of linear equations with predecomposed symmetric
positive definite matrix
|
Finds the line from
|
Finds the point from
|
Fits a polynom through a general (x, y) data set.
|
Finds a human-friendly representation for a range of numbers.
|
Establishes wether the test point <warning> Result can be either True or False if the test point is *exactly* on an edge. </warning> Since: 2.7
|
Solve a regular system of linear equations.
|
Solves a regular system of linear equations. This is a memory-conservative version of
|
Finds median of an array of values using Quick select algorithm.
|
Numerically computes the partial derivative of a fitting function.
|
Performs a nonlinear fit of
|
Performs a nonlinear fit of Initial values of linked (dependent) parameters are overwritten by
master values, their
|
Completely frees a Marquardt-Levenberg nonlinear fitter.
|
Returns the correlation coefficient between
This function can be used only after a successful fit.
|
Returns the residual sum divided by the number of degrees of freedom. This function can be used only after a successful fit.
|
Returns the maximum number of iterations of nonlinear fitter
|
Returns the standard deviation of parameter number
This function makes sense only after a successful fit.
|
Sets the maximum number of iterations for nonlinear fitter
|
Obtains the status of the last fitting. Fitting failure can be (and usually should be) also determined by
checking for negative return value of Since: 2.7
|
Sorts an array of doubles using a quicksort algorithm. This is usually about twice as fast as the generic quicksort function thanks to specialization for doubles.
|
Solves a tridiagonal system of linear equations.
|
Compute the MD5 hash of a buffer. The MD5 algorithm takes as input a message of arbitrary length and produces as output a 128-bit "fingerprint" or "message digest" of the input. For more information see RFC 1321.
|
Copies a block of memory swapping bytes along the way. The bits in When Since: 2.1
|
Find a block of memory in another block of memory. This function is very similar to strstr(), except that it works with
arbitrary memory blocks instead of If On GNU systems with glibc at least 2.1 this is a just a trivial memmem() wrapper. On other systems it emulates memmem() behaviour. Since: 2.12
|
Creates a pop-up GL material menu. Object data <literal>"gl-material-name"</literal> is set to GL material name for each menu item.
|
Creates a pop-up gradient menu. Object data <literal>"gradient-name"</literal> is set to gradient name for each menu item.
|
Returns
|
Shows a simple module browser. |
Returns error domain for module loading. See and use
|
Returns error domain for file module functions. See and use
|
Runs It passes module name as the key and pointer to module info
(
|
Returns full file name of a module.
|
Returns list of names of functions a module implements.
|
Returns information about one module.
|
Loads a single module.
|
Registers all modules in given directories. It can be called several times (on different directories). No errors
are reported, register modules individually with
|
Gets inventory with all the NLFit presets.
|
Returns
|
Paints a data field to a pixbuf with an auto-stretched color gradient. Minimum data value is mapped to start of
|
Paints a data field to a pixbuf with a color gradient adaptively. The mapping from data field (minimum, maximum) range to gradient is nonlinear, deformed using inverse function to height density cummulative distribution.
|
Paints a data field to a pixbuf as a single-color mask with varying opacity. Values equal or smaller to 0.0 are drawn as fully transparent, values greater or equal to 1.0 as fully opaque, values between are linearly mapped to pixel opacity.
|
Paints a data field to a pixbuf with an explicite color gradient range.
|
Computes average value over a part of data field
It is not an error if part of it lies outside the data field borders (it is simply not counted in), however the intersection have to be nonempty.
|
Returns
|
Checks whether a data processing function exists.
|
Calls a function for each process function.
|
Returns the menu path of a data processing function. The returned menu path is only the tail part registered by the function, i.e., without any leading "/Data Process".
|
Returns run modes supported by a data processing function.
|
Gets menu sensititivy mask for a data processing function.
|
Gets stock icon id of a data processing function.
|
Gets tooltip for a data processing function.
|
Registers a data processing function. Note: the string arguments are not copied as modules are not expected to vanish. If they are constructed (non-constant) strings, do not free them. Should modules ever become unloadable they will get a chance to clean-up.
|
Runs a data processing function identified by
|
Makes libgwyprocess types safe for deserialization and performs other initialization. You have to call this function before using objects from libgwyprocess. Calls gwy_type_init() first to make sure libgwyddion is initialized. It is safe to call this function more than once, subsequent calls are no-op. |
Gets the integer value associated with a radio button.
|
Sets the integer value associated with a radio button. This function allow to change associated radio button values after
creation or even construct a radio button group with associated integers
without the help of
|
Attaches a group of radio buttons to table rows. Since: 2.1
|
Creates a radio button group from an enum. Try to avoid -1 as an enum value.
|
Finds a radio button by its associated integer value.
|
Gets the integer enum value corresponding to currently selected item.
|
Sets currently selected radio button in
|
Reports the size of a single raw data item. Since: 2.25
|
Destroys the inventories of all resource classes. This function makes the affected resource classes unusable. Its purpose is to faciliate reference leak debugging by destroying a large number of objects that normally live forever. Note static resource classes that never called Since: 2.8 |
Reconstructs a resource from human readable form.
|
Selects a resource in a list and scrolls to make it visible.
|
Removes RGBA color components from a container. This is a convenience function to remove the components in the common arrangement.
|
Saves a report or other auxiliary data to a user specified file. This is actually a simple Since: 2.3
|
Saves a report or other auxiliary data to a user specified file. Since: 2.3
|
Makes an object identical to another object of the same type. More precisely,
|
Restores a serialized object from byte buffer. The newly created object has reference count according to its nature,
thus a
|
Creates a copy of an object. If the object doesn't support duplication natively, it's brute-force serialized and then deserialized, this may be quite inefficient, namely for large objects. You can duplicate a
|
Calculates the expected size of serialized object.
|
Serializes an object to byte buffer. This is a high-level method. Do not use it for implementation of
child object serialization (should you ever need to do it manually), it
would lead to repeated required buffer size calculations. In such a
case, use
|
Check whether When
|
Calculates serialized object size for hash-like objects. The component specification is the same as in
|
Calculates serialized object size for struct-like objects. The component specification is the same as in
|
Serializes an object to buffer in gwy-file format. More precisely, it appends serialization of object with g_type_name()
|
Appends serialization of object with g_type_name() B{C{object_name}} and
components described by B{C{spec}} to B{C{buffer}} in gwy-file format.
Here's how a serialization method of a simple object whose state is
described by a single real number foo could look (without error checking):
<informalexample><programlisting>
static guchar*
my_object_serialize(GObject *obj,
guchar *buffer,
gsize *size)
{
MyObject *my_object = MY_OBJECT(obj);
SerializeSpec spec[] = {
{ 'd', "foo", &my_object->foo, NULL, },
};
return L{gwy_serialize_pack_object_struct}(buffer, size,
"MyObject",
G_N_ELEMENTS(spec), spec);
}
</programlisting></informalexample>
@param buffer: A buffer to which the serialized components should be appended. I{(GByteArray*)}
@param object_name: The type name of the object. I{(string)}
@param nspec: The number of items in B{C{spec}}. I{(gsize)}
@param spec: The components to serialize. I{(const-SerializeSpec*)}
@return: The buffer with serialization of B{C{spec}} components appended.
|
Deserializes an object with named components packed into gwy-file format by
L{gwy_serialize_pack_object_struct}().
Extra components are ignored (but cause a warning), components of different
type than expected cause failure, missing components are not detected.
It is safe to pass pointers to existing non-atomic objects (strings, arrays,
objects) in B{C{spec}} values, they will be dereferenced and freed as necessary
when an unpacked value is about to replace them.
For the same reason it is an error to pass pointers to unintialized memory
there, always initialize non-atomic B{C{spec}} values to B{C{NULL}} pointers, at
least.
Caller is responsible for use/clean-up of these values if deserialization
succeeds or not.
Here's how a deserialization method of a simple object whose state is
described by a single real number B{C{foo}} could look (without error checking):
<informalexample><programlisting>
static GObject*
my_object_deserialize(const guchar *buffer,
gsize size,
gsize *position)
{
double foo = 1.0;
SerializeSpec spec[] = {
{ 'd', "foo", &foo, NULL, },
};
MyObject *my_object;
L{gwy_serialize_unpack_object_struct}(buffer, size, position,
"MyObject",
G_N_ELEMENTS(spec), spec);
return my_object_new(foo);
}
</programlisting></informalexample>
@param buffer: A memory location containing a serialized object at position
B{C{position}}. I{(string)}
@param size: Current size of B{C{buffer}}, new size is returned here. I{(gsize)}
@param position: The position of the object in B{C{buffer}}, it's updated to point
after it. I{(gsize*)}
@param object_name: The type name of the object. I{(string)}
@param nspec: The number of items in B{C{spec}}. I{(gsize)}
@param spec: The components to deserialize. I{(SerializeSpec*)}
@return: Whether the unpacking succeeded
(see description body for definition of success and failure).
|
Sets up data view zoom to not exceed specified size. Before calling this function, data keys have be set, data fields and layers have to be present and physically square mode set in the container. Sizing of both pixel-wise square and physically square displays is performed correctly. Since: 2.7
|
Translate a message id containing disambiguating prefix ending with `|'.
|
Creates a new SI unit from string representation. This is a more powerful version of For example, for <literal>"pA/s"</literal> it
will store -12 to
|
Frees a value format structure.
|
Sets the units field of a value format structure. This function keeps the
|
Registers stock items. This function must be called before any stock items are used. |
Extracts a next line from a character buffer, modifying it in place.
|