MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mve::MeshBase Class Reference

Base class for meshes. More...

#include <mesh.h>

Collaboration diagram for mve::MeshBase:
Collaboration graph
[legend]

Public Types

typedef std::vector< math::Vec4fColorList
 
typedef std::vector< float > ConfidenceList
 
typedef std::shared_ptr< MeshBase const > ConstPtr
 
typedef std::shared_ptr< MeshBasePtr
 
typedef std::vector< float > ValueList
 
typedef unsigned int VertexID
 
typedef std::vector< math::Vec3fVertexList
 

Public Member Functions

virtual ~MeshBase (void)
 
virtual void clear (void)
 Clears all mesh data.
 
ColorListget_vertex_colors (void)
 Returns the vertex colors.
 
ColorList const & get_vertex_colors (void) const
 Returns the vertex colors.
 
ConfidenceListget_vertex_confidences (void)
 Returns the vertex confidences.
 
ConfidenceList const & get_vertex_confidences (void) const
 Returns the vertex confidences.
 
ValueListget_vertex_values (void)
 Returns the vertex values (generic attribute).
 
ValueList const & get_vertex_values (void) const
 Returns the vertex values (generic attribute).
 
VertexListget_vertices (void)
 Returns the mesh vertices.
 
VertexList const & get_vertices (void) const
 Returns the mesh vertices.
 
bool has_vertex_colors (void) const
 Returns true if colors and vertex amount are equal.
 
bool has_vertex_confidences (void) const
 Returns true if confidence amount and vertex amount are equal.
 
bool has_vertex_values (void) const
 Returns true if value amount and vertex amount are equal.
 

Protected Member Functions

 MeshBase (void)
 

Protected Attributes

ColorList vertex_colors
 
ConfidenceList vertex_confidences
 
ValueList vertex_values
 
VertexList vertices
 

Detailed Description

Base class for meshes.

This class essentially contains the vertex data and vertex associated data, namely colors, confidences and the generic attribute values.

Definition at line 26 of file mesh.h.

Member Typedef Documentation

◆ ColorList

typedef std::vector<math::Vec4f> mve::MeshBase::ColorList

Definition at line 34 of file mesh.h.

◆ ConfidenceList

typedef std::vector<float> mve::MeshBase::ConfidenceList

Definition at line 35 of file mesh.h.

◆ ConstPtr

typedef std::shared_ptr<MeshBase const> mve::MeshBase::ConstPtr

Definition at line 30 of file mesh.h.

◆ Ptr

typedef std::shared_ptr<MeshBase> mve::MeshBase::Ptr

Definition at line 29 of file mesh.h.

◆ ValueList

typedef std::vector<float> mve::MeshBase::ValueList

Definition at line 36 of file mesh.h.

◆ VertexID

typedef unsigned int mve::MeshBase::VertexID

Definition at line 32 of file mesh.h.

◆ VertexList

typedef std::vector<math::Vec3f> mve::MeshBase::VertexList

Definition at line 33 of file mesh.h.

Constructor & Destructor Documentation

◆ ~MeshBase()

mve::MeshBase::~MeshBase ( void  )
inlinevirtual

Definition at line 194 of file mesh.h.

◆ MeshBase()

mve::MeshBase::MeshBase ( void  )
inlineprotected

Definition at line 189 of file mesh.h.

Member Function Documentation

◆ clear()

void mve::MeshBase::clear ( void  )
inlinevirtual

Clears all mesh data.

Reimplemented in mve::TriangleMesh.

Definition at line 247 of file mesh.h.

◆ get_vertex_colors() [1/2]

MeshBase::ColorList & mve::MeshBase::get_vertex_colors ( void  )
inline

Returns the vertex colors.

Definition at line 217 of file mesh.h.

◆ get_vertex_colors() [2/2]

MeshBase::ColorList const & mve::MeshBase::get_vertex_colors ( void  ) const
inline

Returns the vertex colors.

Definition at line 211 of file mesh.h.

◆ get_vertex_confidences() [1/2]

MeshBase::ConfidenceList & mve::MeshBase::get_vertex_confidences ( void  )
inline

Returns the vertex confidences.

Definition at line 229 of file mesh.h.

◆ get_vertex_confidences() [2/2]

MeshBase::ConfidenceList const & mve::MeshBase::get_vertex_confidences ( void  ) const
inline

Returns the vertex confidences.

Definition at line 223 of file mesh.h.

◆ get_vertex_values() [1/2]

MeshBase::ValueList & mve::MeshBase::get_vertex_values ( void  )
inline

Returns the vertex values (generic attribute).

Definition at line 241 of file mesh.h.

◆ get_vertex_values() [2/2]

MeshBase::ValueList const & mve::MeshBase::get_vertex_values ( void  ) const
inline

Returns the vertex values (generic attribute).

Definition at line 235 of file mesh.h.

◆ get_vertices() [1/2]

MeshBase::VertexList & mve::MeshBase::get_vertices ( void  )
inline

Returns the mesh vertices.

Definition at line 205 of file mesh.h.

◆ get_vertices() [2/2]

MeshBase::VertexList const & mve::MeshBase::get_vertices ( void  ) const
inline

Returns the mesh vertices.

Definition at line 199 of file mesh.h.

◆ has_vertex_colors()

bool mve::MeshBase::has_vertex_colors ( void  ) const
inline

Returns true if colors and vertex amount are equal.

Definition at line 256 of file mesh.h.

◆ has_vertex_confidences()

bool mve::MeshBase::has_vertex_confidences ( void  ) const
inline

Returns true if confidence amount and vertex amount are equal.

Definition at line 263 of file mesh.h.

◆ has_vertex_values()

bool mve::MeshBase::has_vertex_values ( void  ) const
inline

Returns true if value amount and vertex amount are equal.

Definition at line 270 of file mesh.h.

Member Data Documentation

◆ vertex_colors

ColorList mve::MeshBase::vertex_colors
protected

Definition at line 76 of file mesh.h.

◆ vertex_confidences

ConfidenceList mve::MeshBase::vertex_confidences
protected

Definition at line 77 of file mesh.h.

◆ vertex_values

ValueList mve::MeshBase::vertex_values
protected

Definition at line 78 of file mesh.h.

◆ vertices

VertexList mve::MeshBase::vertices
protected

Definition at line 75 of file mesh.h.


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