21 #ifndef vtkANARIMaterialLibrary_h
22 #define vtkANARIMaterialLibrary_h
25 #include "vtkRenderingAnariModule.h"
28 VTK_ABI_NAMESPACE_BEGIN
63 const double* x)
override;
a collection of materials for ANARI-based rendering
virtual void AddMaterial(const std::string &nickname, const std::string &implname)
Add a new material to the library or replace an existing one.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void AddShaderVariable(const std::string &nickname, const std::string &variablename, int numVars, const double *x)
Add a shader variable to a material.
const char * GetFamilyName() const override
a renderer-agnostic collection of materials for VTK apps to draw from
a simple class to control print indentation
virtual bool ReadTextureFileOrData(const std::string &texFilenameOrData, bool fromfile, const std::string &parentDir, vtkTexture *textr, std::string &textureName, std::string &textureFilename)
Load texture from file or inline data.
virtual const std::map< std::string, ParametersMap > & GetParametersDictionary() const
handles properties associated with a texture map
static vtkRenderMaterialLibrary * New()
virtual void AddTexture(const std::string &nickname, const std::string &varname, vtkTexture *tex, const std::string &texturename="unnamedTexture", const std::string &filename="")
Add a texture to a material.
const char * GetAcceptedFamilyName() const override