Data Structures | Functions

plugin_process.h File Reference

Process PlugIn Management. Used by the imlabImageDocument. More...

#include <iup.h>
#include <iupcontrols.h>
#include <im_image.h>
#include <im_util.h>
#include "im_imagematch.h"
#include "imagedocument.h"
#include "documentlist.h"
Include dependency graph for plugin_process.h:

Go to the source code of this file.

Data Structures

struct  imlabProcPlugIn

Functions

void imlabProcPlugInInit (Ihandle *mnProcess)
void imlabProcPlugInFinish (void)
void imlabProcPlugInUpdate (Ihandle *mnProcess)
Ihandle * imlabProcNewItem (Ihandle *mnProcess, char *title, char *proc_name, Icallback cb, int update)
void imlabProcPlugInUpdateItem (Ihandle *mnProcess, char *process, int(*match_func)(const imImage *image))
void imlabProcPlugInRegister (imlabProcPlugIn *plug_in, Ihandle *mnProcess)
Ihandle * imlabProcessPreviewInit (imlabImageDocument *document, imImage *image, imImage *NewImage)
void imlabProcessPreviewUpdate (Ihandle *preview)
int imlabProcessCheckPreviewParam (Ihandle *dialog, int param_index, char *preview_param, Ihandle *preview)

Detailed Description


Function Documentation

void imlabProcPlugInInit ( Ihandle *  mnProcess  ) 

Initializes all the regitered plugins

void imlabAnaPlugInInit ( Ihandle *  mnProcess  ) 
void imlabProcPlugInFinish ( void   ) 

Finishes all the registered plugins

void imlabProcPlugInUpdate ( Ihandle *  mnProcess  ) 

Updates all the menus items in the process menu

Ihandle* imlabProcNewItem ( Ihandle *  mnProcess,
char *  title,
char *  proc_name,
Icallback  cb,
int  update 
)

Creates a new menu item for the process menu Very usefull for plugin initialization.

void imlabProcPlugInUpdateItem ( Ihandle *  mnProcess,
char *  process,
int(*)(const imImage *image)  match_func 
)

Update an item in the process menu acording to the current image. Very usefull for plugin update.

void imlabProcPlugInRegister ( imlabProcPlugIn plug_in,
Ihandle *  mnProcess 
)

Registers a plugin

Ihandle* imlabProcessPreviewInit ( imlabImageDocument document,
imImage *  image,
imImage *  NewImage 
)

initializes the Preview logic

void imlabProcessPreviewUpdate ( Ihandle *  preview  ) 

updates the current image with Preview contents

int imlabProcessCheckPreviewParam ( Ihandle *  dialog,
int  param_index,
char *  preview_param,
Ihandle *  preview 
)

checks for a Preview toggle in IupGetParam dialogs