 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
10 #include <vtkSmartPointer.h>
20 class vtkRenderWindow;
30 class MaterialConverter;
60 virtual bool CanHandle(
size_t material_count,
61 bool has_pbr_textures,
62 bool has_multiple_map_kd)
const = 0;
77 virtual bool Apply(vtkLODActor* actor,
79 vtkPolyData* polydata,
80 vtkRenderer* renderer) = 0;
90 virtual bool Update(vtkActor* actor,
92 vtkPolyData* polydata,
93 vtkRenderer* renderer) = 0;
98 virtual std::string
GetName()
const = 0;
Definition: CustomContextItem.cpp:18
virtual RenderingMode GetMode() const =0
Get the rendering mode this renderer implements.
bool ValidateMaterials(const class ccMaterialSet *materials) const
Helper: Validate materials.
Definition: TextureRendererBase.cpp:36
virtual bool Apply(vtkLODActor *actor, const class ccMaterialSet *materials, vtkPolyData *polydata, vtkRenderer *renderer)=0
Apply rendering to actor.
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
virtual std::string GetName() const =0
Get renderer name for logging.
Mesh (triangle) material.
Definition: ecvMaterial.h:28
TextureRendererBase()=default
RenderingMode
Rendering mode enumeration.
Definition: TextureRendererBase.h:35
virtual bool CanHandle(size_t material_count, bool has_pbr_textures, bool has_multiple_map_kd) const =0
Check if this renderer can handle the given material.
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
virtual ~TextureRendererBase()=default
Mesh (triangle) material.
Definition: ecvMaterialSet.h:16
void ClearTextures(vtkActor *actor)
Helper: Clear all textures from actor.
Definition: TextureRendererBase.cpp:20
bool ValidateActor(vtkActor *actor) const
Helper: Validate actor.
Definition: TextureRendererBase.cpp:28
virtual bool Update(vtkActor *actor, const class ccMaterialSet *materials, vtkPolyData *polydata, vtkRenderer *renderer)=0
Update existing actor with new materials.