 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
17 class vtkTextureUnitManager;
18 class vtkRenderWindow;
38 bool has_pbr_textures,
39 bool has_multiple_map_kd)
const override;
43 bool Apply(vtkLODActor* actor,
45 vtkPolyData* polydata,
46 vtkRenderer* renderer)
override;
48 bool Update(vtkActor* actor,
50 vtkPolyData* polydata,
51 vtkRenderer* renderer)
override;
53 std::string
GetName()
const override;
61 float intensity_scale = 1.0f)
const;
72 ::vtkTextureUnitManager* GetTextureUnitManager(
73 ::vtkRenderWindow* render_window)
const;
bool ApplyMaterial(ccMaterial::CShared material, vtkActor *actor, float intensity_scale=1.0f) const
Apply material properties to actor.
Definition: MultiTextureRenderer.cpp:582
Type g
Definition: ecvColorTypes.h:150
bool Update(vtkActor *actor, const class ccMaterialSet *materials, vtkPolyData *polydata, vtkRenderer *renderer) override
Update existing actor with new materials.
Definition: MultiTextureRenderer.cpp:428
bool DirectoryExists(const std::string &directory)
Definition: FileSystem.cpp:473
bool IsDirectory(const std::string &directory)
Definition: FileSystem.cpp:454
~MultiTextureRenderer() override=default
std::string GetFileExtensionInLowerCase(const std::string &filename)
Definition: FileSystem.cpp:281
RenderingMode GetMode() const override
Get the rendering mode this renderer implements.
Definition: MultiTextureRenderer.cpp:63
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
QSharedPointer< const ccMaterial > CShared
Const + Shared type.
Definition: ecvMaterial.h:31
Definition: WidgetMap.h:20
Definition: CustomContextItem.cpp:18
static bool PrintDebug(const char *format,...)
Same as Print, but works only in Debug mode.
Definition: CVLog.cpp:153
bool ValidateMaterials(const class ccMaterialSet *materials) const
Helper: Validate materials.
Definition: TextureRendererBase.cpp:36
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
bool FileExists(const std::string &filename)
Definition: FileSystem.cpp:524
bool IsFile(const std::string &filename)
Definition: FileSystem.cpp:435
static QImage GetTexture(const QString &absoluteFilename)
Returns the texture image associated to a given name.
Definition: ecvMaterial.cpp:206
static const std::string path
Definition: PointCloud.cpp:59
Type r
Definition: ecvColorTypes.h:150
bool Apply(vtkLODActor *actor, const class ccMaterialSet *materials, vtkPolyData *polydata, vtkRenderer *renderer) override
Apply rendering to actor.
Definition: MultiTextureRenderer.cpp:67
bool ListFilesInDirectory(const std::string &directory, std::vector< std::string > &filenames)
Definition: FileSystem.cpp:561
std::string GetFileParentDirectory(const std::string &filename)
Definition: FileSystem.cpp:314
RenderingMode
Rendering mode enumeration.
Definition: TextureRendererBase.h:35
TextureMapType
Texture map types for PBR materials.
Definition: ecvMaterial.h:176
Type a
Definition: ecvColorTypes.h:150
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
Base class for all texture renderers.
Definition: TextureRendererBase.h:48
Mesh (triangle) material.
Definition: ecvMaterialSet.h:16
std::string ToUpper(const std::string &s)
Convert string to the upper case.
Definition: Helper.cpp:249
void ClearTextures(vtkActor *actor)
Helper: Clear all textures from actor.
Definition: TextureRendererBase.cpp:20
bool CanHandle(size_t material_count, bool has_pbr_textures, bool has_multiple_map_kd) const override
Check if this renderer can handle the given material.
Definition: MultiTextureRenderer.cpp:51
Multi-texture renderer.
Definition: MultiTextureRenderer.h:32
Type b
Definition: ecvColorTypes.h:150
bool ValidateActor(vtkActor *actor) const
Helper: Validate actor.
Definition: TextureRendererBase.cpp:28
std::string GetName() const override
Get renderer name for logging.
Definition: MultiTextureRenderer.cpp:446
RGBA color structure.
Definition: ecvColorTypes.h:145