pqNewMaterialDialog.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqNewMaterialDialog_h
5 #define pqNewMaterialDialog_h
6 
8 #include "pqDialog.h"
9 
10 class vtkOSPRayMaterialLibrary;
11 
17 {
18  Q_OBJECT
19  typedef pqDialog Superclass;
20 
21 public:
22  pqNewMaterialDialog(QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
23  ~pqNewMaterialDialog() override;
24 
29  void setMaterialLibrary(vtkOSPRayMaterialLibrary* lib);
33  const QString& name() { return this->Name; }
37  const QString& type() { return this->Type; }
38 
39 public Q_SLOTS:
45  void accept() override;
46 
47 protected:
48  vtkOSPRayMaterialLibrary* MaterialLibrary;
49 
50  QString Name;
51  QString Type;
52 
53 private:
54  Q_DISABLE_COPY(pqNewMaterialDialog)
55  class pqInternals;
56  pqInternals* Internals;
57  friend class pqInternals;
58 };
59 
60 #endif
pqNewMaterialDialog is a dialog window that is used to create a new material in the material editor w...
void accept() override
const QString & type()
Return the type of the material.
#define PQAPPLICATIONCOMPONENTS_EXPORT
const QString & name()
Return the name of the material.
This is a QDialog subclass that is aware of the undo-redo sub-system.
Definition: pqDialog.h:25
vtkOSPRayMaterialLibrary * MaterialLibrary