00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : Fabien ARNAUD (Jul 1997) 00022 **=======================================================================*/ 00023 00024 00025 #ifndef _SO_XT_COLLISION_VIEWER_ 00026 #define _SO_XT_COLLISION_VIEWER_ 00027 00028 00029 //------------------------------------------------------------------------------ 00030 // Includes 00031 #include <Inventor/Win/SoWinBeginStrict.h> 00032 #include <Inventor/SbBase.h> 00033 00034 //------------------------------------------------------------------------------ 00035 // Types declaration 00036 class SoWinCollisionViewer; 00037 class SoWinViewer; 00038 class SoCollisionViewerImpl; 00039 00040 //------------------------------------------------------------------------------ 00041 // Types definition 00042 00043 typedef void SoWinCollisionViewerCB 00044 (void *userData, SoWinCollisionViewer *collisionViewer); 00045 00046 00047 00073 class SoWinCollisionViewer 00074 { 00075 00076 public : 00077 00081 SoWinCollisionViewer(SoWinViewer *viewer); 00085 ~SoWinCollisionViewer(); 00086 00090 SoWinViewer *getViewer() const; 00091 00095 void setDistance(float distance); 00099 float getDistance() const; 00100 00105 void setNumSteps(int num_steps); 00109 int getNumSteps() const; 00110 00114 void setCollisionDetection(SbBool value = TRUE); 00118 SbBool getCollisionDetection() const; 00119 00128 void setZBufferOptimization(SbBool value = TRUE, SbBool useZBufferOnly = FALSE); 00132 SbBool getZBufferOptimistation() const; 00133 00139 void addCallback(SoWinCollisionViewerCB* f, void* ud = NULL); 00144 void removeCallback(SoWinCollisionViewerCB* f, void* ud = NULL); 00145 00146 private: 00147 SoCollisionViewerImpl* m_impl; 00148 }; 00149 00150 #include <Inventor/Win/SoWinEndStrict.h> 00151 00152 #endif//_SO_XT_COLLISION_VIEWER_ 00153 00154