00001 00003 // Copyright 2004, SenseGraphics AB 00004 // 00005 // This file is part of H3D API. 00006 // 00007 // H3D API is free software; you can redistribute it and/or modify 00008 // it under the terms of the GNU General Public License as published by 00009 // the Free Software Foundation; either version 2 of the License, or 00010 // (at your option) any later version. 00011 // 00012 // H3D API is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU General Public License 00018 // along with H3D API; if not, write to the Free Software 00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 // 00021 // A commercial license is also available. Please contact us at 00022 // www.sensegraphics.com for more information. 00023 // 00024 // 00028 // 00030 #ifndef __FRICTIONALSURFACE_H__ 00031 #define __FRICTIONALSURFACE_H__ 00032 00033 #include "SmoothSurface.h" 00034 00035 namespace H3D { 00036 00040 class H3DAPI_API FrictionalSurface: public SmoothSurface { 00041 public: 00042 00044 FrictionalSurface( Inst< SFFloat > _stiffness = 0, 00045 Inst< SFFloat > _damping = 0, 00046 Inst< SFFloat > _staticFriction = 0, 00047 Inst< SFFloat > _dynamicFriction = 0 ); 00048 00050 virtual void hlRender( HLHapticsDevice *hd ); 00051 00058 auto_ptr< SFFloat > staticFriction; 00059 00066 auto_ptr< SFFloat > dynamicFriction; 00067 00069 static H3DNodeDatabase database; 00070 }; 00071 } 00072 00073 #endif
1.4.5