UCButils.h

00001 //===========================================================================
00002 // SINTEF LSMG library - version 1.1
00003 //
00004 // Copyright (C) 2000-2005 SINTEF ICT, Applied Mathematics, Norway.
00005 //
00006 // This program is free software; you can redistribute it and/or          
00007 // modify it under the terms of the GNU General Public License            
00008 // as published by the Free Software Foundation version 2 of the License. 
00009 //
00010 // This program is distributed in the hope that it will be useful,        
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of         
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          
00013 // GNU General Public License for more details.                           
00014 //
00015 // You should have received a copy of the GNU General Public License      
00016 // along with this program; if not, write to the Free Software            
00017 // Foundation, Inc.,                                                      
00018 // 59 Temple Place - Suite 330,                                           
00019 // Boston, MA  02111-1307, USA.                                           
00020 //
00021 // Contact information: e-mail: tor.dokken@sintef.no                      
00022 // SINTEF ICT, Department of Applied Mathematics,                         
00023 // P.O. Box 124 Blindern,                                                 
00024 // 0314 Oslo, Norway.                                                     
00025 //
00026 // Other licenses are also available for this software, notably licenses
00027 // for:
00028 // - Building commercial software.                                        
00029 // - Building software whose source code you wish to keep private.        
00030 //===========================================================================
00031 #ifndef _UCB_UTILS_H_
00032 #define _UCB_UTILS_H_
00033 
00034 #include <UCBsplineSurface.h>
00035 #include <vector>
00036 
00037 
00038 #include <PointAccessUtils.h> // ??? Temporary here now so we dodn't need to include it in app.
00039 
00040 
00047 namespace UCBspl {
00048   
00049   // Operations on UCBspl::SplineSurface, file access
00050   // ------------------------------------------------
00051   void printVRMLgrid(const char filename[], const UCBspl::SplineSurface& surf, int noU, int noV, double scale = 1.0);
00052   void printVTKgrid(const char filename[], const UCBspl::SplineSurface& surf, int noU, int noV, double scale = 1.0);
00053   void printVTKtriangleStrips(const char filename[], const UCBspl::SplineSurface& surf, int noU, int noV, double scale = 1.0);
00054   void printGNUgrid (const char filename[], const UCBspl::SplineSurface& surf, int noU, int noV);  
00055   void printIRAPgrid(const char filename[], const UCBspl::SplineSurface& surf, int noU, int noV);
00056   void printGLgrid(const char filename[], const UCBspl::SplineSurface& surf, int noU, int noV);
00057   void printGLgridBin(const char filename[], const UCBspl::SplineSurface& surf, int noU, int noV,
00058                       const std::vector<double>& X, const std::vector<double>& Y, const std::vector<double>& Z, // scattered data
00059                       double scale = 1.0);
00060   void saveSplineSurface(const char filename[], const UCBspl::SplineSurface& surf);
00061   void readSplineSurface(const char filename[], UCBspl::SplineSurface& surf);
00062   void saveSplineSurfaceBin(const char filename[], const UCBspl::SplineSurface& surf);
00063   void readSplineSurfaceBin(const char filename[], UCBspl::SplineSurface& surf);
00064   
00065 }; // end namespace
00066 
00067 #endif

Generated on Wed Nov 28 12:27:29 2007 for LSMG by  doxygen 1.5.1