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 * File : SoRenderObjectListElement.cxx 00025 * Classes : SoRenderObjectListElement 00026 * Author(s) : Jerome Hummel 00027 * Date : 4-18-2002 00028 *============================================================================== 00029 * 00030 * Description : Element that stores a renderObjectList for the render 00031 * list nodes to communicate between each other. 00032 * 00033 *============================================================================*/ 00034 00035 #ifndef _SO_RENDER_OBJECT_LIST_ELEMENT_ 00036 #define _SO_RENDER_OBJECT_LIST_ELEMENT_ 00037 00038 #include <Inventor/SbBasic.h> 00039 #include <Inventor/elements/SoSubElement.h> 00040 #include <Inventor/elements/SoReplacedElement.h> 00041 00042 class SoRenderObjectList; 00043 00056 SoEXTENDER_Documented class SoDEPRECATED SoRenderObjectListElement : public SoReplacedElement 00057 { 00058 SO_ELEMENT_HEADER(SoRenderObjectListElement); 00059 00060 public: 00064 static void set(SoState *state, SoNode *node, SoRenderObjectList *); 00068 static void setTransparentList(SoState *state, SoNode *node, SoRenderObjectList *); 00069 00073 static SoRenderObjectList *getRenderObjectList(SoState *, SoNode *); 00077 static SoRenderObjectList *getTransparentObjectList(SoState *, SoNode *); 00078 00079 virtual void push(SoState *); 00080 00081 private: 00082 00084 virtual void init(SoState *state); 00085 00086 private: 00087 // Initializes the SoRenderObjectListElement class 00088 static void initClass(); 00089 static void exitClass(); 00090 00091 // Returns the top (current) instance of the element in the state 00092 static const SoRenderObjectListElement *getInstance(SoState *state) 00093 { return getConstElement<SoRenderObjectListElement>(state); } 00094 00095 private: 00096 virtual ~SoRenderObjectListElement(); 00097 00098 private: 00099 // Stores pointer to cache 00100 SoRenderObjectList *renderObjectList; 00101 SoRenderObjectList *transparentObjectList; 00102 }; 00103 00104 00105 #endif /* _SO_RENDER_OBJECT_LIST_ELEMENT_ */ 00106 00107 00108