• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List
  • File Members

ColorMatrixFilter.h

Go to the documentation of this file.
00001 // 
00002 //   Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
00003 // 
00004 // This program is free software; you can redistribute it and/or modify
00005 // it under the terms of the GNU General Public License as published by
00006 // the Free Software Foundation; either version 3 of the License, or
00007 // (at your option) any later version.
00008 // 
00009 // This program is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU General Public License for more details.
00013 // 
00014 // You should have received a copy of the GNU General Public License
00015 // along with this program; if not, write to the Free Software
00016 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00017 
00018 
00019 #ifndef GNASH_COLORMATRIXFILTER_H
00020 #define GNASH_COLORMATRIXFILTER_H
00021 
00022 #include "BitmapFilter.h"
00023 #include <vector>
00024 
00025 namespace gnash {
00026 
00027 // A color SWFMatrix effect filter.
00028 class ColorMatrixFilter : public BitmapFilter
00029 {
00030 public:
00031     // Fill from a SWFStream. See parser/filter_factory.cpp for the implementations.
00032     virtual bool read(SWFStream& in);
00033 
00034     virtual ~ColorMatrixFilter() { return; }
00035 
00036     ColorMatrixFilter() : 
00037         m_matrix()
00038     { return; }
00039 
00040     ColorMatrixFilter(std::vector<float> a_matrix) :
00041         m_matrix(a_matrix)
00042     { return; }
00043 
00044 protected:
00045     std::vector<float> m_matrix; // The color SWFMatrix
00046 };
00047 
00048 } // Namespace gnash
00049 
00050 #endif // GNASH_CONVOLUTIONFILTER_H

Generated on Thu Sep 30 2010 14:34:56 for Gnash by  doxygen 1.7.1