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 : Nicolas Daguise (Nov 2003) 00022 **=======================================================================*/ 00023 00024 #ifndef _SO_GL_FULL_SCENE_ANTIALIASING_ELEMENT_ 00025 #define _SO_GL_FULL_SCENE_ANTIALIASING_ELEMENT_ 00026 00027 #include <Inventor/sys/port.h> 00028 #include <Inventor/elements/SoFullSceneAntialiasingElement.h> 00029 #include <SoDeprecationRules.h> 00030 00044 SoEXTENDER_Documented class SoDEPRECATED SoGLFullSceneAntialiasingElement : public SoFullSceneAntialiasingElement 00045 { 00046 SO_ELEMENT_HEADER(SoGLFullSceneAntialiasingElement); 00047 00048 public: 00053 virtual void push(SoState *state); 00054 00058 virtual void pop(SoState *state, const SoElement *prevTopElement); 00059 00060 private: 00061 00063 virtual void init(SoState *state); 00064 00065 private: 00066 // Initializes the SoGLFullSceneAntialiasingElement class 00067 static void initClass(); 00068 static void exitClass(); 00069 00070 private: 00071 // Sets the polygon offset attributes in an instance. Has GL side effects. 00072 virtual void setElt(SbBool on, SbBool currOn, int filter); 00073 00074 virtual ~SoGLFullSceneAntialiasingElement(); 00075 00076 private: 00077 // We save the state to figure out if the hints were 00078 // copied from a parent element; if they were, then caches will have 00079 // to depend on that element because if it changes we have to have 00080 // a chance to change our decision about what GL calls to make. 00081 // If this is NULL, then there are no cache dependencies. 00082 SoState *copiedFromParent; 00083 00084 // Send full scene antialiasing state to OpenGL 00085 void send(SoState *state); 00086 }; 00087 00088 #endif /* _SO_GL_FULL_SCENE_ANTIALIASING_ELEMENT_ */ 00089 00090 00091