SoCallbackAction.AddPreCallback Method (Type, SoCallbackAction.CallbackActionCB) |
Adds a callback function to call when a node of the given type is encountered during traversal.
Namespace: OIV.Inventor.ActionsAssembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.13.0 (9.9.13.0)
Syntaxpublic void AddPreCallback(
Type type,
SoCallbackAction. CallbackActionCB cb
)
Public Sub AddPreCallback (
type As Type,
cb As SoCallbackAction. CallbackActionCB
)
public:
void AddPreCallback(
Type^ type,
SoCallbackAction. CallbackActionCB^ cb
)
member AddPreCallback :
type : Type *
cb : SoCallbackAction. CallbackActionCB -> unit
Parameters
- type
- Type: System.Type
- cb
- Type: OIV.Inventor.Actions.SoCallbackAction.CallbackActionCB
RemarksThe PreCallback is called just before the node is traversed, and the PostCallback is called just after. The value returned by a callback function indicates whether the action should continue with the traversal.
See Also