vtkPVMaterialLibrary.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVMaterialLibrary.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef vtkPVMaterialLibrary_h
27 #define vtkPVMaterialLibrary_h
28 
29 #include "vtkRemotingViewsModule.h" //needed for exports
30 
31 #include "vtkObject.h"
32 #include <string> //for std::string
33 
35 {
36 public:
37  static vtkPVMaterialLibrary* New();
39 
40  void PrintSelf(ostream& os, vtkIndent indent) override;
46  void ReadRelativeFile(const char* FileName);
47 
53  vtkGetStringMacro(SearchPaths);
54 
59  vtkObject* GetMaterialLibrary();
60 
64  bool ReadFile(const char* FileName);
68  const char* WriteBuffer();
69  void WriteFile(const std::string& filename);
73  bool ReadBuffer(const char*);
74 
75 protected:
77  ~vtkPVMaterialLibrary() override;
78 
79  vtkSetStringMacro(SearchPaths);
80 
81  char* SearchPaths;
82 
84 
85 private:
87  void operator=(const vtkPVMaterialLibrary&) = delete;
88 };
89 
90 #endif
#define VTKREMOTINGVIEWS_EXPORT
manages visual material definitions
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static vtkObject * New()
void operator=(const vtkObjectBase &)