Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

SUMA_gts.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           sumagts.h  -  description
00003                              -------------------
00004     begin                : Mon Jun 14 2004
00005     copyright            : (C) 2004 by Jakub Otwinowski
00006     email                : jakub@hurin
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 #ifndef __SUMAGTS_H__
00018 #define __SUMAGTS_H__
00019 #ifdef HAVE_CONFIG_H
00020 #include "gts/config.h"
00021 #endif
00022 #include "gts.h"
00023 #include "gts-private.h"
00024 
00025 #include "SUMA_suma.h"
00026 
00027 #define GTS_OUT(fname,s){\
00028    FILE *m_fp = fopen(fname, "w"); \
00029    if (!m_fp) { SUMA_S_Err("Failed to write GTS surface"); }   \
00030    else { gts_surface_write(s, m_fp); fclose(m_fp); m_fp = NULL; }   \
00031 }
00032 #define GTS_VTK_OUT(fname,s){\
00033    FILE *m_fp = fopen(fname, "w"); \
00034    if (!m_fp) { SUMA_S_Err("Failed to write VTK surface"); }   \
00035    else { gts_surface_write_vtk(s, m_fp); fclose(m_fp); m_fp = NULL; }   \
00036 }
00037 
00038 void gts_surface_suma (GtsSurface * s, 
00039                               float **NodeListp, int *N_Nodep, int *NodeDimp, 
00040                               int **FaceSetListp, int *N_FaceSetp, int *FaceSetDimp); 
00041 #if 0
00042 /* obsolete (and fails under OS X, use gts_surface_suma) */
00043 SUMA_SurfaceObject* GtsToSuma( GtsSurface *gs); /*!< copies gts surface into a suma surface */
00044 void MakeNodeList_foreach_vertex ( GtsPoint* v, gpointer* data);
00045 void MakeFaceList_foreach_face ( GtsFace* f, gpointer* data);
00046 #endif
00047 GtsSurface* SumaToGts( SUMA_SurfaceObject *SO); /*!< copies suma surface into a gts surface */
00048 void coarsen( GtsSurface* s, int stop); /*!< coarsens with set parameters*/
00049 void refine( GtsSurface* s, int stop); /*!< coarsens with set parameters*/
00050 SUMA_SurfaceObject *SUMA_Mesh_Resample (SUMA_SurfaceObject *SO, float edge_factor);
00051 
00052 #endif /* __SUMAGTS_H__ */
 

Powered by Plone

This site conforms to the following standards: