| Description |
| Calls the specified filter and action functions for each layer in the model. |
| Synopsis |
| #include <ProLayer.h> |
| ProError | ProMdlLayerVisit | ( |
| ProMdl model | |
| /*
(In) |
| The model. |
| */ |
| ProLayerAction visit_action | |
| /*
(In) |
| The action to perform on each layer. If it returns anything other than PRO_TK_NO_ERROR, visiting stops. |
| */ |
| ProLayerAction filter_action | |
| /*
(In) |
| The filter function. If NULL, all layers are visited using the action function. |
| */ |
| ProAppData app_data | |
| /*
(In) |
| The application data passed to the visiting and filter functions. |
| */ |
| ) |
| Returns |
|
| PRO_TK_NO_ERROR | | The function visited all the layers. |
| PRO_TK_BAD_INPUTS | | One or more of the arguments are invalid. |
| Other | | Any other value is the status returned by the last executed callback (filter_action or visit_action). |
|