ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
AutoIO.cpp File Reference
#include "AutoIO.h"
#include <CVTools.h>
#include <FileSystem.h>
#include <Logging.h>
#include <ProgressReporters.h>
#include <ecvHObject.h>
#include <ecvHObjectCaster.h>
#include <ecvMesh.h>
#include <ecvPointCloud.h>
#include <FileIOFilter.h>
#include <unordered_map>
#include <QFileInfo>
Include dependency graph for AutoIO.cpp:

Go to the source code of this file.

Namespaces

 cloudViewer
 Generic file read and write utility for python interface.
 
 cloudViewer::io
 

Functions

bool cloudViewer::io::AutoReadEntity (const std::string &filename, ccHObject &entity, const ReadPointCloudOption &params)
 
bool cloudViewer::io::AutoWriteEntity (const std::string &filename, const ccHObject &entity, const WritePointCloudOption &params)
 
bool cloudViewer::io::AutoReadMesh (const std::string &filename, ccMesh &mesh, const ReadTriangleMeshOptions &params={})
 
bool cloudViewer::io::AutoWriteMesh (const std::string &filename, const ccMesh &mesh, bool write_ascii=false, bool compressed=false, bool write_vertex_normals=true, bool write_vertex_colors=true, bool write_triangle_uvs=true, bool print_progress=false)
 
std::shared_ptr< ccHObjectcloudViewer::io::CreateEntityFromFile (const std::string &filename, const std::string &format="auto", bool print_progress=false)
 
bool cloudViewer::io::ReadEntity (const std::string &filename, ccHObject &obj, const std::string &format="auto", bool print_progress=false)
 
bool cloudViewer::io::WriteEntity (const std::string &filename, const ccHObject &obj, bool write_ascii=false, bool compressed=false, bool print_progress=false)
 

Variables

static const std::unordered_map< std::string, std::function< bool(const std::string &, ccHObject &, const ReadPointCloudOption &)> > cloudViewer::io::file_extension_to_entity_read_function
 
static const std::unordered_map< std::string, std::function< bool(const std::string &, const ccHObject &, const WritePointCloudOption &)> > cloudViewer::io::file_extension_to_entity_write_function