ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
WoodFloorTexture.cpp
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// - CloudViewer: www.cloudViewer.org -
3
// ----------------------------------------------------------------------------
4
// Copyright (c) 2018-2024 www.cloudViewer.org
5
// SPDX-License-Identifier: MIT
6
// ----------------------------------------------------------------------------
7
8
#include <
Logging.h
>
9
10
#include <string>
11
#include <vector>
12
13
#include "
cloudViewer/data/Dataset.h
"
14
15
namespace
cloudViewer
{
16
namespace
data {
17
18
const
static
DataDescriptor
data_descriptor
= {
19
CloudViewerDownloadsPrefix
() +
"20220301-data/WoodFloorTexture.zip"
,
20
"f11b3e50208095e87340049b9ac3c319"
};
21
22
WoodFloorTexture::WoodFloorTexture
(
const
std::string& data_root)
23
:
DownloadDataset
(
"WoodFloorTexture"
,
data_descriptor
, data_root) {
24
const
std::string extract_dir =
GetExtractDir
();
25
map_filename_to_path_ = {
26
{
"albedo"
, extract_dir +
"/WoodFloor050_Color.jpg"
},
27
{
"normal"
, extract_dir +
"/WoodFloor050_NormalDX.jpg"
},
28
{
"roughness"
, extract_dir +
"/WoodFloor050_Roughness.jpg"
}};
29
}
30
31
}
// namespace data
32
}
// namespace cloudViewer
Dataset.h
cloudViewer::data::Dataset::GetExtractDir
const std::string GetExtractDir() const
Get absolute path to extract directory. i.e. ${data_root}/extract/${prefix}.
Definition:
Dataset.h:94
cloudViewer::data::DownloadDataset
Dataset class with one or more downloaded file.
Definition:
Dataset.h:152
cloudViewer::data::WoodFloorTexture::WoodFloorTexture
WoodFloorTexture(const std::string &data_root="")
Definition:
WoodFloorTexture.cpp:22
Logging.h
cloudViewer::data::CloudViewerDownloadsPrefix
std::string CloudViewerDownloadsPrefix()
Definition:
Dataset.cpp:49
cloudViewer::data::data_descriptor
static const DataDescriptor data_descriptor
Definition:
ArmadilloMesh.cpp:18
cloudViewer
Generic file read and write utility for python interface.
Definition:
AutoSegmentationTools.h:16
cloudViewer::data::DataDescriptor
Infomation about a file to be downloaded.
Definition:
Dataset.h:111
libs
cloudViewer
data
dataset
WoodFloorTexture.cpp
Generated on Wed Jan 28 2026 09:00:54 for ACloudViewer by
1.9.1