00001
00002
00003 #ifndef __POINT_OF_GRAVITY_EXPLORER_H
00004 #define __POINT_OF_GRAVITY_EXPLORER_H
00005
00006 #include <esg/Definitions.h>
00007 #include <esg/explorer/Explorer.h>
00008
00009
00010
00011
00012
00013 namespace esg {
00014
00015 class OGSCENE_EXPORT POGExplorer : public Explorer {
00016 private:
00017 Vector3 _pog;
00018 unsigned _num;
00019
00020 protected:
00021 virtual bool _process_leaf (SceneGraphObject&);
00022 virtual void _accept_new_transformation (const Matrix4&) {}
00023
00024 public:
00025 POGExplorer () : _pog(0,0,0), _num(0) {}
00026
00027 Vector3 result ();
00028 };
00029
00030 };
00031
00032 #endif // __POINT_OF_GRAVITY_EXPLORER_H