00001 #ifndef X3D_NODECOUNTERSTATEVARIABLES_H 00002 #define X3D_NODECOUNTERSTATEVARIABLES_H 00003 00004 #include <X3DTK/kernel.h> 00005 00006 namespace X3DTK { 00007 namespace X3D { 00008 00009 class NodeCounterStateVariables : public StateVariables 00010 { 00011 public: 00012 NodeCounterStateVariables(); 00013 00014 void init(); 00015 00016 void addX3DGeometryNode(); 00017 void addX3DCoordinateNode(); 00018 void addX3DGroupingNode(); 00019 void addOtherNode(); 00020 00021 inline unsigned int getX3DGeometryNode() const {return _geometryCount;}; 00022 inline unsigned int getX3DCoordinateNode() const {return _coordinateCount;}; 00023 inline unsigned int getX3DGroupingNode() const {return _groupingCount;}; 00024 inline unsigned int getOtherNode() const {return _otherCount;}; 00025 00026 private: 00027 unsigned int _geometryCount; 00028 unsigned int _coordinateCount; 00029 unsigned int _groupingCount; 00030 unsigned int _otherCount; 00031 }; 00032 00033 } 00034 } 00035 00036 #endif