Classes | Public Types | Static Public Member Functions
vcg::tri::io::ImporterGTS< MESH_TYPE > Class Template Reference

#include <import_gts.h>

List of all members.

Classes

struct  Options

Public Types

typedef MESH_TYPE::CoordType CoordType
typedef MESH_TYPE::FaceIterator FaceIterator
typedef MESH_TYPE::FacePointer FacePointer
typedef MESH_TYPE::FaceType FaceType
enum  GTSCodes {
  NoError = 0, CantOpen, InvalidFile, UnsupportedFormat,
  ErrorNotTriangularFace
}
typedef MESH_TYPE::ScalarType ScalarType
typedef MESH_TYPE::VertexIterator VertexIterator
typedef MESH_TYPE::VertexPointer VertexPointer
typedef MESH_TYPE::VertexType VertexType

Static Public Member Functions

static const char * ErrorMsg (int message_code)
static bool LoadMask (const char *filename, int &loadmask)
static int Open (MESH_TYPE &mesh, const char *filename, CallBackPos *cb=0)
static int Open (MESH_TYPE &mesh, const char *filename, int &loadmask, CallBackPos *cb=0, bool onlyMaskFlag=false)
static int Open (MESH_TYPE &mesh, const char *filename, int &loadmask, const Options &options, CallBackPos *cb=0)

Detailed Description

template<class MESH_TYPE>
class vcg::tri::io::ImporterGTS< MESH_TYPE >

This class encapsulate a filter for importing GTS meshes. The GTS file format of the GNU Triangulated Surface library http://gts.sourceforge.net/

Definition at line 50 of file import_gts.h.


Member Typedef Documentation

template<class MESH_TYPE >
typedef MESH_TYPE::CoordType vcg::tri::io::ImporterGTS< MESH_TYPE >::CoordType

Definition at line 60 of file import_gts.h.

template<class MESH_TYPE >
typedef MESH_TYPE::FaceIterator vcg::tri::io::ImporterGTS< MESH_TYPE >::FaceIterator

Definition at line 58 of file import_gts.h.

template<class MESH_TYPE >
typedef MESH_TYPE::FacePointer vcg::tri::io::ImporterGTS< MESH_TYPE >::FacePointer

Definition at line 59 of file import_gts.h.

template<class MESH_TYPE >
typedef MESH_TYPE::FaceType vcg::tri::io::ImporterGTS< MESH_TYPE >::FaceType

Definition at line 57 of file import_gts.h.

template<class MESH_TYPE >
typedef MESH_TYPE::ScalarType vcg::tri::io::ImporterGTS< MESH_TYPE >::ScalarType

Definition at line 61 of file import_gts.h.

template<class MESH_TYPE >
typedef MESH_TYPE::VertexIterator vcg::tri::io::ImporterGTS< MESH_TYPE >::VertexIterator

Definition at line 55 of file import_gts.h.

template<class MESH_TYPE >
typedef MESH_TYPE::VertexPointer vcg::tri::io::ImporterGTS< MESH_TYPE >::VertexPointer

Definition at line 56 of file import_gts.h.

template<class MESH_TYPE >
typedef MESH_TYPE::VertexType vcg::tri::io::ImporterGTS< MESH_TYPE >::VertexType

Definition at line 54 of file import_gts.h.


Member Enumeration Documentation

template<class MESH_TYPE >
enum vcg::tri::io::ImporterGTS::GTSCodes
Enumerator:
NoError 
CantOpen 
InvalidFile 
UnsupportedFormat 
ErrorNotTriangularFace 

Definition at line 63 of file import_gts.h.


Member Function Documentation

template<class MESH_TYPE >
static const char* vcg::tri::io::ImporterGTS< MESH_TYPE >::ErrorMsg ( int  message_code) [inline, static]

Standard call for knowing the meaning of an error code

Parameters:
message_codeThe code returned by Open
Returns:
The string describing the error code

Definition at line 81 of file import_gts.h.

template<class MESH_TYPE >
static bool vcg::tri::io::ImporterGTS< MESH_TYPE >::LoadMask ( const char *  filename,
int &  loadmask 
) [inline, static]

Load only the properties of the 3D objects.

Parameters:
filenamethe name of the file to read from
loadmaskthe mask which encodes the properties
Returns:
the operation result

Definition at line 102 of file import_gts.h.

template<class MESH_TYPE >
static int vcg::tri::io::ImporterGTS< MESH_TYPE >::Open ( MESH_TYPE &  mesh,
const char *  filename,
CallBackPos cb = 0 
) [inline, static]

Definition at line 111 of file import_gts.h.

template<class MESH_TYPE >
static int vcg::tri::io::ImporterGTS< MESH_TYPE >::Open ( MESH_TYPE &  mesh,
const char *  filename,
int &  loadmask,
CallBackPos cb = 0,
bool  onlyMaskFlag = false 
) [inline, static]

Standard call for reading a mesh.

Parameters:
meshthe destination mesh
filenamethe name of the file to read from
Returns:
the operation result

Definition at line 124 of file import_gts.h.

template<class MESH_TYPE >
static int vcg::tri::io::ImporterGTS< MESH_TYPE >::Open ( MESH_TYPE &  mesh,
const char *  filename,
int &  loadmask,
const Options options,
CallBackPos cb = 0 
) [inline, static]

Definition at line 132 of file import_gts.h.


The documentation for this class was generated from the following file:


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:44:03