Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OSGWalkNavigator.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002  *                                OpenSG                                     *
00003  *                                                                           *
00004  *                                                                           *
00005  *             Copyright (C) 2000,2001 by the OpenSG Forum                   *
00006  *                                                                           *
00007  *                            www.opensg.org                                 *
00008  *                                                                           *
00009  *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          *
00010  *                                                                           *
00011 \*---------------------------------------------------------------------------*/
00012 /*---------------------------------------------------------------------------*\
00013  *                                License                                    *
00014  *                                                                           *
00015  * This library is free software; you can redistribute it and/or modify it   *
00016  * under the terms of the GNU Library General Public License as published    *
00017  * by the Free Software Foundation, version 2.                               *
00018  *                                                                           *
00019  * This library is distributed in the hope that it will be useful, but       *
00020  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
00022  * Library General Public License for more details.                          *
00023  *                                                                           *
00024  * You should have received a copy of the GNU Library General Public         *
00025  * License along with this library; if not, write to the Free Software       *
00026  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
00027  *                                                                           *
00028 \*---------------------------------------------------------------------------*/
00029 /*---------------------------------------------------------------------------*\
00030  *                                Changes                                    *
00031  *                                                                           *
00032  *                                                                           *
00033  *                                                                           *
00034  *                                                                           *
00035  *                                                                           *
00036  *                                                                           *
00037 \*---------------------------------------------------------------------------*/
00038 
00039 #ifndef _OSG_WALKNAVIGATOR_H_
00040 #define _OSG_WALKNAVIGATOR_H_
00041 
00042 #include <OSGFlyNavigator.h>
00043 #include <OSGIntersectAction.h>
00044 
00045 OSG_BEGIN_NAMESPACE
00046 
00050 class OSG_SYSTEMLIB_DLLMAPPING WalkNavigator: public FlyNavigator
00051 {
00052     /*==========================  PUBLIC  =================================*/
00053   public:
00054     /*---------------------------------------------------------------------*/
00058     WalkNavigator();
00059 
00061     /*---------------------------------------------------------------------*/
00065     ~WalkNavigator();
00066 
00068     /*---------------------------------------------------------------------*/
00073     /*---------------------------------------------------------------------*/
00077     void setGround  (NodePtr &new_ground);
00078     void setWorld   (NodePtr &new_world );
00079     
00080     void setGroundDistance  (Real32 groundDistance);
00081     void setMinWallDistance (Real32 wallDistance  );
00082 
00083     void setPersonDimensions(Real32 height, Real32 width, Real32 fatness);
00084     
00086     /*---------------------------------------------------------------------*/
00090     void rotate (Real32 deltaX, Real32 deltaY);
00091     Real32 forward(Real32 step);
00092     Real32 right  (Real32 step);
00093 
00095     /*==========================  PRIVATE  ================================*/
00096   private:
00097     /*---------------------------------------------------------------------*/
00101     NodePtr _ground;
00102     NodePtr _world;
00103 
00104     Real32 _groundDistance;
00105     Real32 _wallDistance;
00106     Real32 _height;
00107     Real32 _width;
00108     Real32 _fatness;
00109     
00110     IntersectAction *_act;
00111           
00113 };
00114 
00115 OSG_END_NAMESPACE
00116 #endif

Generated on Thu Aug 25 04:12:07 2005 for OpenSG by  doxygen 1.4.3