00001 #ifndef OPENTISSUE_UTILITY_GL_GL_DRAW_GRID_AABB_H 00002 #define OPENTISSUE_UTILITY_GL_GL_DRAW_GRID_AABB_H 00003 // 00004 // OpenTissue Template Library 00005 // - A generic toolbox for physics-based modeling and simulation. 00006 // Copyright (C) 2008 Department of Computer Science, University of Copenhagen. 00007 // 00008 // OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php 00009 // 00010 #include <OpenTissue/configuration.h> 00011 00012 #include <OpenTissue/utility/gl/gl_util.h> 00013 #include <OpenTissue/core/geometry/geometry_aabb.h> 00014 00015 namespace OpenTissue 00016 { 00017 00018 namespace gl 00019 { 00020 00026 template<typename grid_type> 00027 inline void DrawGridAABB(grid_type const & grid) 00028 { 00029 typedef typename grid_type::math_types math_types; 00030 00031 typedef geometry::AABB<math_types> aabb_type; 00032 00033 aabb_type aabb( grid.min_coord(), grid.max_coord() ); 00034 00035 DrawAABB( aabb, true ); 00036 } 00037 00038 } // namespace gl 00039 00040 } // namespace OpenTissue 00041 00042 // OPENTISSUE_UTILITY_GL_GL_DRAW_GRID_AABB_H 00043 #endif