Biomechanical Joint Model
 Author: Anderson Maciel

come.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2002 by Anderson Maciel                                 *
00003  *   andi.maciel@gmail.com                                                 *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  **************************************************************************/
00020 
00035 
00036 #include        <general/come.h>
00037 #include        <zthread/Mutex.h>
00038 
00040 int COME::instanceCount = 0;
00041 int COME::framesOnFile = 0;
00042 int COME::flagNumIntegration = EULER;
00043 int COME::flagCollisionTreatment = DISPLACEMENT;
00044 bool COME::flagCollision2ndPass = false;
00045 bool COME::flagSkinning = true;
00046 bool COME::flagExportToPrecalculatedFile = false;
00047 double COME::flagAnimationResolution = 1.0;
00048 double COME::timestepGlobal = 1.0;
00049 string COME::baseFolder = "";
00050 
00054 
00055 void
00056 COME::setDescription( string descN ){
00057 
00058         description = descN;
00059 }
00060 
00061 void
00062 COME::setParent( COME *parentN ){
00063 
00064         parent = parentN;
00065 }
00066 
00070 
00071 string
00072 COME::getDescription() const {
00073 
00074         return description;
00075 }
00076 
00077 COME*
00078 COME::getParent() const {
00079 
00080         return parent;
00081 }
00082 
00083 bool
00084 COME::isModified(){
00085 
00086         return modified;
00087 }
00088 
00089 bool
00090 COME::isSelected(){
00091 
00092         return selected;
00093 }
00094 
00095 void
00096 COME::select( bool yesno){
00097 
00098         selected = yesno;
00099 }
00100 
00101 
00105 void
00106 COME::lock(){
00107 
00108         mutex->acquire();
00109 }
00110 
00111 void 
00112 COME::unlock(){
00113         
00114         mutex->release();
00115 }

Generated on Thu Dec 1 10:13:32 2005 for COME - Biomechanical Joint Model by  doxygen 1.4.5