
00001 //***************************************************************************** 00002 // File : gzSplit.h 00003 // Module : 00004 // Description : Class definition of the gzSplit class 00005 // Author : Anders Modén 00006 // Product : Gizmo3D 2.1.1 00007 // 00008 // Copyright © 2003- Saab Training Systems AB, Sweden 00009 // 00010 // NOTE: Gizmo3D is a high performance 3D Scene Graph and effect visualisation 00011 // C++ toolkit for Linux, Mac OS X, Windows (Win32) and IRIX® for 00012 // usage in Game or VisSim development. 00013 // 00014 // 00015 // Revision History... 00016 // 00017 // Who Date Description 00018 // 00019 // AMO 040830 Created file 00020 // 00021 //****************************************************************************** 00022 #ifndef __GZ_SPLIT 00023 #define __GZ_SPLIT 00024 00030 #include "gzGroup.h" 00031 #include "gzLod.h" 00032 00033 class gzSplitInfo 00034 { 00035 public: 00036 00037 gzSplitInfo():renderTime(0),index(0){}; 00038 00039 gzDouble renderTime; 00040 00041 gzULong index; 00042 00043 }; 00044 00045 00046 //****************************************************************************** 00047 // Class : gzSplit 00048 // 00049 // Purpose : - 00050 // 00051 // Notes : - 00052 // 00053 // Revision History... 00054 // 00055 // Who Date Description 00056 // 00057 // AMO 040830 Created 00058 // 00059 //****************************************************************************** 00060 class gzSplit : public gzGroup 00061 { 00062 public: 00063 00064 GZ_GRAPH_EXPORT gzSplit(const gzString & name=GZ_EMPTY_STRING); 00065 00066 GZ_GRAPH_EXPORT virtual ~gzSplit(); 00067 00068 GZ_DECLARE_TYPE_INTERFACE_EXPORT(GZ_GRAPH_EXPORT); // typed interface 00069 00070 00071 // ---------- Clone interface --------------------------------------- 00072 GZ_GRAPH_EXPORT virtual gzReference* clone() const; 00073 00074 // ---------- shutdown some group traversals etc.. ------------------ 00075 00076 GZ_GRAPH_EXPORT gzBool isTraversable( gzTraverseAction *action , gzNode *node , gzULong index , gzContext *context ); 00077 00078 GZ_GRAPH_EXPORT gzVoid debugOutputTraverse(gzString base , gzString anchor , gzDebugFlags features); 00079 00080 GZ_GRAPH_EXPORT virtual gzVoid debugOutput(gzString base , gzString anchor , gzDebugFlags features); 00081 00082 00083 private: 00084 00085 gzDynamicArray<gzSplitInfo> m_splitInfo; 00086 00087 }; 00088 00089 #endif