Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

pandatool/src/imageprogs/imageTrans.h

Go to the documentation of this file.
00001 // Filename: imageTrans.h
00002 // Created by:  drose (19Jun00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef IMAGETRANS_H
00020 #define IMAGETRANS_H
00021 
00022 #include "pandatoolbase.h"
00023 
00024 #include "imageFilter.h"
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //       Class : ImageTrans
00028 // Description : A program to read an image file and write an
00029 //               equivalent image file, possibly performing some minor
00030 //               operations along the way.
00031 ////////////////////////////////////////////////////////////////////
00032 class ImageTrans : public ImageFilter {
00033 public:
00034   ImageTrans();
00035 
00036   void run();
00037 
00038 private:
00039   static bool dispatch_channels(const string &opt, const string &arg, void *var);
00040   void extract_alpha();
00041 
00042   enum Channels {
00043     C_default,
00044     C_l = 1,
00045     C_la = 2,
00046     C_rgb = 3,
00047     C_rgba = 4,
00048     C_r,
00049     C_g,
00050     C_b,
00051     C_a
00052   };
00053     
00054   Channels _channels;
00055 };
00056 
00057 #endif
00058 

Generated on Fri May 2 03:20:07 2003 for Panda-Tool by doxygen1.3