OMKTransparencyAnimator.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 #ifndef OMK_VIS_TRANSPARENCYANIMATOR_H
00022 #define OMK_VIS_TRANSPARENCYANIMATOR_H
00023 
00024 #include "OMKOgreAnimatorT.h"
00025 #include "OMKMaterial.h" 
00026 #include "OMKAddOn.h" 
00027 namespace OMK  
00028 {
00029   namespace Vis 
00030   {
00031     class OgreVis ;
00032 
00053 class OMKADDON_API TransparencyAnimAnimator 
00054 : public OgreAnimatorT< OMK::Type::StringType >,
00055   public IUpdateMaterial  
00056 {
00057   DECLARE_ANIMATOR_FACTORY( TransparencyAnimAnimator ) ;
00058 private:
00063   virtual void selfProcessVis( const OMK::Type::StringType& value ) ;
00064   //Var
00065 protected:
00066   float _transparency ;
00067   NodeMaterialOrig* _node ;
00068   virtual void update( NodeMaterial* node ) ;
00069   virtual Ogre::String getMaterialName( const Ogre::String& name ) const ;
00070 } ;
00071 
00095 class OMKADDON_API TransparencyBoolAnimator 
00096 : public OgreAnimatorT< OMK::Type::BoolType >,
00097   public IUpdateMaterial  
00098 {
00099   DECLARE_ANIMATOR_FACTORY( TransparencyBoolAnimator ) ;
00100 private:
00105   virtual void selfProcessVis( const OMK::Type::BoolType& value ) ;
00106   //Var
00107 protected:
00108   float _transparency ;
00109   bool _state ;
00110   NodeMaterialOrig* _node ;
00111   virtual void update( NodeMaterial* node ) ;
00112   virtual Ogre::String getMaterialName( const Ogre::String& name ) const ;
00113 } ;
00114 
00134 class OMKADDON_API TransparencyValueAnimator 
00135 : public OgreAnimatorT< OMK::Type::FloatType >,
00136   public IUpdateMaterial  
00137 {
00138   DECLARE_ANIMATOR_FACTORY( TransparencyValueAnimator ) ;
00139 private:
00144   virtual void selfProcessVis( const OMK::Type::FloatType& value ) ;
00145   //Var
00146 protected:
00147   float _transparency ;
00148   NodeMaterialOrig* _node ;
00149   virtual void update( NodeMaterial* node ) ;
00150   virtual Ogre::String getMaterialName( const Ogre::String& name ) const ;
00151 } ;
00152 
00153   }// namespace Vis
00154 }// namespace OMK
00155 
00156 #endif //

logo OpenMask

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

Generated with doxygen by Dimitri van Heesch ,   1997-2007