21 #ifndef vtkOSPRayMaterialLibrary_h
22 #define vtkOSPRayMaterialLibrary_h
27 #include "vtkRenderingRayTracingModule.h"
29 VTK_ABI_NAMESPACE_BEGIN
63 const double* x)
override;
64 using Superclass::AddShaderVariable;
96 bool InternalParseJSON(const
char* filename,
bool fromfile,
std::istream* doc) override;
102 bool ReadTextureFileOrData(const
std::
string& texFilenameOrData,
bool fromfile,
104 std::
string& textureFilename) override;
108 const
char* GetFamilyName()
const override {
return "OSPRay"; }
116 VTK_ABI_NAMESPACE_END
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.
a collection of materials for OSPRay-based rendering
const char * GetAcceptedFamilyName() const override
a renderer-agnostic collection of materials for VTK apps to draw from
a simple class to control print indentation
virtual const TextureInfo * GetTextureInfo(const std::string &nickname, const std::string &varname) const
Get texture information for a material variable.
handles properties associated with a texture map
static vtkRenderMaterialLibrary * New()
std::map< std::string, ParameterType > ParametersMap
virtual std::vector< double > GetDoubleShaderVariable(const std::string &nickname, const std::string &varname) const
Get the value of a double shader variable for a material.
#define VTK_DEPRECATED_IN_9_7_0(reason)
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.