Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

den.h

Go to the documentation of this file.
00001 // $Id: den.h,v 1.6 2003/01/16 18:36:52 sarang Exp $
00002 //
00003 // OpenVL - A Library for working with volumetric datasets.
00004 //          http://openvl.sf.net
00005 //
00006 // Copyright (C) 2000-2002  Sarang Lakare <sarang#users.sf.net>
00007 //
00008 // This library is free software; you can redistribute it and/or
00009 // modify it under the terms of the GNU Library General Public
00010 // License as published by the Free Software Foundation; either
00011 // version 2 of the License, or (at your option) any later version.
00012 //
00013 // This library is distributed in the hope that it will be useful,
00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016 // Library General Public License for more details.
00017 //
00018 // You should have received a copy of the GNU Library General Public
00019 // License along with this library; if not, write to the Free Software
00020 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00021 // USA.
00022 //
00023 // Please report all bugs and problems to openvl-devel@lists.sf.net or
00024 // at the OpenVL website.
00025 //
00026 
00027 #ifndef _vlVolFioDEN_h
00028 #define _vlVolFioDEN_h
00029 
00030 #include "vlvolfiofilter.h"
00031 #include "vlvolinfo.h"
00032 
00033 class vlVolInfo;
00034 
00039 class vlVolFioDEN : public vlVolFioFilter {
00040 // Member functions
00041 public:
00043   vlVolFioDEN();
00044 
00046   virtual ~vlVolFioDEN();
00047 
00049   const std::vector<std::string> & getFileExtensions() const;
00050 
00052   bool readInfo(vlVolInfo & info, FILE * const fp, const std::string & filename);
00053 
00055   bool readData(vlVolInfo & info, vlVolData * const data, FILE * const fp, const std::string & filename);
00056 
00058   bool writeInfo(const vlVolInfo & info, FILE * const fp, const std::string & filename);
00059 
00061   bool writeData(const vlVolInfo & info, const vlVolData * data, FILE * const fp, const std::string & filename);
00062 
00063 protected:
00065   std::vector<std::string> m_fileExtensions;
00066 
00067 private:
00069   static const int16 MAP_CUR_VERSION=1;
00070 
00072   static const int16 MAP_CUR_VERSION_SWAB=0x0100;
00073 };
00074 
00075 #endif // _vlVolFioDEN_h

Generated on Fri Mar 18 11:33:12 2005 for OpenVL by doxygen 1.3.3