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 : VSG (MMM YYYY) 00022 **=======================================================================*/ 00023 00024 #ifndef _SO_WIN_STEREOVIEWER 00025 #define _SO_WIN_STEREOVIEWER 00026 00027 #include <Inventor/SbBasic.h> 00028 #include <Inventor/SbViewportRegion.h> 00029 00030 class SbVec2s; 00031 class SoCamera; 00032 class SoBaseStereo; 00033 class SoGLContext; 00034 class SoSceneManager; 00035 00056 class SoStereoViewer 00057 { 00058 00059 public: 00060 00064 virtual ~SoStereoViewer() {} 00065 00070 virtual void setStereoActive(SbBool activate) = 0; 00071 00075 virtual SbBool isStereoActive() = 0; 00076 00084 virtual void actualRendering() = 0; 00085 00090 virtual SoCamera * getViewerCamera() = 0; 00091 00096 virtual const SbVec2s& getSize() = 0; 00097 00105 virtual const SbVec2s& getTopLeft() = 0; 00106 00114 virtual const SbVec2s& getBottomRight() = 0; 00115 00119 virtual SbBool isViewerDoubleBuffer() = 0; 00120 00126 virtual void setStereoViewType(SoBaseStereo * stereoViewType) = 0; 00127 00131 virtual SoBaseStereo* getStereoViewType() = 0; 00132 00136 virtual void reverseStereoView(SbBool reverse) = 0; 00137 00141 virtual SbBool isStereoViewReversed() = 0; 00142 00183 virtual void setStereoAbsoluteAdjustments(SbBool ) {}; 00184 00190 virtual SbBool isStereoAbsoluteAdjustments() const { return FALSE; }; 00191 00197 virtual void setStereoOffset(float offset) = 0; 00198 00202 virtual float getStereoOffset() = 0; 00203 00218 virtual void setStereoBalance(float balance, SbBool nearFrac = false) = 0; 00219 00223 virtual float getStereoBalance() = 0; 00224 00229 virtual SbBool isStereoBalanceNearFrac() = 0; 00230 00235 virtual void setViewport(short left, short bottom, 00236 short width, short height) = 0; 00237 00242 virtual void getViewport(short &left, short &bottom, 00243 short &width, short &height) = 0; 00244 00249 virtual SoGLContext* getViewerContext() = 0; 00250 00255 virtual SoSceneManager* getViewerSceneManager() = 0; 00256 00257 #if 1 SoDEPRECATED 00264 virtual void adjustClippingPlanes() = 0; 00265 SoDEPRECATED 00270 virtual HDC getCurrentDC() = 0; 00271 00272 #endif 00274 private: 00275 00276 //get a pointer to the viewer 00277 virtual void *getViewer() { return 0; } 00278 }; 00279 00280 #endif // _SO_WIN_STEREOVIEWER 00281 00282 00283