POGExplorer.h

Go to the documentation of this file.
00001 /* $Id: POGExplorer.h,v 1.2 2002/11/05 14:31:15 anonymous Exp $ */
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  * Explorer searching Point Of Gravity (centroid) of given part of scene.
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 }; // namespace
00031 
00032 #endif // __POINT_OF_GRAVITY_EXPLORER_H

Generated on Wed Jun 28 12:24:28 2006 for esg by  doxygen 1.4.6