4 #ifndef pqMaterialEditor_h
5 #define pqMaterialEditor_h
7 #include "pqApplicationComponentsModule.h"
13 class vtkOSPRayMaterialLibrary;
29 typedef QWidget Superclass;
32 pqMaterialEditor(QWidget* parent =
nullptr, QDockWidget* dockWidget =
nullptr);
38 void updateMaterialList();
43 QString currentMaterialName();
48 std::vector<std::string> availableParameters();
56 PropertyValue = Qt::UserRole + 1
60 void updateCurrentMaterial(
const std::string&);
61 void updateCurrentMaterialWithIndex(
int index);
66 void removeMaterial();
67 void attachMaterial();
72 void propertyChanged(
const QModelIndex& topLeft,
const QModelIndex& bottomRight);
82 std::string generateValidMaterialName(
const std::string& name);
87 void showEvent(QShowEvent* event)
override;
92 pqInternals* Internals;
93 friend class pqInternals;
95 bool HasWarnedUser =
true;