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
Utility class for loading textures from various sources.
Definition: TextureLoader.h:24
static int LoadFromPCLMaterial(const pcl::TexMaterial &tex_mat, vtkTexture *vtk_tex)
Load texture from pcl::TexMaterial.
static int LoadFromCCMaterial(ccMaterial::CShared material, vtkTexture *vtk_tex)
Load texture from ccMaterial.
QSharedPointer< const ccMaterial > CShared
Const + Shared type.
Definition: ecvMaterial.h:31