 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
10 #include <pcl/TextureMesh.h>
12 #include <Eigen/Dense>
19 class vtkRenderWindow;
26 class TextureRenderManager;
49 vtkPolyData* polydata,
51 vtkRenderer* renderer);
66 const std::vector<std::vector<Eigen::Vector2f>>& tex_coordinates,
67 vtkPolyData* polydata,
69 vtkRenderer* renderer);
78 const pcl::TextureMesh& mesh,
79 vtkPolyData* polydata,
81 vtkRenderer* renderer);
88 const pcl::TextureMesh& mesh,
89 vtkPolyData* polydata,
90 vtkRenderWindow* render_window);
Utility class for applying textures to mesh actors.
Definition: MeshTextureApplier.h:34
QSharedPointer< ccMaterial > Shared
Shared type.
Definition: ecvMaterial.h:33
static void FromPCLMaterial(const PCLMaterial &inMaterial, ccMaterial::Shared &outMaterial)
Definition: sm2cc.cpp:311
virtual const ccMaterialSet * getMaterialSet() const =0
static ccPointCloud * ToPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccPointCloud.
Definition: ecvHObjectCaster.cpp:54
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
virtual ccGenericPointCloud * getAssociatedCloud() const =0
Returns the vertices cloud.
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
Definition: CustomContextItem.cpp:18
static bool PrintDebug(const char *format,...)
Same as Print, but works only in Debug mode.
Definition: CVLog.cpp:153
Texture rendering manager.
Definition: TextureRenderManager.h:32
bool Apply(vtkLODActor *actor, const ccMaterialSet *materials, vtkPolyData *polydata, vtkRenderer *renderer)
Apply rendering to actor.
Definition: TextureRenderManager.cpp:159
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
static bool ApplyPBRTextures(vtkLODActor *actor, const pcl::TextureMesh &mesh, vtkPolyData *polydata, TextureRenderManager *render_manager, vtkRenderer *renderer)
Apply PBR textures from PCLTextureMesh (deprecated)
Definition: MeshTextureApplier.cpp:250
Mesh (triangle) material.
Definition: ecvMaterial.h:28
CC to PCL cloud converter.
Definition: cc2sm.h:43
Generic mesh interface.
Definition: ecvGenericMesh.h:28
TextureMapType
Texture map types for PBR materials.
Definition: ecvMaterial.h:176
int addMaterial(ccMaterial::CShared mat, bool allowDuplicateNames=false)
Adds a material.
Definition: ecvMaterialSet.cpp:60
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
bool getVtkPolyDataWithTextures(ccGenericMesh *mesh, vtkSmartPointer< vtkPolyData > &polydata, vtkSmartPointer< vtkMatrix4x4 > &transformation, std::vector< std::vector< Eigen::Vector2f >> &tex_coordinates)
Convert ccGenericMesh to vtkPolyData with texture coordinates Reuses getPclTextureMesh logic to ensur...
Definition: cc2sm.cpp:1566
Mesh (triangle) material.
Definition: ecvMaterialSet.h:16
static bool ApplyTraditionalTextures(vtkLODActor *actor, const pcl::TextureMesh &mesh, vtkPolyData *polydata, vtkRenderWindow *render_window)
Apply textures from PCLTextureMesh to actor (traditional path)
Definition: MeshTextureApplier.cpp:294
static bool ApplyTexturesFromMaterialSet(vtkLODActor *actor, const ccMaterialSet *materials, const std::vector< std::vector< Eigen::Vector2f >> &tex_coordinates, vtkPolyData *polydata, TextureRenderManager *render_manager, vtkRenderer *renderer)
Apply textures from ccMaterialSet with texture coordinates.
Definition: MeshTextureApplier.cpp:111
static bool ApplyTexturesFromCCMesh(vtkLODActor *actor, ccGenericMesh *mesh, vtkPolyData *polydata, TextureRenderManager *render_manager, vtkRenderer *renderer)
Apply textures from ccGenericMesh (preferred method)
Definition: MeshTextureApplier.cpp:46