.TH "SoIntersectionDetectionAction" 3 "Tue Dec 26 2023 17:59:22" "Version 4.0.2" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoIntersectionDetectionAction \- The \fBSoIntersectionDetectionAction\fP class is for detecting intersecting primitives in a scene\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBSoAction\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "enum \fBResp\fP { \fBNEXT_PRIMITIVE\fP, \fBNEXT_SHAPE\fP, \fBABORT\fP }" .br .ti -1c .RI "\fBtypedef\fP \fBSoCallbackAction::Response\fP \fBSoIntersectionVisitationCB\fP(\fBvoid\fP *closure, \fBconst\fP \fBSoPath\fP *\fBwhere\fP)" .br .ti -1c .RI "\fBtypedef\fP SbBool \fBSoIntersectionFilterCB\fP(\fBvoid\fP *closure, \fBconst\fP \fBSoPath\fP *\fBp1\fP, \fBconst\fP \fBSoPath\fP *\fBp2\fP)" .br .ti -1c .RI "\fBtypedef\fP Resp \fBSoIntersectionCB\fP(\fBvoid\fP *closure, \fBconst\fP \fBSoIntersectingPrimitive\fP *\fBp1\fP, \fBconst\fP \fBSoIntersectingPrimitive\fP *\fBp2\fP)" .br .in -1c Public Types inherited from \fBSoAction\fP .in +1c .ti -1c .RI "enum \fBAppliedCode\fP { \fBNODE\fP = 0, \fBPATH\fP = 1, \fBPATH_LIST\fP = 2 }" .br .ti -1c .RI "enum \fBPathCode\fP { \fBNO_PATH\fP = 0, \fBIN_PATH\fP = 1, \fBBELOW_PATH\fP = 2, \fBOFF_PATH\fP = 3 }" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBvirtual\fP \fBSoType\fP \fBgetTypeId\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBsetIntersectionDetectionEpsilon\fP (float epsilon)" .br .ti -1c .RI "float \fBgetIntersectionDetectionEpsilon\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBsetTypeEnabled\fP (\fBSoType\fP type, SbBool enable)" .br .ti -1c .RI "SbBool \fBisTypeEnabled\fP (\fBSoType\fP type, SbBool \fBcheckgroups\fP=FALSE) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBsetManipsEnabled\fP (SbBool enable)" .br .ti -1c .RI "SbBool \fBisManipsEnabled\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBsetDraggersEnabled\fP (SbBool enable)" .br .ti -1c .RI "SbBool \fBisDraggersEnabled\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBsetShapeInternalsEnabled\fP (SbBool enable)" .br .ti -1c .RI "SbBool \fBisShapeInternalsEnabled\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBaddVisitationCallback\fP (\fBSoType\fP type, SoIntersectionVisitationCB *cb, \fBvoid\fP *closure)" .br .ti -1c .RI "\fBvoid\fP \fBremoveVisitationCallback\fP (\fBSoType\fP type, SoIntersectionVisitationCB *cb, \fBvoid\fP *closure)" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBapply\fP (\fBSoNode\fP *node)" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBapply\fP (\fBSoPath\fP *path)" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBapply\fP (\fBconst\fP \fBSoPathList\fP &paths, SbBool \fBobeysRules\fP=FALSE)" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBsetFilterCallback\fP (SoIntersectionFilterCB *cb, \fBvoid\fP *closure=\fBNULL\fP)" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBaddIntersectionCallback\fP (SoIntersectionCB *cb, \fBvoid\fP *closure=\fBNULL\fP)" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBremoveIntersectionCallback\fP (SoIntersectionCB *cb, \fBvoid\fP *closure=\fBNULL\fP)" .br .in -1c Public Member Functions inherited from \fBSoAction\fP .in +1c .ti -1c .RI "\fBvirtual\fP \fB~SoAction\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBvirtual\fP SbBool \fBisOfType\fP (\fBSoType\fP type) \fBconst\fP" .br .ti -1c .RI "\fBvoid\fP \fBapply\fP (\fBSoAction\fP *\fBbeingApplied\fP)" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBinvalidateState\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBAppliedCode\fP \fBgetWhatAppliedTo\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBSoNode\fP * \fBgetNodeAppliedTo\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBSoPath\fP * \fBgetPathAppliedTo\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSoPathList\fP * \fBgetPathListAppliedTo\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSoPathList\fP * \fBgetOriginalPathListAppliedTo\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "SbBool \fBisLastPathListAppliedTo\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBPathCode\fP \fBgetPathCode\fP (int &\fBnumindices\fP, \fBconst\fP int *&indices)" .br .ti -1c .RI "\fBvoid\fP \fBtraverse\fP (\fBSoNode\fP *\fBconst\fP node)" .br .ti -1c .RI "SbBool \fBhasTerminated\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBconst\fP \fBSoPath\fP * \fBgetCurPath\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBSoState\fP * \fBgetState\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBPathCode\fP \fBgetCurPathCode\fP (\fBvoid\fP) \fBconst\fP" .br .ti -1c .RI "\fBvirtual\fP \fBSoNode\fP * \fBgetCurPathTail\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBvoid\fP \fBusePathCode\fP (int &\fBnumindices\fP, \fBconst\fP int *&indices)" .br .ti -1c .RI "\fBvoid\fP \fBpushCurPath\fP (\fBconst\fP int \fBchildindex\fP, \fBSoNode\fP *node=\fBNULL\fP)" .br .ti -1c .RI "\fBvoid\fP \fBpopCurPath\fP (\fBconst\fP \fBPathCode\fP \fBprevpathcode\fP)" .br .ti -1c .RI "\fBvoid\fP \fBpushCurPath\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBvoid\fP \fBpopPushCurPath\fP (\fBconst\fP int \fBchildindex\fP, \fBSoNode\fP *node=\fBNULL\fP)" .br .ti -1c .RI "\fBvoid\fP \fBpopCurPath\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBvoid\fP \fBswitchToPathTraversal\fP (\fBSoPath\fP *path)" .br .ti -1c .RI "\fBvoid\fP \fBswitchToNodeTraversal\fP (\fBSoNode\fP *node)" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "\fBstatic\fP \fBSoType\fP \fBgetClassTypeId\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBaddMethod\fP (\fBconst\fP \fBSoType\fP type, SoActionMethod method)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBenableElement\fP (\fBconst\fP \fBSoType\fP type, \fBconst\fP int \fBstackindex\fP)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBinitClass\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBsetIntersectionEpsilon\fP (float epsilon)" .br .ti -1c .RI "\fBstatic\fP float \fBgetIntersectionEpsilon\fP (\fBvoid\fP)" .br .in -1c Static Public Member Functions inherited from \fBSoAction\fP .in +1c .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBinitClass\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBinitClasses\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBstatic\fP \fBSoType\fP \fBgetClassTypeId\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBstatic\fP \fBvoid\fP \fBnullAction\fP (\fBSoAction\fP *action, \fBSoNode\fP *node)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "\fBvirtual\fP \fBconst\fP \fBSoEnabledElementsList\fP & \fBgetEnabledElements\fP (\fBvoid\fP) \fBconst\fP" .br .in -1c Protected Member Functions inherited from \fBSoAction\fP .in +1c .ti -1c .RI "\fBSoAction\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBbeginTraversal\fP (\fBSoNode\fP *node)" .br .ti -1c .RI "\fBvirtual\fP \fBvoid\fP \fBendTraversal\fP (\fBSoNode\fP *node)" .br .ti -1c .RI "\fBvoid\fP \fBsetTerminated\fP (\fBconst\fP SbBool \fBflag\fP)" .br .ti -1c .RI "\fBvirtual\fP SbBool \fBshouldCompactPathList\fP (\fBvoid\fP) \fBconst\fP" .br .in -1c .SS "Static Protected Member Functions" .in +1c .ti -1c .RI "\fBstatic\fP \fBSoEnabledElementsList\fP * \fBgetClassEnabledElements\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBstatic\fP \fBSoActionMethodList\fP * \fBgetClassActionMethods\fP (\fBvoid\fP)" .br .in -1c Static Protected Member Functions inherited from \fBSoAction\fP .in +1c .ti -1c .RI "\fBstatic\fP \fBSoEnabledElementsList\fP * \fBgetClassEnabledElements\fP (\fBvoid\fP)" .br .ti -1c .RI "\fBstatic\fP \fBSoActionMethodList\fP * \fBgetClassActionMethods\fP (\fBvoid\fP)" .br .in -1c .SS "Additional Inherited Members" Protected Attributes inherited from \fBSoAction\fP .in +1c .ti -1c .RI "\fBSoState\fP * \fBstate\fP" .br .ti -1c .RI "\fBSoActionMethodList\fP * \fBtraversalMethods\fP" .br .in -1c .SH "Detailed Description" .PP The \fBSoIntersectionDetectionAction\fP class is for detecting intersecting primitives in a scene\&. Note that only collisions between actual geometry in the scene are detected, so the contents of some special nodes like e\&.g\&. \fBSoText2\fP and \fBSoImage\fP (which projects to screen-plane bitmap graphics, and not actual polygons) will not be considered for collision detection\&. .PP Note also that the \fBSoIntersectionDetectionAction\fP class is not a high-performance component in Coin\&. Using it in a continuous manner over complex scene graphs is doomed to be a performance killer\&. .PP Below is a simple usage example for this class\&. It was written as a standalone framework set up for profiling and optimization of the \fBSoIntersectionDetectionAction\fP\&. It tests intersection of all shapes against each other for the loaded file\&. .PP .PP .nf #include #include #include #include #include #include #include #include static SoIntersectionDetectionAction::Resp intersectionCB(void * closure, const SoIntersectingPrimitive * pr1, const SoIntersectingPrimitive * pr2) { (void)fprintf(stdout, "intersection hit!\\n"); return SoIntersectionDetectionAction::NEXT_PRIMITIVE; } int main(int argc, char ** argv) { SoDB::init(); SoNodeKit::init(); SoInteraction::init(); if (argc != 2) { (void)fprintf(stderr, "\\n\\tUsage: testapp \\n\\n"); exit(1); } SoInput in; SbBool ok = in\&.openFile(argv[1]); assert(ok); SoSeparator * root = SoDB::readAll(&in); assert(root); root\->ref(); SoIntersectionDetectionAction ida; ida\&.addIntersectionCallback(intersectionCB, NULL); ida\&.setManipsEnabled(FALSE); ida\&.setDraggersEnabled(FALSE); ida\&.setIntersectionDetectionEpsilon(10\&.0f); SbTime starttime = SbTime::getTimeOfDay(); SoDebugError::postInfo("main", "SoIntersectionDetectionAction::apply"); ida\&.apply(root); SoDebugError::postInfo("main", "apply() done after %f seconds\&.", (SbTime::getTimeOfDay() \- starttime)\&.getValue()); root\->unref(); return 0; } .fi .PP .PP \fBSince\fP .RS 4 Coin \fB2\&.1\fP .PP TGS Inventor \fB2\&.4\fP .RE .PP .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoIntersectionDetectionAction::getTypeId (\fBvoid\fP) const\fC [virtual]\fP" Returns the type identification of an object derived from a class inheriting \fBSoAction\fP\&. This is used for runtime type checking and 'downward' casting\&. .br .PP Implements \fBSoAction\fP\&. .SS "\fBSoType\fP SoIntersectionDetectionAction::getClassTypeId (\fBvoid\fP)\fC [static]\fP" This static method returns the \fBSoType\fP object associated with objects of this class\&. .br .SS "\fBvoid\fP SoIntersectionDetectionAction::addMethod (\fBconst\fP \fBSoType\fP type, SoActionMethod method)\fC [static]\fP" \fIThis API member is considered internal to the library, as it is not likely to be of interest to the application programmer\&.\fP .br .br .SS "\fBvoid\fP SoIntersectionDetectionAction::enableElement (\fBconst\fP \fBSoType\fP type, \fBconst\fP int stackindex)\fC [static]\fP" \fIThis API member is considered internal to the library, as it is not likely to be of interest to the application programmer\&.\fP .br .br .SS "\fBconst\fP \fBSoEnabledElementsList\fP & SoIntersectionDetectionAction::getEnabledElements (\fBvoid\fP) const\fC [protected]\fP, \fC [virtual]\fP" Returns list of enabled elements\&. .br .PP Reimplemented from \fBSoAction\fP\&. .SS "\fBSoEnabledElementsList\fP * SoIntersectionDetectionAction::getClassEnabledElements (\fBvoid\fP)\fC [static]\fP, \fC [protected]\fP" Returns list of enabled elements for this class\&. The enabledElements and methods variables are protected in the original OIV API\&. This is not such a good idea, since exposed static class member variables is a major grievance with regard to Win32 DLLs\&. This function is an extension for Coin, and it is not available in the original SGI Open Inventor \fBv2\&.1\fP API\&. .br .br .SS "\fBSoActionMethodList\fP * SoIntersectionDetectionAction::getClassActionMethods (\fBvoid\fP)\fC [static]\fP, \fC [protected]\fP" Returns list of action methods for this class\&. The enabledElements and methods variables are protected in the original OIV API\&. This is not such a good idea, since exposed static class member variables is a major grievance with regard to Win32 DLLs\&. This function is an extension for Coin, and it is not available in the original SGI Open Inventor \fBv2\&.1\fP API\&. .br .br .SS "\fBvoid\fP SoIntersectionDetectionAction::setIntersectionDetectionEpsilon (float epsilon)" Sets the intersection detection distance epsilon value for the action object\&. This overrides the global value\&. .PP See also \fBSoIntersectionDetectionAction::setIntersectionEpsilon()\fP for important information about how this setting influences performance\&. .SS "float SoIntersectionDetectionAction::getIntersectionDetectionEpsilon (\fBvoid\fP) const" Returns the set intersection detection distance epsilon value for the action object\&. .SS "\fBvoid\fP SoIntersectionDetectionAction::setIntersectionEpsilon (float epsilon)\fC [static]\fP" Sets the global intersection detection distance epsilon value\&. .PP This makes primitives within the epsilon distance be considered to intersect each other\&. .PP This will affect all intersection detection action objects in use that don't have a locally set value\&. .PP The epsilon value is a world space value\&. .PP Be aware that increasing the epsilon value can \fIdramatically\fP increase the number of primitive intersection tests being done to decide intersections\&. Increasing the epsilon value can therefore cause serious slow-downs in the running time of the intersections checks\&. .SS "float SoIntersectionDetectionAction::getIntersectionEpsilon (\fBvoid\fP)\fC [static]\fP" Returns the globally set intersection detection distance epsilon value\&. .SS "\fBvoid\fP SoIntersectionDetectionAction::setTypeEnabled (\fBSoType\fP type, SbBool enable)" Sets whether nodes of specific types (including derived objects) should be tested for intersection or not\&. .PP \fBSee also\fP .RS 4 \fBisTypeEnabled()\fP, \fBsetManipsEnabled()\fP, \fBsetDraggersEnabled()\fP .RE .PP .SS "SbBool SoIntersectionDetectionAction::isTypeEnabled (\fBSoType\fP type, SbBool checkgroups = \fCFALSE\fP) const" Returns whether nodes of specific types are enabled or not\&. The \fIcheckgroups\fP argument can be set to TRUE if you want the return value to reflect whether the node will be implicit enabled/disabled through the settings controlled by the \fBsetManipsEnabled()\fP and \fBsetDraggersEnabled()\fP functions\&. .PP The default is that all node types are enabled\&. .PP Note that derivation checks are not performed - the type needs to be the exact same type as has been disabled with \fBsetTypeEnabled()\fP .PP \fBSee also\fP .RS 4 \fBsetTypeEnabled()\fP .RE .PP .SS "\fBvoid\fP SoIntersectionDetectionAction::setManipsEnabled (SbBool enable)" Sets whether manipulators in the scene graph should be tested for intersection with other geometry or not\&. .PP Note that when draggers are disabled with \fBsetDraggersEnabled()\fP, this setting has no effect - manipulators are disabled too\&. .PP \fBSee also\fP .RS 4 \fBisManipsEnabled()\fP, \fBsetDraggersEnabled()\fP, \fBsetTypeEnabled()\fP .RE .PP .SS "SbBool SoIntersectionDetectionAction::isManipsEnabled (\fBvoid\fP) const" Returns whether the actions is set up to test intersection on manipulators in the scene or not\&. .PP Note that when draggers are disabled with \fBsetDraggersEnabled()\fP, this setting has no effect - manipulators are disabled too\&. .PP The default is that manipulators are enabled for intersection testing with other geometry in the scene\&. .PP \fBSee also\fP .RS 4 \fBsetManipsEnabled()\fP .RE .PP .SS "\fBvoid\fP SoIntersectionDetectionAction::setDraggersEnabled (SbBool enable)" Sets whether draggers in the scene graph should be tested for intersection with other geometry or not\&. .PP Note that when you disable draggers, manipulators are also automatically disabled, although the isManipsDisabled() setting might reflect otherwise\&. .PP \fBSee also\fP .RS 4 \fBisDraggersEnabled()\fP, \fBsetManipsEnabled()\fP, \fBsetTypeEnabled()\fP .RE .PP .SS "SbBool SoIntersectionDetectionAction::isDraggersEnabled (\fBvoid\fP) const" Returns whether the actions is set up to test intersection on draggers in the scene or not\&. .PP The default is that draggers are enabled for intersection testing with other geometry in the scene\&. .PP \fBSee also\fP .RS 4 \fBsetDraggersEnabled()\fP .RE .PP .SS "\fBvoid\fP SoIntersectionDetectionAction::setShapeInternalsEnabled (SbBool enable)" Sets whether nodes in the scene graph should be checked for intersecting primitives within themselves\&. .PP Default is \fCFALSE\fP\&. .PP \fBSee also\fP .RS 4 \fBisShapeInternalsEnabled()\fP .RE .PP .SS "SbBool SoIntersectionDetectionAction::isShapeInternalsEnabled (\fBvoid\fP) const" Returns whether nodes in the scene graph will be checked for intersecting primitives within themselves\&. .PP The default value for this setting is \fCFALSE\fP\&. .PP \fBSee also\fP .RS 4 \fBsetShapeInternalsEnabled()\fP .RE .PP .SS "\fBvoid\fP SoIntersectionDetectionAction::addVisitationCallback (\fBSoType\fP type, SoIntersectionVisitationCB * cb, \fBvoid\fP * closure)" The scene graph traversal can be controlled with callbacks which you set with this method\&. Use just like you would use \fBSoCallbackAction::addPreCallback()\fP\&. .PP \fBSee also\fP .RS 4 \fBSoCallbackAction::addPreCallback()\fP .RE .PP .SS "\fBvoid\fP SoIntersectionDetectionAction::removeVisitationCallback (\fBSoType\fP type, SoIntersectionVisitationCB * cb, \fBvoid\fP * closure)" The scene graph traversal can be controlled with callbacks which you remove with this method\&. Use just like you would use SoCallbackAction::removePreCallback()\&. .PP \fBSee also\fP .RS 4 SoCallbackAction::removePreCallback() .RE .PP .SS "\fBvoid\fP SoIntersectionDetectionAction::apply (\fBSoNode\fP * root)\fC [virtual]\fP" Applies the action to the scene graph rooted at \fIroot\fP\&. .PP Note that you should \fInot\fP apply an action to a node with a zero reference count\&. The behavior in that case is undefined\&. .PP Reimplemented from \fBSoAction\fP\&. .SS "\fBvoid\fP SoIntersectionDetectionAction::apply (\fBSoPath\fP * path)\fC [virtual]\fP" Applies the action to the parts of the graph defined by \fIpath\fP\&. .PP Note that an \fBSoPath\fP will also contain all nodes that may influence e\&.g\&. geometry nodes in the path\&. So for instance applying an \fBSoGLRenderAction\fP on an \fBSoPath\fP will render that path as expected in the view, where geometry will get its materials, textures, and other appearance settings correctly\&. .PP If the \fIpath\fP ends in an \fBSoGroup\fP node, the action will also traverse the tail node's children\&. .PP Reimplemented from \fBSoAction\fP\&. .SS "\fBvoid\fP SoIntersectionDetectionAction::apply (\fBconst\fP \fBSoPathList\fP & pathlist, SbBool obeysrules = \fCFALSE\fP)\fC [virtual]\fP" Applies action to the graphs defined by \fIpathlist\fP\&. If \fIobeysrules\fP is set to \fCTRUE\fP, \fIpathlist\fP must obey the following four conditions (which is the case for path lists returned from search actions for non-group nodes and path lists returned from picking actions): .PP All paths must start at the same head node\&. All paths must be sorted in traversal order\&. The paths must be unique\&. No path can continue through the end point of another path\&. .PP \fBSee also\fP .RS 4 \fBSoAction::apply(SoPath * path)\fP .RE .PP .PP Reimplemented from \fBSoAction\fP\&. .SS "\fBvoid\fP SoIntersectionDetectionAction::setFilterCallback (SoIntersectionFilterCB * cb, \fBvoid\fP * closure = \fC\fBNULL\fP\fP)\fC [virtual]\fP" This callback is called when two shapes are found to have intersecting bounding boxes, and are about to be checked for real intersection between their primitives\&. .PP When intersection epsilon values are in use, bounding box intersection testing is done approximately and will trigger the filter callback on boxes that are further from each other than the epsilon length\&. .PP If the callback returns TRUE, the intersection test will be performed\&. If the callback returns FALSE, the intersection testing will be skipped\&. .PP The API allows only one filter callback\&. .SS "\fBvoid\fP SoIntersectionDetectionAction::addIntersectionCallback (SoIntersectionCB * cb, \fBvoid\fP * closure = \fC\fBNULL\fP\fP)\fC [virtual]\fP" Adds a callback to be called when two intersecting primitives are found in the scene\&. .PP If the callback returns ABORT, the intersection detection is aborted\&. If the callback returns NEXT_SHAPE, the intersection detection between these two shapes are aborted and the action continues checking other shapes\&. If the callback returns NEXT_PRIMITIVE, the intersection detection testing continues checking the other primitives in these two shapes\&. .PP \fBSee also\fP .RS 4 \fBremoveIntersectionCallback()\fP .RE .PP .SS "\fBvoid\fP SoIntersectionDetectionAction::removeIntersectionCallback (SoIntersectionCB * cb, \fBvoid\fP * closure = \fC\fBNULL\fP\fP)\fC [virtual]\fP" Removes a callback set with \fBaddIntersectionCallback()\fP\&. .PP \fBSee also\fP .RS 4 \fBaddIntersectionCallback()\fP .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.