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

LWChannelKey.h

Go to the documentation of this file.
00001 
00002 /*
00003     TEDDY - General graphics application library
00004     Copyright (C) 1999-2002  Timo Suoranta
00005     tksuoran@cc.helsinki.fi
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Lesser General Public
00009     License as published by the Free Software Foundation; either
00010     version 2.1 of the License, or (at your option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     Lesser General Public License for more details.
00016 
00017     You should have received a copy of the GNU Lesser General Public
00018     License along with this library; if not, write to the Free Software
00019     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 
00021     $Id: LWChannelKey.h,v 1.1 2002/02/16 12:41:39 tksuoran Exp $
00022 */
00023 
00024 
00025 #ifndef TEDDY__IMPORTS__LW_CHANNEL_KEY_H
00026 #define TEDDY__IMPORTS__LW_CHANNEL_KEY_H
00027 
00028 
00029 #include "Teddy/TeddyConfig.h"
00030 #if defined( TEDDY_INCLUDE_LW_SCENE )
00031 
00032 
00033 namespace Teddy   {
00034 namespace Imports {
00035 
00036 
00038 class LWChannelKey {
00039 public:
00040     // value time spantype p1 p2 p3 p4 p5 p6
00041     LWChannelKey(
00042         float value,
00043         float time,
00044         int   shape,
00045         float p1,
00046         float p2,
00047         float p3,
00048         float p4,
00049         float p5,
00050         float p6
00051     );
00052 
00053     
00054     inline float tension   (){ return p1; };
00055     inline float continuity(){ return p2; };
00056     inline float bias      (){ return p3; };
00057 
00058 public:
00059     float  value;
00060     float  time;
00061     int    shape;
00062     float  p1;    //  tension                       incoming time    param[ 0 ]
00063     float  p2;    //  continuity                    incoming value  param[ 1 ]
00064     float  p3;    //  bias                          outgoing time   param[ 2 ]
00065     float  p4;    //  incoming tangent  param[ 0 ]  outgoing value  param[ 3 ]
00066     float  p5;    //  outgoing tangent  param[ 1 ]
00067     float  p6;    //  ignored 0                        
00068 };
00069 
00070 
00071 };  //  namespace Imports
00072 };  //  namespace Teddy
00073 
00074 
00075 #endif  //  TEDDY_INCLUDE_LW_SCENE
00076 #endif  //  TEDDY__IMPORTS__LW_CHANNEL_KEY_H
00077