00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
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