ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::data::TilesTexture Class Reference

Data class for TilesTexture contains albedo, normal and roughness texture files for tiles based material. More...

#include <Dataset.h>

Inheritance diagram for cloudViewer::data::TilesTexture:
Collaboration diagram for cloudViewer::data::TilesTexture:

Public Member Functions

 TilesTexture (const std::string &data_root="")
 
std::string GetAlbedoTexturePath () const
 Returns the path to albedo color texture image. More...
 
std::string GetNormalTexturePath () const
 Returns the path to normal texture image. More...
 
std::string GetRoughnessTexturePath () const
 Returns the path to roughness texture image. More...
 
std::unordered_map< std::string, std::string > GetPathMap () const
 Returns the map of filename to path. Refer documentation page for available options. More...
 
- Public Member Functions inherited from cloudViewer::data::DownloadDataset
 DownloadDataset (const std::string &prefix, const DataDescriptor &data_descriptor, const std::string &data_root="")
 
 DownloadDataset (const std::string &prefix, const std::vector< DataDescriptor > &data_descriptors, const std::string &data_root="")
 
virtual ~DownloadDataset ()
 
- Public Member Functions inherited from cloudViewer::data::Dataset
 Dataset (const std::string &prefix, const std::string &data_root="")
 Parameterized Constructor. More...
 
virtual ~Dataset ()
 
const std::string GetDataRoot () const
 Get data root directory. The data root is set at construction time or automatically determined. More...
 
const std::string GetPrefix () const
 Get prefix for the dataset. More...
 
const std::string GetDownloadDir () const
 Get absolute path to download directory. i.e. ${data_root}/download/${prefix}. More...
 
const std::string GetExtractDir () const
 Get absolute path to extract directory. i.e. ${data_root}/extract/${prefix}. More...
 

Additional Inherited Members

- Protected Member Functions inherited from cloudViewer::data::DownloadDataset
bool HasDownloaded (const DataDescriptor &data_descriptor) const
 Check if all files are downloaded and MD5 checksums are valid. More...
 
- Protected Member Functions inherited from cloudViewer::data::Dataset
void CheckPathsExist (const std::vector< std::string > &paths) const
 Check if the paths exists after extraction. More...
 
- Protected Attributes inherited from cloudViewer::data::DownloadDataset
std::vector< DataDescriptordata_descriptors_
 
- Protected Attributes inherited from cloudViewer::data::Dataset
std::string data_root_
 CloudViewer data root. More...
 
std::string prefix_
 Dataset prefix. More...
 

Detailed Description

Data class for TilesTexture contains albedo, normal and roughness texture files for tiles based material.

Definition at line 1187 of file Dataset.h.

Constructor & Destructor Documentation

◆ TilesTexture()

cloudViewer::data::TilesTexture::TilesTexture ( const std::string &  data_root = "")

Definition at line 22 of file TilesTexture.cpp.

References cloudViewer::data::Dataset::GetExtractDir().

Member Function Documentation

◆ GetAlbedoTexturePath()

std::string cloudViewer::data::TilesTexture::GetAlbedoTexturePath ( ) const
inline

Returns the path to albedo color texture image.

Definition at line 1191 of file Dataset.h.

Referenced by cloudViewer::data::pybind_tiles_texture().

◆ GetNormalTexturePath()

std::string cloudViewer::data::TilesTexture::GetNormalTexturePath ( ) const
inline

Returns the path to normal texture image.

Definition at line 1195 of file Dataset.h.

Referenced by cloudViewer::data::pybind_tiles_texture().

◆ GetPathMap()

std::unordered_map<std::string, std::string> cloudViewer::data::TilesTexture::GetPathMap ( ) const
inline

Returns the map of filename to path. Refer documentation page for available options.

Definition at line 1204 of file Dataset.h.

Referenced by cloudViewer::data::pybind_tiles_texture().

◆ GetRoughnessTexturePath()

std::string cloudViewer::data::TilesTexture::GetRoughnessTexturePath ( ) const
inline

Returns the path to roughness texture image.

Definition at line 1199 of file Dataset.h.

Referenced by cloudViewer::data::pybind_tiles_texture().


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