ThrusterMotor.h

Go to the documentation of this file.
00001 /*************************************************************************
00002  *                                                                       *
00003  * Open Physics Abstraction Layer                                        *
00004  * Copyright (C) 2004-2005                                               *
00005  * Alan Fischer  alan.fischer@gmail.com                                  *
00006  * Andres Reinot  andres@reinot.com                                      *
00007  * Tyler Streeter  tylerstreeter@gmail.com                               *
00008  * All rights reserved.                                                  *
00009  * Web: opal.sourceforge.net                                             *
00010  *                                                                       *
00011  * This library is free software; you can redistribute it and/or         *
00012  * modify it under the terms of EITHER:                                  *
00013  *   (1) The GNU Lesser General Public License as published by the Free  *
00014  *       Software Foundation; either version 2.1 of the License, or (at  *
00015  *       your option) any later version. The text of the GNU Lesser      *
00016  *       General Public License is included with this library in the     *
00017  *       file license-LGPL.txt.                                          *
00018  *   (2) The BSD-style license that is included with this library in     *
00019  *       the file license-BSD.txt.                                       *
00020  *                                                                       *
00021  * This library is distributed in the hope that it will be useful,       *
00022  * but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00023  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files    *
00024  * license-LGPL.txt and license-BSD.txt for more details.                *
00025  *                                                                       *
00026  *************************************************************************/
00027 
00028 #ifndef OPAL_THRUSTER_MOTOR_H
00029 #define OPAL_THRUSTER_MOTOR_H
00030 
00031 #include "Defines.h"
00032 #include "Motor.h"
00033 #include "ThrusterMotorData.h"
00034 
00035 namespace opal
00036 {
00041         class ThrusterMotor : public Motor
00042         {
00043         public:
00044                 ThrusterMotor();
00045 
00046                 virtual ~ThrusterMotor();
00047 
00051                 //virtual void OPAL_CALL init(Solid* solid);
00052 
00057                 virtual void OPAL_CALL init(const ThrusterMotorData& data);
00058 
00060                 virtual const ThrusterMotorData& OPAL_CALL getData()const;
00061 
00062                 virtual MotorType OPAL_CALL getType()const;
00063 
00064                 virtual void OPAL_CALL setName(const std::string& name);
00065 
00066                 virtual const std::string& OPAL_CALL getName()const;
00067 
00068                 virtual bool OPAL_CALL isEnabled()const;
00069 
00070                 virtual void OPAL_CALL setEnabled(bool e);
00071 
00075                 virtual void OPAL_CALL setForce(const Force& f);
00076 
00078                 virtual const Force& OPAL_CALL getForce()const;
00079 
00080                 virtual bool OPAL_CALL internal_dependsOnSolid(Solid* s);
00081 
00082                 virtual void OPAL_CALL internal_update();
00083 
00084         protected:
00086                 ThrusterMotorData mData;
00087 
00088         private:
00089         };
00090 }
00091 
00092 #endif

Generated on Tue May 16 17:49:52 2006 for OPAL by  doxygen 1.4.6-NO