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

RigidMesh.h

00001 /*************************************************************************** 00002 * This file is part of OpenCAL: Open Computer Animation Library * 00003 * I created OpenCAL as my master's thesis Computer Science (multimedia) * 00004 * at the tUL university in Diepenbeek, Belgium * 00005 * * 00006 * Copyright (C) 2003-2004 by Jeroen Dierckx * 00007 * jeroen.dierckx@student.luc.ac.be * 00008 * * 00009 ***************************************************************************/ 00010 00011 #ifndef OPENCAL_RIGIDMESH_H 00012 #define OPENCAL_RIGIDMESH_H 00013 00014 // Includes 00015 #include <OpenCAL/global.h> 00016 #include <OpenCAL/RigidBody.h> 00017 00018 namespace OpenCAL 00019 { 00020 // Forward declarations 00021 class TriangleMesh; 00022 00026 class OPENCAL_API RigidMesh: public RigidBody 00027 { 00028 protected: 00029 // Member variables 00030 string m_filename; 00031 TriangleMesh *m_surface; 00032 00033 public: 00034 // Constructors and destructor 00035 RigidMesh(System *parent, const string &filename, float mass = 1.0f); 00036 virtual ~RigidMesh(); 00037 00038 // Get functions 00039 00040 // Set functions 00041 00042 // Other functions 00043 virtual void initialize(); 00044 virtual void render(); 00045 00046 virtual void calculateVolume(); 00047 virtual void calculateInversedInertia(); 00048 /* 00049 #ifdef USE_OPENGL 00050 void initializeGL(); 00051 #endif // USE_OPENGL 00052 */ 00053 }; 00054 } 00055 00056 #endif // OPENCAL_RIGIDMESH_H

Generated on Sun Aug 15 19:19:23 2004 for OpenCAL: Open Computer Animation Library by doxygen 1.3.8