OpenMesh::IO::ImporterT< Mesh > Class Template Reference

#include <ImporterT.hh>

Inheritance diagram for OpenMesh::IO::ImporterT< Mesh >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef Mesh::Color Color
typedef Mesh::Normal Normal
typedef Mesh::Point Point
typedef Mesh::TexCoord2D TexCoord2D
typedef std::vector< VertexHandleVHandles

Public Member Functions

virtual FaceHandle add_face (const VHandles &_indices)
virtual void add_face_texcoords (FaceHandle _fh, VertexHandle _vh, const std::vector< Vec2f > &_face_texcoords)
virtual void add_texture_information (int _id, std::string _name)
virtual VertexHandle add_vertex (const Vec3f &_point)
void finish ()
 ImporterT (Mesh &_mesh)
bool is_triangle_mesh () const
virtual BaseKernelkernel ()
size_t n_edges () const
size_t n_faces () const
size_t n_vertices () const
void prepare ()
void reserve (unsigned int nV, unsigned int nE, unsigned int nF)
virtual void set_color (FaceHandle _fh, const Vec4uc &_color)
virtual void set_color (FaceHandle _fh, const Vec3uc &_color)
virtual void set_color (EdgeHandle _eh, const Vec3uc &_color)
virtual void set_color (EdgeHandle _eh, const Vec4uc &_color)
virtual void set_color (VertexHandle _vh, const Vec3uc &_color)
virtual void set_color (VertexHandle _vh, const Vec4uc &_color)
virtual void set_face_texindex (FaceHandle _fh, int _texId)
virtual void set_normal (FaceHandle _fh, const Vec3f &_normal)
virtual void set_normal (VertexHandle _vh, const Vec3f &_normal)
virtual void set_texcoord (HalfedgeHandle _heh, const Vec2f &_texcoord)
virtual void set_texcoord (VertexHandle _vh, const Vec2f &_texcoord)

Private Attributes

std::vector< VHandlesfailed_faces_
Mesh & mesh_

Detailed Description

template<class Mesh>
class OpenMesh::IO::ImporterT< Mesh >

This class template provides an importer module for OpenMesh meshes.

Definition at line 71 of file ImporterT.hh.


Member Typedef Documentation

template<class Mesh>
typedef Mesh::Color OpenMesh::IO::ImporterT< Mesh >::Color

Definition at line 66 of file ImporterT.hh.

template<class Mesh>
typedef Mesh::Normal OpenMesh::IO::ImporterT< Mesh >::Normal

Definition at line 65 of file ImporterT.hh.

template<class Mesh>
typedef Mesh::Point OpenMesh::IO::ImporterT< Mesh >::Point

Definition at line 64 of file ImporterT.hh.

template<class Mesh>
typedef Mesh::TexCoord2D OpenMesh::IO::ImporterT< Mesh >::TexCoord2D

Definition at line 67 of file ImporterT.hh.

template<class Mesh>
typedef std::vector<VertexHandle> OpenMesh::IO::ImporterT< Mesh >::VHandles

Reimplemented from OpenMesh::IO::BaseImporter.

Definition at line 68 of file ImporterT.hh.


Constructor & Destructor Documentation

template<class Mesh>
OpenMesh::IO::ImporterT< Mesh >::ImporterT ( Mesh &  _mesh  )  [inline]

Definition at line 71 of file ImporterT.hh.


Member Function Documentation

template<class Mesh>
virtual FaceHandle OpenMesh::IO::ImporterT< Mesh >::add_face ( const VHandles _indices  )  [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 80 of file ImporterT.hh.

template<class Mesh>
virtual void OpenMesh::IO::ImporterT< Mesh >::add_face_texcoords ( FaceHandle  _fh,
VertexHandle  _vh,
const std::vector< Vec2f > &  _face_texcoords 
) [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 188 of file ImporterT.hh.

template<class Mesh>
virtual void OpenMesh::IO::ImporterT< Mesh >::add_texture_information ( int  _id,
std::string  _name 
) [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 211 of file ImporterT.hh.

template<class Mesh>
virtual VertexHandle OpenMesh::IO::ImporterT< Mesh >::add_vertex ( const Vec3f _point  )  [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 74 of file ImporterT.hh.

template<class Mesh>
void OpenMesh::IO::ImporterT< Mesh >::finish (  )  [inline, virtual]

Reimplemented from OpenMesh::IO::BaseImporter.

Definition at line 243 of file ImporterT.hh.

template<class Mesh>
bool OpenMesh::IO::ImporterT< Mesh >::is_triangle_mesh (  )  const [inline, virtual]

Reimplemented from OpenMesh::IO::BaseImporter.

Definition at line 226 of file ImporterT.hh.

template<class Mesh>
virtual BaseKernel* OpenMesh::IO::ImporterT< Mesh >::kernel (  )  [inline, virtual]

Reimplemented from OpenMesh::IO::BaseImporter.

Definition at line 224 of file ImporterT.hh.

template<class Mesh>
size_t OpenMesh::IO::ImporterT< Mesh >::n_edges (  )  const [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 237 of file ImporterT.hh.

template<class Mesh>
size_t OpenMesh::IO::ImporterT< Mesh >::n_faces (  )  const [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 236 of file ImporterT.hh.

template<class Mesh>
size_t OpenMesh::IO::ImporterT< Mesh >::n_vertices (  )  const [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 235 of file ImporterT.hh.

template<class Mesh>
void OpenMesh::IO::ImporterT< Mesh >::prepare (  )  [inline, virtual]

Reimplemented from OpenMesh::IO::BaseImporter.

Definition at line 240 of file ImporterT.hh.

template<class Mesh>
void OpenMesh::IO::ImporterT< Mesh >::reserve ( unsigned int  nV,
unsigned int  nE,
unsigned int  nF 
) [inline, virtual]

Reimplemented from OpenMesh::IO::BaseImporter.

Definition at line 229 of file ImporterT.hh.

template<class Mesh>
virtual void OpenMesh::IO::ImporterT< Mesh >::set_color ( FaceHandle  _fh,
const Vec4uc _color 
) [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 182 of file ImporterT.hh.

template<class Mesh>
virtual void OpenMesh::IO::ImporterT< Mesh >::set_color ( FaceHandle  _fh,
const Vec3uc _color 
) [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 176 of file ImporterT.hh.

template<class Mesh>
virtual void OpenMesh::IO::ImporterT< Mesh >::set_color ( EdgeHandle  _eh,
const Vec3uc _color 
) [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 162 of file ImporterT.hh.

template<class Mesh>
virtual void OpenMesh::IO::ImporterT< Mesh >::set_color ( EdgeHandle  _eh,
const Vec4uc _color 
) [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 156 of file ImporterT.hh.

template<class Mesh>
virtual void OpenMesh::IO::ImporterT< Mesh >::set_color ( VertexHandle  _vh,
const Vec3uc _color 
) [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 135 of file ImporterT.hh.

template<class Mesh>
virtual void OpenMesh::IO::ImporterT< Mesh >::set_color ( VertexHandle  _vh,
const Vec4uc _color 
) [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 129 of file ImporterT.hh.

template<class Mesh>
virtual void OpenMesh::IO::ImporterT< Mesh >::set_face_texindex ( FaceHandle  _fh,
int  _texId 
) [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 205 of file ImporterT.hh.

template<class Mesh>
virtual void OpenMesh::IO::ImporterT< Mesh >::set_normal ( FaceHandle  _fh,
const Vec3f _normal 
) [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 170 of file ImporterT.hh.

template<class Mesh>
virtual void OpenMesh::IO::ImporterT< Mesh >::set_normal ( VertexHandle  _vh,
const Vec3f _normal 
) [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 123 of file ImporterT.hh.

template<class Mesh>
virtual void OpenMesh::IO::ImporterT< Mesh >::set_texcoord ( HalfedgeHandle  _heh,
const Vec2f _texcoord 
) [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 148 of file ImporterT.hh.

template<class Mesh>
virtual void OpenMesh::IO::ImporterT< Mesh >::set_texcoord ( VertexHandle  _vh,
const Vec2f _texcoord 
) [inline, virtual]

Implements OpenMesh::IO::BaseImporter.

Definition at line 142 of file ImporterT.hh.


Member Data Documentation

template<class Mesh>
std::vector<VHandles> OpenMesh::IO::ImporterT< Mesh >::failed_faces_ [private]

Definition at line 293 of file ImporterT.hh.

template<class Mesh>
Mesh& OpenMesh::IO::ImporterT< Mesh >::mesh_ [private]

Definition at line 292 of file ImporterT.hh.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


openmesh
Author(s): Benjamin Pitzer
autogenerated on Fri Jan 11 12:11:18 2013