Main Page | Class Hierarchy | Class List | File List | Class Members

df3function.h

00001 /* ************************************************************************* 00002 df3function.h - description 00003 ------------------- 00004 begin : Sat May 10 2003 00005 copyright : (C) 2003 by Micha Riser 00006 email : mriser@gmx.net 00007 00008 $Id: df3function_8h-source.html,v 1.1 2005/02/04 21:02:27 micha Exp $ 00009 00010 ************************************************************************* */ 00011 00012 /* ************************************************************************* 00013 * * 00014 * This program is free software; you can redistribute it and/or modify * 00015 * it under the terms of the GNU General Public License as published by * 00016 * the Free Software Foundation; either version 2 of the License, or * 00017 * (at your option) any later version. * 00018 * * 00019 ************************************************************************* */ 00020 00021 #ifndef DF3FUNCTION_H 00022 #define DF3FUNCTION_H 00023 00024 #include "isosurface.h" 00025 #include <iostream> 00026 00031 class DF3Function: public Isosurface::IsosurfaceFunction { 00032 00033 public: 00034 DF3Function(std::istream& df3stream); 00035 ~DF3Function(); 00036 private: 00037 DF3Function(const DF3Function&); 00038 DF3Function& operator=(const DF3Function&); 00039 00040 public: 00041 DBL evaluateAt(const Vector3&) const; 00042 00043 private: 00044 00045 DBL interpolateTRI(const Vector3&) const; 00046 DBL interpolateBI(const Vector3&) const; 00047 00048 unsigned char data(CNT x, CNT y, CNT z) const; 00049 00050 // static const DBL OUT_OF_RANGE_VALUE; 00051 static const unsigned char OUT_OF_RANGE_VALUE = 0; 00052 00053 unsigned short int dim[3]; 00054 unsigned char* voxels; 00055 00056 00057 }; 00058 00059 #endif

Generated on Thu Jan 27 12:16:05 2005 for raytracer.kdevelop by doxygen 1.3.8