28 #ifndef vtkOSPRayMaterialLibrary_h 29 #define vtkOSPRayMaterialLibrary_h 31 #include "vtkRenderingOSPRayModule.h" 34 #include <initializer_list> 38 class vtkOSPRayMaterialLibraryInternals;
58 bool ReadFile(
const char*FileName);
63 const char *WriteBuffer();
70 bool ReadBuffer(
const char*Buffer);
75 std::set<std::string> GetMaterialNames();
110 void AddShaderVariable(
const std::string& nickname,
112 int numVars,
const double *x);
115 const std::initializer_list<double>&
data)
117 this->AddShaderVariable(nickname, variablename,
118 static_cast<int>(data.size()), data.begin());
127 bool InternalParse(
const char *
name,
bool IsFile);
128 bool InternalParseJSON(
const char *name,
bool IsFile, std::istream *doc);
129 bool InternalParseMTL(
const char *name,
bool IsFile, std::istream *doc);
135 vtkOSPRayMaterialLibraryInternals *Internal;
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a collection of materials for vtk apps to draw from
a simple class to control print indentation
handles properties associated with a texture map
void AddShaderVariable(const std::string &nickname, const std::string &variablename, const std::initializer_list< double > &data)
Add control variable Adds a new control variable.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...