| int MxtAddCallback | ( | MXTHANDLE | vmxt, | |
| McbCallbackFunc | func, | |||
| void * | udata, | |||
| UINT32 | reason | |||
| ) |
Add callback to tool.
Valid reasons: The reasons are in reason classes
| vmxt | Add callback to tool |
| func | Callback function |
| udata | User data passed to func |
| reason | Reason set flags to get callbacks on |
| void MxtCallActivateCallback | ( | MXTHANDLE | mxt | ) |
Call "activate" callback for specified tool.
| mxt | Tool handle |
| int MxtCallbackAddExt | ( | MXTHANDLE | vmxt, | |
| McbCallbackFunc | func, | |||
| void * | udata, | |||
| UINT32 | reason, | |||
| INT8 | priority | |||
| ) |
Add callback to tool with position determined by priority.
| vmxt | Add callback to tool |
| func | Callback function |
| udata | User data passed to func |
| reason | Reason set flags to get callbacks on |
Call "change" callback for specified tool.
| mxt | Tool handle |
| reason | Callback reason |
| void MxtClearPosition | ( | MXTHANDLE | mxt | ) |
Clear tool position (erasing tool).
This function undraws the tool then clears the tool information. Useful in activate callbacks to simulate adding elements.
| mxt | Handle returned by MxtCreate() |
Create new tool instance.
This function creates a tool handle by calling the appropriate tool create function. It also sets up the default tool position which will be a clear tool (no info). Neither the tool create function nor this function will create the dialog. Any setup of the tool dialog must be done before MxtManage() is called because MxtManage() sets up the dialog. NOTE: Call MxtSetValues() to setup default tool information. List of flags to pass in this function (see MxtSetFlags()).
| pwidget | Drawing Area widget |
| flags | Function to create specific tool MxtFLAG... flags |
Create crosshair tool.
| dawidget | DrawingArea widget to contain tool |
| flags | MxtFLAG_... |
Create elastic arc tool.
| dawidget | DrawingArea widget to contain tool |
| flags | MxtFLAG_... |
Create elastic box tool.
| dawidget | DrawingArea widget to contain tool |
| flags | MxtFLAG_... |
Create elastic circle tool instance.
| dawidget | DrawingArea widget to contain tool |
| flags | MxtFLAG_... |
Create elastic ellipse tool.
| dawidget | DrawingArea widget to contain tool |
| flags | MxtFLAG_... |
Create elastic line tool instance.
| dawidget | DrawingArea widget to contain tool |
| flags | MxtFLAG_... |
Create elastic "move box" tool.
| dawidget | DrawingArea widget to contain tool |
| flags | MxtFLAG_... |
Create elastic multi-point tool.
| dawidget | DrawingArea widget to contain tool |
| flags | MxtFLAG_... |
Create elastic multi-line/polygon tool.
| dawidget | DrawingArea widget to contain tool |
| flags | MxtFLAG_... |
Create elastic "polyline/polygon" tool.
| dawidget | DrawingArea widget to contain tool |
| flags | MxtFLAG_... |
Create elastic "text label" tool.
| dawidget | DrawingArea widget to contain tool |
| flags | MxtFLAG_... |
Create feature follow tool.
| dawidget | DrawingArea widget to contain tool |
| flags | MxtFLAG_... |
Create an instance of a rotatable crosshair tool.
| void MxtDestroy | ( | MXTHANDLE | mxt | ) |
Destroy previously created tool instance.
This function does basic cleanup of the tool. It will unmanage the tool if not done so already. It will also remove the tool tag string to keep the tool pointer from being used as a tool. It will free the pointer.
| mxt | Tool handle |
Draw tool graphic.
| vmxt | Handle returned by MxtCreate() |
| rect | Area to draw into, NULL for the whole area |
Create an instance of an elastic arc tool.
3/4 Done, Need bound checking fixed.
Create an instance of an elastic breakline tool.
Create an instance of an elastic circle tool.
3/4 Done, Need bound checking fixed.
| int MxtEditGlobalOptions | ( | Widget | pwidget | ) |
Display dialog allowing user to edit global tool colors and width.
| pwidget | Parent for dialog |
Create an instance of an elastic ellipse tool.
Create an instance of an elastic point tool.
| void MxtEnableGps | ( | Widget | pwidget, | |
| int | enabled | |||
| ) |
GPS input is enabled for this view.
| pwidget | Drawing Area widget |
| enabled | TRUE if GPS is set for this drawing area |
Create an instance of an elastic regpoly tool.
Create an instance of an elastic text label tool.
| void MxtFreeValues | ( | MXTHANDLE | mxt, | |
| void * | toolvalues | |||
| ) |
Free tool structure internal data storage (Eg.
This function frees any allocated data associated with the tool structure. Eg. the point buffer for line data. It will not free the data associated with a change callback.
| mxt | Handle returned by MxtCreate() |
| toolvalues | Pointer to tool structure |
Generate manual form for tool if it exists.
| vmxt | Handle returned by MxtCreate() |
| parent | Parent for main tool form, assumed to be a RowColumn |
Generate a region form the tool if supported.
| vmxt | Handle returned by MxtCreate() |
| region | The region to fill in |
| flags | May be used at some point |
Generate spatial form for tool if it exists.
| vmxt | Handle returned by MxtCreate() |
| parent | Parent for main tool form, assumed to be a RowColumn |
Generate main tool form for tool if it exists.
| vmxt | Handle returned by MxtCreate() |
| parent | Parent for main tool form, assumed to be a RowColumn |
| void MxtGetArrowKeyDeltas | ( | MXTHANDLE | mxt, | |
| double * | delta_x, | |||
| double * | delta_y | |||
| ) |
Return current arrow key delta values.
This function gets the amount of movement for hitting arrow keys in object coordinates (i.e. deltas).
| mxt | Handle returned by MxtCreate() |
| delta_x | Length to move in X direction (RETURNED) |
| delta_y | Length to move in Y direction (RETURNED) |