00001 /* 00002 * SoCollisionShapeTriMesh.h 00003 * 00004 * Copyright (c) 2007, 2008, 2009, University of Karlsruhe (for members see AUTHORS file) 00005 * Copyright (c) 2011, Karlsruhe Institute of Technology (for members see AUTHORS file) 00006 * 00007 * ISC License 00008 * 00009 * Permission to use, copy, modify, and/or distribute this software for any 00010 * purpose with or without fee is hereby granted, provided that the above 00011 * copyright notice and this permission notice appear in all copies. 00012 * 00013 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 00014 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 00015 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 00016 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 00017 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 00018 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 00019 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00020 * 00021 * Created by Manfred Kroehnert on 11.11.2007. 00022 * 00023 */ 00024 00025 #ifndef IPSA_SOCOLLISIONSHAPETRIMESH_H 00026 #define IPSA_SOCOLLISIONSHAPETRIMESH_H 00027 00032 #include "IPSA.h" 00033 #include "SoCollisionShape.h" 00034 00035 #include <Inventor/fields/SoSFNode.h> 00036 00037 00038 class IPSA_IMPORT_EXPORT SoCollisionShapeTriMesh : public SoCollisionShape 00039 { 00040 SO_KIT_HEADER(SoCollisionShapeTriMesh); 00041 00042 public: 00043 // Constructor 00044 SoCollisionShapeTriMesh(const SbString& nodeName = ""); 00045 00046 virtual SoCollisionShape* copy(SbBool copyConnections) const; 00047 static void initClass(); 00048 00049 // TriMesh values 00050 SoSFNode ivModel; 00051 00052 protected: 00053 virtual dGeomID cGeom(const SbMatrix& mm); 00054 virtual void updateVisualisationAndOdeProperties(); 00055 }; 00056 00057 #endif
Generated on Sat Mar 10 20:00:14 2012 for IPSA by 1.5.8 |