OpenMesh
Loading...
Searching...
No Matches
OpenMesh::IO::ExporterT< Mesh > Class Template Reference

This class template provides an exporter module for OpenMesh meshes. More...

#include <OpenMesh/Core/IO/exporter/ExporterT.hh>

Inheritance diagram for OpenMesh::IO::ExporterT< Mesh >:
Collaboration diagram for OpenMesh::IO::ExporterT< Mesh >:

Public Member Functions

 ExporterT (const Mesh &_mesh)
Vec3f point (VertexHandle _vh) const override
Vec3d pointd (VertexHandle _vh) const override
bool is_point_double () const override
bool is_normal_double () const override
Vec3f normal (VertexHandle _vh) const override
Vec3d normald (VertexHandle _vh) const override
Vec3uc color (VertexHandle _vh) const override
Vec4uc colorA (VertexHandle _vh) const override
Vec3ui colori (VertexHandle _vh) const override
Vec4ui colorAi (VertexHandle _vh) const override
Vec3f colorf (VertexHandle _vh) const override
Vec4f colorAf (VertexHandle _vh) const override
Vec2f texcoord (VertexHandle _vh) const override
Vec2f texcoord (HalfedgeHandle _heh) const override
OpenMesh::Attributes::StatusInfo status (VertexHandle _vh) const override
Vec3uc color (EdgeHandle _eh) const override
Vec4uc colorA (EdgeHandle _eh) const override
Vec3ui colori (EdgeHandle _eh) const override
Vec4ui colorAi (EdgeHandle _eh) const override
Vec3f colorf (EdgeHandle _eh) const override
Vec4f colorAf (EdgeHandle _eh) const override
OpenMesh::Attributes::StatusInfo status (EdgeHandle _eh) const override
int get_halfedge_id (VertexHandle _vh) override
int get_halfedge_id (FaceHandle _fh) override
int get_next_halfedge_id (HalfedgeHandle _heh) override
int get_to_vertex_id (HalfedgeHandle _heh) override
int get_face_id (HalfedgeHandle _heh) override
OpenMesh::Attributes::StatusInfo status (HalfedgeHandle _heh) const override
unsigned int get_vhandles (FaceHandle _fh, std::vector< VertexHandle > &_vhandles) const override
unsigned int get_face_texcoords (std::vector< Vec2f > &_hehandles) const override
HalfedgeHandle getHeh (FaceHandle _fh, VertexHandle _vh) const override
 getHeh returns the HalfEdgeHandle that belongs to the face specified by _fh and has a toVertexHandle that corresponds to _vh.
Vec3f normal (FaceHandle _fh) const override
Vec3d normald (FaceHandle _fh) const override
Vec3uc color (FaceHandle _fh) const override
Vec4uc colorA (FaceHandle _fh) const override
Vec3ui colori (FaceHandle _fh) const override
Vec4ui colorAi (FaceHandle _fh) const override
Vec3f colorf (FaceHandle _fh) const override
Vec4f colorAf (FaceHandle _fh) const override
OpenMesh::Attributes::StatusInfo status (FaceHandle _fh) const override
virtual const BaseKernelkernel () override
size_t n_vertices () const override
size_t n_faces () const override
size_t n_edges () const override
bool is_triangle_mesh () const override
bool has_vertex_normals () const override
bool has_vertex_colors () const override
bool has_vertex_texcoords () const override
bool has_vertex_status () const override
bool has_edge_colors () const override
bool has_edge_status () const override
bool has_halfedge_status () const override
bool has_face_normals () const override
bool has_face_colors () const override
bool has_face_status () const override

Detailed Description

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

This class template provides an exporter module for OpenMesh meshes.

Member Function Documentation

◆ color() [1/3]

template<class Mesh>
Vec3uc OpenMesh::IO::ExporterT< Mesh >::color ( EdgeHandle _eh) const
inlineoverridevirtual

◆ color() [2/3]

template<class Mesh>
Vec3uc OpenMesh::IO::ExporterT< Mesh >::color ( FaceHandle _fh) const
inlineoverridevirtual

◆ color() [3/3]

template<class Mesh>
Vec3uc OpenMesh::IO::ExporterT< Mesh >::color ( VertexHandle _vh) const
inlineoverridevirtual

◆ colorA() [1/3]

template<class Mesh>
Vec4uc OpenMesh::IO::ExporterT< Mesh >::colorA ( EdgeHandle _eh) const
inlineoverridevirtual

◆ colorA() [2/3]

template<class Mesh>
Vec4uc OpenMesh::IO::ExporterT< Mesh >::colorA ( FaceHandle _fh) const
inlineoverridevirtual

◆ colorA() [3/3]

template<class Mesh>
Vec4uc OpenMesh::IO::ExporterT< Mesh >::colorA ( VertexHandle _vh) const
inlineoverridevirtual

◆ colorAf() [1/3]

template<class Mesh>
Vec4f OpenMesh::IO::ExporterT< Mesh >::colorAf ( EdgeHandle _eh) const
inlineoverridevirtual

◆ colorAf() [2/3]

template<class Mesh>
Vec4f OpenMesh::IO::ExporterT< Mesh >::colorAf ( FaceHandle _fh) const
inlineoverridevirtual

◆ colorAf() [3/3]

template<class Mesh>
Vec4f OpenMesh::IO::ExporterT< Mesh >::colorAf ( VertexHandle _vh) const
inlineoverridevirtual

◆ colorAi() [1/3]

template<class Mesh>
Vec4ui OpenMesh::IO::ExporterT< Mesh >::colorAi ( EdgeHandle _eh) const
inlineoverridevirtual

◆ colorAi() [2/3]

template<class Mesh>
Vec4ui OpenMesh::IO::ExporterT< Mesh >::colorAi ( FaceHandle _fh) const
inlineoverridevirtual

◆ colorAi() [3/3]

template<class Mesh>
Vec4ui OpenMesh::IO::ExporterT< Mesh >::colorAi ( VertexHandle _vh) const
inlineoverridevirtual

◆ colorf() [1/3]

template<class Mesh>
Vec3f OpenMesh::IO::ExporterT< Mesh >::colorf ( EdgeHandle _eh) const
inlineoverridevirtual

◆ colorf() [2/3]

template<class Mesh>
Vec3f OpenMesh::IO::ExporterT< Mesh >::colorf ( FaceHandle _fh) const
inlineoverridevirtual

◆ colorf() [3/3]

template<class Mesh>
Vec3f OpenMesh::IO::ExporterT< Mesh >::colorf ( VertexHandle _vh) const
inlineoverridevirtual

◆ colori() [1/3]

template<class Mesh>
Vec3ui OpenMesh::IO::ExporterT< Mesh >::colori ( EdgeHandle _eh) const
inlineoverridevirtual

◆ colori() [2/3]

template<class Mesh>
Vec3ui OpenMesh::IO::ExporterT< Mesh >::colori ( FaceHandle _fh) const
inlineoverridevirtual

◆ colori() [3/3]

template<class Mesh>
Vec3ui OpenMesh::IO::ExporterT< Mesh >::colori ( VertexHandle _vh) const
inlineoverridevirtual

◆ get_face_id()

template<class Mesh>
int OpenMesh::IO::ExporterT< Mesh >::get_face_id ( HalfedgeHandle _heh)
inlineoverridevirtual

◆ get_face_texcoords()

template<class Mesh>
unsigned int OpenMesh::IO::ExporterT< Mesh >::get_face_texcoords ( std::vector< Vec2f > & _hehandles) const
inlineoverridevirtual

◆ get_halfedge_id() [1/2]

template<class Mesh>
int OpenMesh::IO::ExporterT< Mesh >::get_halfedge_id ( FaceHandle _fh)
inlineoverridevirtual

◆ get_halfedge_id() [2/2]

template<class Mesh>
int OpenMesh::IO::ExporterT< Mesh >::get_halfedge_id ( VertexHandle _vh)
inlineoverridevirtual

◆ get_next_halfedge_id()

template<class Mesh>
int OpenMesh::IO::ExporterT< Mesh >::get_next_halfedge_id ( HalfedgeHandle _heh)
inlineoverridevirtual

◆ get_to_vertex_id()

template<class Mesh>
int OpenMesh::IO::ExporterT< Mesh >::get_to_vertex_id ( HalfedgeHandle _heh)
inlineoverridevirtual

◆ get_vhandles()

template<class Mesh>
unsigned int OpenMesh::IO::ExporterT< Mesh >::get_vhandles ( FaceHandle _fh,
std::vector< VertexHandle > & _vhandles ) const
inlineoverridevirtual

◆ getHeh()

template<class Mesh>
HalfedgeHandle OpenMesh::IO::ExporterT< Mesh >::getHeh ( FaceHandle _fh,
VertexHandle _vh ) const
inlineoverridevirtual

getHeh returns the HalfEdgeHandle that belongs to the face specified by _fh and has a toVertexHandle that corresponds to _vh.

Parameters
_fhFaceHandle that is used to search for the half edge handle
_vhto_vertex_handle of the searched heh
Returns
HalfEdgeHandle or invalid HalfEdgeHandle if none is found.

Implements OpenMesh::IO::BaseExporter.

◆ has_edge_colors()

template<class Mesh>
bool OpenMesh::IO::ExporterT< Mesh >::has_edge_colors ( ) const
inlineoverridevirtual

Reimplemented from OpenMesh::IO::BaseExporter.

◆ has_edge_status()

template<class Mesh>
bool OpenMesh::IO::ExporterT< Mesh >::has_edge_status ( ) const
inlineoverridevirtual

Reimplemented from OpenMesh::IO::BaseExporter.

◆ has_face_colors()

template<class Mesh>
bool OpenMesh::IO::ExporterT< Mesh >::has_face_colors ( ) const
inlineoverridevirtual

Reimplemented from OpenMesh::IO::BaseExporter.

◆ has_face_normals()

template<class Mesh>
bool OpenMesh::IO::ExporterT< Mesh >::has_face_normals ( ) const
inlineoverridevirtual

Reimplemented from OpenMesh::IO::BaseExporter.

◆ has_face_status()

template<class Mesh>
bool OpenMesh::IO::ExporterT< Mesh >::has_face_status ( ) const
inlineoverridevirtual

Reimplemented from OpenMesh::IO::BaseExporter.

◆ has_halfedge_status()

template<class Mesh>
bool OpenMesh::IO::ExporterT< Mesh >::has_halfedge_status ( ) const
inlineoverridevirtual

Reimplemented from OpenMesh::IO::BaseExporter.

◆ has_vertex_colors()

template<class Mesh>
bool OpenMesh::IO::ExporterT< Mesh >::has_vertex_colors ( ) const
inlineoverridevirtual

Reimplemented from OpenMesh::IO::BaseExporter.

◆ has_vertex_normals()

template<class Mesh>
bool OpenMesh::IO::ExporterT< Mesh >::has_vertex_normals ( ) const
inlineoverridevirtual

Reimplemented from OpenMesh::IO::BaseExporter.

◆ has_vertex_status()

template<class Mesh>
bool OpenMesh::IO::ExporterT< Mesh >::has_vertex_status ( ) const
inlineoverridevirtual

Reimplemented from OpenMesh::IO::BaseExporter.

◆ has_vertex_texcoords()

template<class Mesh>
bool OpenMesh::IO::ExporterT< Mesh >::has_vertex_texcoords ( ) const
inlineoverridevirtual

Reimplemented from OpenMesh::IO::BaseExporter.

◆ is_normal_double()

template<class Mesh>
bool OpenMesh::IO::ExporterT< Mesh >::is_normal_double ( ) const
inlineoverridevirtual

◆ is_point_double()

template<class Mesh>
bool OpenMesh::IO::ExporterT< Mesh >::is_point_double ( ) const
inlineoverridevirtual

◆ is_triangle_mesh()

template<class Mesh>
bool OpenMesh::IO::ExporterT< Mesh >::is_triangle_mesh ( ) const
inlineoverridevirtual

Reimplemented from OpenMesh::IO::BaseExporter.

◆ kernel()

template<class Mesh>
virtual const BaseKernel * OpenMesh::IO::ExporterT< Mesh >::kernel ( )
inlineoverridevirtual

Reimplemented from OpenMesh::IO::BaseExporter.

◆ n_edges()

template<class Mesh>
size_t OpenMesh::IO::ExporterT< Mesh >::n_edges ( ) const
inlineoverridevirtual

◆ n_faces()

template<class Mesh>
size_t OpenMesh::IO::ExporterT< Mesh >::n_faces ( ) const
inlineoverridevirtual

◆ n_vertices()

template<class Mesh>
size_t OpenMesh::IO::ExporterT< Mesh >::n_vertices ( ) const
inlineoverridevirtual

◆ normal() [1/2]

template<class Mesh>
Vec3f OpenMesh::IO::ExporterT< Mesh >::normal ( FaceHandle _fh) const
inlineoverridevirtual

◆ normal() [2/2]

template<class Mesh>
Vec3f OpenMesh::IO::ExporterT< Mesh >::normal ( VertexHandle _vh) const
inlineoverridevirtual

◆ normald() [1/2]

template<class Mesh>
Vec3d OpenMesh::IO::ExporterT< Mesh >::normald ( FaceHandle _fh) const
inlineoverridevirtual

◆ normald() [2/2]

template<class Mesh>
Vec3d OpenMesh::IO::ExporterT< Mesh >::normald ( VertexHandle _vh) const
inlineoverridevirtual

◆ point()

template<class Mesh>
Vec3f OpenMesh::IO::ExporterT< Mesh >::point ( VertexHandle _vh) const
inlineoverridevirtual

◆ pointd()

template<class Mesh>
Vec3d OpenMesh::IO::ExporterT< Mesh >::pointd ( VertexHandle _vh) const
inlineoverridevirtual

◆ status() [1/4]

template<class Mesh>
OpenMesh::Attributes::StatusInfo OpenMesh::IO::ExporterT< Mesh >::status ( EdgeHandle _eh) const
inlineoverridevirtual

◆ status() [2/4]

template<class Mesh>
OpenMesh::Attributes::StatusInfo OpenMesh::IO::ExporterT< Mesh >::status ( FaceHandle _fh) const
inlineoverridevirtual

◆ status() [3/4]

template<class Mesh>
OpenMesh::Attributes::StatusInfo OpenMesh::IO::ExporterT< Mesh >::status ( HalfedgeHandle _heh) const
inlineoverridevirtual

◆ status() [4/4]

template<class Mesh>
OpenMesh::Attributes::StatusInfo OpenMesh::IO::ExporterT< Mesh >::status ( VertexHandle _vh) const
inlineoverridevirtual

◆ texcoord() [1/2]

template<class Mesh>
Vec2f OpenMesh::IO::ExporterT< Mesh >::texcoord ( HalfedgeHandle _heh) const
inlineoverridevirtual

◆ texcoord() [2/2]

template<class Mesh>
Vec2f OpenMesh::IO::ExporterT< Mesh >::texcoord ( VertexHandle _vh) const
inlineoverridevirtual

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

Project OpenMesh, ©  Visual Computing Institute, RWTH Aachen. Documentation generated using doxygen .