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 : 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 00055 class SoStereoViewer 00056 { 00057 00058 public: 00059 00063 virtual ~SoStereoViewer() {} 00064 00069 virtual void setStereoActive(SbBool activate) = 0; 00070 00074 virtual SbBool isStereoActive() = 0; 00075 00083 virtual void actualRendering() = 0; 00084 00089 virtual SoCamera * getViewerCamera() = 0; 00090 00095 virtual const SbVec2s& getSize() = 0; 00096 00104 virtual const SbVec2s& getTopLeft() = 0; 00105 00113 virtual const SbVec2s& getBottomRight() = 0; 00114 00118 virtual SbBool isViewerDoubleBuffer() = 0; 00119 00125 virtual void setStereoViewType(SoBaseStereo * stereoViewType) = 0; 00126 00130 virtual SoBaseStereo* getStereoViewType() = 0; 00131 00135 virtual void reverseStereoView(SbBool reverse) = 0; 00136 00140 virtual SbBool isStereoViewReversed() = 0; 00141 00182 virtual void setStereoAbsoluteAdjustments(SbBool ) {}; 00183 00189 virtual SbBool isStereoAbsoluteAdjustments() const { return FALSE; }; 00190 00196 virtual void setStereoOffset(float offset) = 0; 00197 00201 virtual float getStereoOffset() = 0; 00202 00217 virtual void setStereoBalance(float balance, SbBool nearFrac = false) = 0; 00218 00222 virtual float getStereoBalance() = 0; 00223 00228 virtual SbBool isStereoBalanceNearFrac() = 0; 00229 00234 virtual void setViewport(short left, short bottom, 00235 short width, short height) = 0; 00236 00241 virtual void getViewport(short &left, short &bottom, 00242 short &width, short &height) = 0; 00243 00248 virtual SoGLContext* getViewerContext() = 0; 00249 00254 virtual SoSceneManager* getViewerSceneManager() = 0; 00255 00256 private: 00257 00258 //get a pointer to the viewer 00259 virtual void* getViewer() = 0; 00260 }; 00261 00262 #endif // _SO_WIN_STEREOVIEWER 00263 00264 00265