![]() |
http://www.sim.no/ http://www.coin3d.org/ |
00001 #ifndef COIN_SOSEPARATOR_H 00002 #define COIN_SOSEPARATOR_H 00003 00004 /**************************************************************************\ 00005 * 00006 * This file is part of the Coin 3D visualization library. 00007 * Copyright (C) 1998-2008 by Kongsberg SIM. All rights reserved. 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License 00011 * ("GPL") version 2 as published by the Free Software Foundation. 00012 * See the file LICENSE.GPL at the root directory of this source 00013 * distribution for additional information about the GNU GPL. 00014 * 00015 * For using Coin with software that can not be combined with the GNU 00016 * GPL, and for taking advantage of the additional benefits of our 00017 * support services, please contact Kongsberg SIM about acquiring 00018 * a Coin Professional Edition License. 00019 * 00020 * See http://www.coin3d.org/ for more information. 00021 * 00022 * Kongsberg SIM, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY. 00023 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org 00024 * 00025 \**************************************************************************/ 00026 00027 #include <Inventor/nodes/SoSubNode.h> 00028 #include <Inventor/fields/SoSFEnum.h> 00029 #include <Inventor/nodes/SoGroup.h> 00030 #include <Inventor/tools/SbPimplPtr.h> 00031 00032 class SoState; 00033 class SoSeparatorP; 00034 00035 class COIN_DLL_API SoSeparator : public SoGroup { 00036 typedef SoGroup inherited; 00037 00038 SO_NODE_HEADER(SoSeparator); 00039 00040 public: 00041 static void initClass(void); 00042 SoSeparator(void); 00043 SoSeparator(const int nchildren); 00044 00045 enum CacheEnabled { 00046 OFF, ON, AUTO 00047 }; 00048 00049 SoSFEnum renderCaching; 00050 SoSFEnum boundingBoxCaching; 00051 SoSFEnum renderCulling; 00052 SoSFEnum pickCulling; 00053 00054 virtual void doAction(SoAction * action); 00055 virtual void GLRender(SoGLRenderAction * action); 00056 virtual void GLRenderBelowPath(SoGLRenderAction * action); 00057 virtual void GLRenderInPath(SoGLRenderAction * action); 00058 virtual void GLRenderOffPath(SoGLRenderAction * action); 00059 virtual void callback(SoCallbackAction * action); 00060 virtual void getBoundingBox(SoGetBoundingBoxAction * action); 00061 virtual void getMatrix(SoGetMatrixAction * action); 00062 virtual void handleEvent(SoHandleEventAction * action); 00063 virtual void rayPick(SoRayPickAction * action); 00064 virtual void search(SoSearchAction * action); 00065 virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action); 00066 virtual void audioRender(SoAudioRenderAction * action); 00067 00068 virtual void notify(SoNotList * nl); 00069 00070 static void setNumRenderCaches(const int howmany); 00071 static int getNumRenderCaches(void); 00072 virtual SbBool affectsState(void) const; 00073 00074 protected: 00075 virtual ~SoSeparator(); 00076 00077 virtual SbBool cullTest(SoState * state); 00078 virtual SbBool cullTest(SoGLRenderAction * action, int & cullresults); 00079 virtual SbBool readInstance(SoInput * in, unsigned short flags); 00080 00081 private: 00082 void commonConstructor(void); 00083 SbBool cullTestNoPush(SoState * state); 00084 00085 static int numrendercaches; 00086 00087 SbPimplPtr<SoSeparatorP> pimpl; 00088 00089 // NOT IMPLEMENTED 00090 SoSeparator(const SoSeparator & rhs); 00091 SoSeparator & operator = (const SoSeparator & rhs); 00092 00093 }; 00094 00095 #endif // !COIN_SOSEPARATOR_H
Copyright © 1998-2008 by Kongsberg SIM. All rights reserved.
Generated on Tue May 5 02:52:06 2009 for Coin by Doxygen 1.5.5.