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

Blendable.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_UTILS_BLENDABLE_H 00012 #define OPENCAL_UTILS_BLENDABLE_H 00013 00014 // Includes 00015 #include <OpenCAL/global.h> 00016 00017 namespace OpenCAL 00018 { 00019 // namespace Utils 00020 // { 00025 template<class C> 00026 class OPENCAL_API Blendable 00027 { 00028 public: 00029 // Constructors and destructor 00030 virtual ~Blendable() {} 00031 00037 virtual void blend(float u, const C &dest) = 0; 00038 00045 virtual void blend(float u, const C &source, const C &dest) = 0; 00046 00053 virtual C blended(float u, const C &dest) const = 0; 00054 00062 virtual C blended(float u, const C &source, const C &dest) const = 0; 00063 }; 00064 // } 00065 } 00066 00067 #endif // OPENCAL_UTILS_BLENDABLE_H

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