Panda3D
|
00001 // Filename: imageBase.h 00002 // Created by: drose (19Jun00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef IMAGEBASE_H 00016 #define IMAGEBASE_H 00017 00018 #include "pandatoolbase.h" 00019 00020 #include "programBase.h" 00021 #include "coordinateSystem.h" 00022 #include "pnmImage.h" 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Class : ImageBase 00026 // Description : This specialization of ProgramBase is intended for 00027 // programs that read and/or write a single image file. 00028 // (See ImageMultiBase for programs that operate on 00029 // multiple image files at once.) 00030 // 00031 // This is just a base class; see ImageReader, ImageWriter, 00032 // or ImageFilter according to your particular I/O needs. 00033 //////////////////////////////////////////////////////////////////// 00034 class ImageBase : public ProgramBase { 00035 public: 00036 ImageBase(); 00037 00038 protected: 00039 virtual bool post_command_line(); 00040 00041 protected: 00042 PNMImage _image; 00043 }; 00044 00045 #endif 00046 00047