ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
TextureLoader.h
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 #pragma once
9 
10 #include <pcl/TextureMesh.h>
11 
12 // Forward declarations
13 class vtkTexture;
14 
15 // Include ccMaterial header for CShared typedef
16 #include <ecvMaterial.h>
17 
18 namespace PclUtils {
19 namespace renders {
20 
25 public:
32  static int LoadFromPCLMaterial(const pcl::TexMaterial& tex_mat,
33  vtkTexture* vtk_tex);
34 
41  static int LoadFromCCMaterial(ccMaterial::CShared material,
42  vtkTexture* vtk_tex);
43 };
44 
45 } // namespace renders
46 } // namespace PclUtils
ecvMaterial.h
cloudViewer::utility::filesystem::DirectoryExists
bool DirectoryExists(const std::string &directory)
Definition: FileSystem.cpp:473
cloudViewer::utility::filesystem::IsDirectory
bool IsDirectory(const std::string &directory)
Definition: FileSystem.cpp:454
FileSystem.h
cloudViewer::utility::filesystem::GetFileExtensionInLowerCase
std::string GetFileExtensionInLowerCase(const std::string &filename)
Definition: FileSystem.cpp:281
PclUtils::renders::TextureLoader
Utility class for loading textures from various sources.
Definition: TextureLoader.h:24
CVLog.h
TextureLoader.h
ccMaterial::CShared
QSharedPointer< const ccMaterial > CShared
Const + Shared type.
Definition: ecvMaterial.h:31
vtkSmartPointer
Definition: WidgetMap.h:20
PclUtils
Definition: CustomContextItem.cpp:18
cloudViewer::utility::filesystem::FileExists
bool FileExists(const std::string &filename)
Definition: FileSystem.cpp:524
cloudViewer::utility::filesystem::IsFile
bool IsFile(const std::string &filename)
Definition: FileSystem.cpp:435
ccMaterial::GetTexture
static QImage GetTexture(const QString &absoluteFilename)
Returns the texture image associated to a given name.
Definition: ecvMaterial.cpp:206
PclUtils::renders::TextureLoader::LoadFromPCLMaterial
static int LoadFromPCLMaterial(const pcl::TexMaterial &tex_mat, vtkTexture *vtk_tex)
Load texture from pcl::TexMaterial.
Definition: TextureLoader.cpp:32
cloudViewer::t::geometry::path
static const std::string path
Definition: PointCloud.cpp:59
cloudViewer::utility::filesystem::ListFilesInDirectory
bool ListFilesInDirectory(const std::string &directory, std::vector< std::string > &filenames)
Definition: FileSystem.cpp:561
cloudViewer::utility::filesystem::GetFileParentDirectory
std::string GetFileParentDirectory(const std::string &filename)
Definition: FileSystem.cpp:314
CVTools::FromQString
static std::string FromQString(const QString &qs)
Definition: CVTools.cpp:100
ccMaterial::TextureMapType
TextureMapType
Texture map types for PBR materials.
Definition: ecvMaterial.h:176
CVTools.h
CVLog::Warning
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
cloudViewer::utility::ToUpper
std::string ToUpper(const std::string &s)
Convert string to the upper case.
Definition: Helper.cpp:249
sm2cc.h
PclUtils::renders::TextureLoader::LoadFromCCMaterial
static int LoadFromCCMaterial(ccMaterial::CShared material, vtkTexture *vtk_tex)
Load texture from ccMaterial.
Definition: TextureLoader.cpp:155