pqLoadMaterialsReaction.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 pqLoadMaterialsReaction_h
5 #define pqLoadMaterialsReaction_h
6 
7 #include "pqReaction.h"
8 
17 class pqServer;
18 
20 {
21  Q_OBJECT
22  typedef pqReaction Superclass;
23 
24 public:
25  pqLoadMaterialsReaction(QAction* parent);
26  ~pqLoadMaterialsReaction() override;
27 
28  static bool loadMaterials();
29  static bool loadMaterials(const QString& dbase, pqServer* server = nullptr);
30 
31 protected:
33  void onTriggered() override { this->loadMaterials(); }
34 
35 private:
36  Q_DISABLE_COPY(pqLoadMaterialsReaction)
37 };
38 
39 #endif
#define PQAPPLICATIONCOMPONENTS_EXPORT
This is a superclass just to make it easier to collect all such reactions.
Definition: pqReaction.h:25
void onTriggered() override
Called when the action is triggered.
reaction to import an ospray material definition file
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:35