00001 #pragma once 00002 00003 #include <Inventor/nodes/SoNode.h> 00004 #include <Inventor/fields/SoSFEnum.h> 00005 #include <Inventor/fields/SoSFFloat.h> 00006 00027 class SoAlphaPolicy : public SoNode 00028 { 00029 SO_NODE_HEADER(SoAlphaPolicy); 00030 00031 public: 00032 00036 enum Policy 00037 { 00041 POLICY_AS_IS = 0, 00042 00046 POLICY_OPAQUE = 1, 00047 00051 POLICY_DISCARD = 2 00052 }; 00053 00057 static Policy getDefaultPolicy(); 00058 00063 SoSFEnum policy; 00064 00068 SoAlphaPolicy(); 00069 00070 private: 00071 virtual void GLRender(SoGLRenderAction *action); 00072 00073 private: 00074 static void initClass(); 00075 static void exitClass(); 00076 00077 private: 00078 virtual ~SoAlphaPolicy(); 00079 }; 00080