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

GReparentInfluence.h

00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Raphael Langerhorst                             *
00003  *   raphael-langerhorst@gmx.at                                            *
00004  *                                                                         *
00005  *   Permission is hereby granted, free of charge, to any person obtaining *
00006  *   a copy of this software and associated documentation files (the       *
00007  *   "Software"), to deal in the Software without restriction, including   *
00008  *   without limitation the rights to use, copy, modify, merge, publish,   *
00009  *   distribute, sublicense, and/or sell copies of the Software, and to    *
00010  *   permit persons to whom the Software is furnished to do so, subject to *
00011  *   the following conditions:                                             *
00012  *                                                                         *
00013  *   The above copyright notice and this permission notice shall be        *
00014  *   included in all copies or substantial portions of the Software.       *
00015  *                                                                         *
00016  *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,       *
00017  *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    *
00018  *   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*
00019  *   IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR     *
00020  *   OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
00021  *   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR *
00022  *   OTHER DEALINGS IN THE SOFTWARE.                                       *
00023  ***************************************************************************/
00024 
00025 #ifndef GBEGREPARENTINFLUENCE_H
00026 #define GBEGREPARENTINFLUENCE_H
00027 
00028 #include <GElementInfluence.h>
00029 #include <GElementID.h>
00030 #include <GEnergy.h>
00031 #include <GVector3.h>
00032 
00033 
00034 namespace GBE {
00035 
00050 class GReparentInfluence : public GCS::GElementInfluence
00051 {
00052   protected:
00056     const GCS::GElementID ReparentedElement;
00057     
00061     const GCS::GElementID NewParent;
00062     
00071     const GCS::GVector3 MoveDistance;
00072     
00083     const GCS::GVector3 Rotate;
00084     
00085   public:
00086   
00090     GReparentInfluence(const GCS::GElementID& source, const GCS::GEnergy& energy,
00091                        const GCS::GElementID& reparented_element,
00092                        const GCS::GElementID& new_parent,
00093                        const GCS::GVector3& move_distance,
00094                        const GCS::GVector3& rotate);
00095 
00099     virtual ~GReparentInfluence();
00100     
00104     const GCS::GElementID& getReparentedElement();
00105     
00109     const GCS::GElementID& getNewParent();
00110 
00114     const GCS::GVector3& getMoveDistance();
00115     
00119     const GCS::GVector3& getRotate();
00120 };
00121 
00122 };
00123 
00124 #endif

Generated on Thu Oct 21 21:18:03 2004 for G System by doxygen 1.3.6