OMKColorPolator.h

Go to the documentation of this file.
00001 /************************************************************************/
00002 /* This file is part of openMask(c) INRIA, CNRS, Universite de Rennes 1 */
00003 /* 1993-2002, thereinafter the Software                                 */
00004 /*                                                                      */
00005 /* The Software has been developped within the Siames Project.          */
00006 /* INRIA, the University of Rennes 1 and CNRS jointly hold intellectual */
00007 /* property rights                                                      */
00008 /*                                                                      */
00009 /* The Software has been registered with the Agence pour la Protection  */
00010 /* des Programmes (APP) under registration number                       */
00011 /* IDDN.FR.001.510008.00.S.P.2001.000.41200                             */
00012 /*                                                                      */
00013 /* This file may be distributed under the terms of the Q Public License */
00014 /* version 1.0 as defined by Trolltech AS of Norway and appearing in    */
00015 /* the file LICENSE.QPL included in the packaging of this file.         */
00016 /*                                                                      */
00017 /* Licensees holding valid specific licenses issued by INRIA, CNRS or   */
00018 /* Universite Rennes 1 for the software may use this file in            */
00019 /* acordance with that specific license                                 */
00020 /************************************************************************/
00021                 
00022 #if !defined OMKCOLORPOLATOR_H
00023 #define OMKCOLORPOLATOR_H
00024 
00025 #include "OMKColor.h"
00026 #include "OMKPolator.h"
00027 
00028 namespace OMK 
00029 {
00030 namespace Type 
00031 {
00032 class ColorPolator : public Polator< SimpleTypeT< Color > >
00033 {
00034 public:
00036   ColorPolator() : Polator< SimpleTypeT< Color > >( 2 ) {}
00037   
00039   virtual ~ColorPolator() {}
00040 
00042   virtual const SimpleTypeT< Color >& interpolate( SimpleTypeT< Color >& result,
00043                                                                   const int interpolationLevel,
00044                                                                   const Date& dateNeeded,
00045                                                                   const Date& dateAfter,
00046                                                                   const SimpleTypeT< Color >& valueAfter,
00047                                                                   const Date& dateBefore,
00048                                                                   int offsetToMostRecentOfDateBefore ) const ;
00050   virtual const SimpleTypeT< Color >& extrapolate( SimpleTypeT< Color >& result,
00051                                                                   const int requestedPolationLevel,
00052                                                                   const Date& t,
00053                                                                   const Date& tIndice ) const;
00055   virtual const SimpleTypeT< Color >& antepolate( SimpleTypeT< Color >& result,
00056                                                                  const int requestedPolationLevel,
00057                                                                  const Date& t,
00058                                                                  const Date& tIndice,
00059                                                                  unsigned int indice ) const ;
00060 } ;
00061 } // namespace Type
00062 } // namespace OMK
00063 #endif 

logo OpenMask

Documentation generated on Mon Jun 9 11:45:56 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007