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_NO_STEREOVIEW 00025 #define _SO_WIN_NO_STEREOVIEW 00026 00027 #include <Inventor/components/stereo/SoBaseStereo.h> 00028 #include <Inventor/components/stereo/SoStereoViewer.h> 00048 class SoNoStereoView : public SoBaseStereo { 00049 public: 00053 SoNoStereoView(SoStereoViewer *stereoVwr = NULL) 00054 : SoBaseStereo(stereoVwr) 00055 { } 00056 00060 ~SoNoStereoView() {} 00061 00065 void reverseStereoView(SbBool reverse); 00066 00070 SbBool isStereoViewReversed() { return FALSE; } 00071 00077 virtual void renderStereoView() { 00078 if (stereoViewer != NULL) 00079 stereoViewer->actualRendering(); 00080 } 00081 00085 virtual StereoViewType getStereoViewType() { return NO_STEREO_VIEW; } 00086 00090 virtual SbBool canClearBeforeRender() { return TRUE; } 00091 00095 virtual SbBool requireHardware() { return FALSE; } 00096 00100 virtual void clearStereo() { } 00101 00102 private: 00103 /* 00104 * methods use in MP mode only. These methods are called by the threads within the 00105 * render area if the stereo is active. 00106 */ 00107 virtual void doLeftEyeSettings() { } 00108 virtual void doRightEyeSettings() { } 00109 virtual void doMonoscopicSettings() { } 00110 }; 00111 00112 inline void 00113 SoNoStereoView::reverseStereoView(SbBool) 00114 {} 00115 00116 #endif // _SO_WIN_NO_STEREOVIEW 00117 00118