Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

SoSeparator.h

00001 /**************************************************************************\
00002  *
00003  *  This file is part of the Coin 3D visualization library.
00004  *  Copyright (C) 1998-2002 by Systems in Motion. All rights reserved.
00005  *
00006  *  This library is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU Lesser General Public License
00008  *  version 2.1 as published by the Free Software Foundation. See the
00009  *  file LICENSE.LGPL at the root directory of the distribution for
00010  *  more details.
00011  *
00012  *  If you want to use Coin for applications not compatible with the
00013  *  LGPL, please contact SIM to acquire a Professional Edition license.
00014  *
00015  *  Systems in Motion, Prof Brochs gate 6, 7030 Trondheim, NORWAY
00016  *  http://www.sim.no support@sim.no Voice: +47 22114160 Fax: +47 22207097
00017  *
00018 \**************************************************************************/
00019 
00020 #ifndef COIN_SOSEPARATOR_H
00021 #define COIN_SOSEPARATOR_H
00022 
00023 #include <Inventor/nodes/SoSubNode.h>
00024 #include <Inventor/fields/SoSFEnum.h>
00025 #include <Inventor/nodes/SoGroup.h>
00026 
00027 class SoState;
00028 
00029 class COIN_DLL_API SoSeparator : public SoGroup {
00030   typedef SoGroup inherited;
00031 
00032   SO_NODE_HEADER(SoSeparator);
00033 
00034 public:
00035   static void initClass(void);
00036   SoSeparator(void);
00037   SoSeparator(const int nchildren);
00038 
00039   enum CacheEnabled {
00040     OFF, ON, AUTO
00041   };
00042 
00043   SoSFEnum renderCaching;
00044   SoSFEnum boundingBoxCaching;
00045   SoSFEnum renderCulling;
00046   SoSFEnum pickCulling;
00047 
00048 
00049   virtual void doAction(SoAction * action);
00050   virtual void GLRender(SoGLRenderAction * action);
00051   virtual void GLRenderBelowPath(SoGLRenderAction * action);
00052   virtual void GLRenderInPath(SoGLRenderAction * action);
00053   virtual void GLRenderOffPath(SoGLRenderAction * action);
00054   virtual void callback(SoCallbackAction * action);
00055   virtual void getBoundingBox(SoGetBoundingBoxAction * action);
00056   virtual void getMatrix(SoGetMatrixAction * action);
00057   virtual void handleEvent(SoHandleEventAction * action);
00058   virtual void rayPick(SoRayPickAction * action);
00059   virtual void search(SoSearchAction * action);
00060   virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);
00061 
00062   virtual void notify(SoNotList * nl);
00063 
00064   static void setNumRenderCaches(const int howmany);
00065   static int getNumRenderCaches(void);
00066   virtual SbBool affectsState(void) const;
00067 
00068 
00069 protected:
00070   virtual ~SoSeparator();
00071 
00072   virtual SbBool cullTest(SoState * state);
00073   virtual SbBool cullTest(SoGLRenderAction * action, int & cullresults);
00074   virtual SbBool readInstance(SoInput * in, unsigned short flags);
00075 
00076 
00077 private:
00078   void commonConstructor(void);
00079   SbBool cullTestNoPush(SoState * state);
00080   
00081   class SoBoundingBoxCache * bboxcache;
00082   class SoGLCacheList * glcachelist;
00083   static int numrendercaches;
00084 };
00085 
00086 #endif // !COIN_SOSEPARATOR_H

Generated at Tue Mar 5 03:31:17 2002 for Coin by doxygen1.2.9 written by Dimitri van Heesch, © 1997-2001