Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Member Functions | Public Attributes
pcl::MTLReader Class Reference

#include <pcl/io/obj_io.h>

Public Member Functions

 MTLReader ()
 empty constructor More...
 
virtual ~MTLReader ()
 empty destructor More...
 
int read (const std::string &filename)
 Read a MTL file given its full path. More...
 
int read (const std::string &obj_file_name, const std::string &mtl_file_name)
 Read a MTL file given an OBJ file full path and the MTL file name. More...
 
std::vector< pcl::TexMaterial >::const_iterator getMaterial (const std::string &material_name) const
 

Public Attributes

std::vector< pcl::TexMaterialmaterials_
 materials array More...
 

Detailed Description

Definition at line 46 of file obj_io.h.

Constructor & Destructor Documentation

pcl::MTLReader::MTLReader ( )

empty constructor

virtual pcl::MTLReader::~MTLReader ( )
inlinevirtual

empty destructor

Definition at line 53 of file obj_io.h.

References pcl::read().

Member Function Documentation

std::vector<pcl::TexMaterial>::const_iterator pcl::MTLReader::getMaterial ( const std::string &  material_name) const
int pcl::MTLReader::read ( const std::string &  filename)

Read a MTL file given its full path.

Parameters
[in]filenamefull path to MTL file
Returns
0 on success < 0 else.
int pcl::MTLReader::read ( const std::string &  obj_file_name,
const std::string &  mtl_file_name 
)

Read a MTL file given an OBJ file full path and the MTL file name.

Parameters
[in]obj_file_namefull path to OBJ file
[in]mtl_file_nameMTL file name
Returns
0 on success < 0 else.

Member Data Documentation

std::vector<pcl::TexMaterial> pcl::MTLReader::materials_

materials array

Definition at line 74 of file obj_io.h.


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