GEL
2
GEL is a library for Geometry and Linear Algebra
|
00001 #ifndef __GEOMETRY_VOXELGRID_TRILINFILTER_H 00002 #define __GEOMETRY_VOXELGRID_TRILINFILTER_H 00003 00004 #include "CGLA/Vec3f.h" 00005 #include "RGrid.h" 00006 #include "Neighbours.h" 00007 00008 namespace Geometry 00009 { 00010 template<class GridT> 00011 class TrilinFilter 00012 { 00013 public: 00014 typedef typename GridT::DataType DataType; 00015 private: 00016 const GridT* grid; 00017 public: 00018 TrilinFilter(const GridT* _grid): grid(_grid) {} 00019 00020 bool in_domain(const CGLA::Vec3f&) const; 00021 00022 float operator()(const CGLA::Vec3f& p) const; 00023 00024 CGLA::Vec3f grad(const CGLA::Vec3f& v) const; 00025 }; 00026 } 00027 00028 00029 #endif