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-2020 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : T.MEHAMLI (Jun 2007) 00022 **=======================================================================*/ 00023 00024 00025 #ifndef SO_GUI_PLANE_VIEWER 00026 #define SO_GUI_PLANE_VIEWER 00027 00029 // 00030 // Class: SoGuiPlaneViewer 00031 // 00032 // SoXXPlaneViewer implementation class 00033 // 00034 // 00036 00037 00038 #include <Inventor/Gui/viewers/SoGuiAlgoViewers.h> 00039 00040 00041 class SoGuiPlaneViewer : public SoGuiAlgoViewers 00042 { 00043 #ifndef HIDDEN_FROM_DOC 00044 SO_FIELDCONTAINER_HEADER( SoGuiPlaneViewer ); 00045 #endif 00046 00047 private: 00048 // Defines 00049 enum ViewerModes 00050 { 00051 PICK_MODE, 00052 VIEW_MODE, 00053 DOLLY_MODE_ACTIVE, 00054 PAN_MODE, 00055 PAN_MODE_ACTIVE, 00056 ROLL_MODE_ACTIVE, 00057 SEEK_MODE 00058 }; 00059 00060 // list of custom push buttons 00061 enum 00062 { 00063 X_PUSH = 0, 00064 Y_PUSH, 00065 Z_PUSH, 00066 CAM_PUSH, 00067 PUSH_NUM 00068 }; 00069 00073 SoGuiPlaneViewer(); 00074 00075 virtual void setCursorEnabled( SbBool onOrOff ); 00076 SbBool isCursorEnabled() const; 00077 virtual void setSeekMode( SbBool onOrOff ); 00078 00079 // ----------------------- Extension usage ----------------------------------- 00080 00081 virtual void actualRedraw(); 00082 00083 private: 00087 virtual ~SoGuiPlaneViewer(); 00088 }; 00089 00090 00091 #endif // SO_GUI_PLANE_VIEWER 00092 00093