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();
53 vtkOSPRayMaterialLibrary* getMaterialLibrary()
const;
61 PropertyValue = Qt::UserRole + 1
65 void updateCurrentMaterial(
const std::string&);
66 void updateCurrentMaterialWithIndex(
int index);
71 void removeMaterial();
72 void attachMaterial();
77 void propertyChanged(
const QModelIndex& topLeft,
const QModelIndex& bottomRight);
87 std::string generateValidMaterialName(
const std::string&
name);
92 void showEvent(QShowEvent* event)
override;
97 pqInternals* Internals;
98 friend class pqInternals;
100 bool HasWarnedUser =
true;
pqMaterialEditor is a widget that can be used to edit the OSPRay materials.
ExtendedItemDataRole
Strong type extension of the existing Qt::ItemDataRole.
proxy for a VTK object(s) on a server