src
paraview-5.12
Qt
ApplicationComponents
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
19
class
PQAPPLICATIONCOMPONENTS_EXPORT
pqLoadMaterialsReaction
:
public
pqReaction
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
pqLoadMaterialsReaction
reaction to import an ospray material definition file
Definition:
pqLoadMaterialsReaction.h:19
pqReaction.h
pqServer
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition:
pqServer.h:35
pqLoadMaterialsReaction::onTriggered
void onTriggered() override
Called when the action is triggered.
Definition:
pqLoadMaterialsReaction.h:33
pqReaction
Definition:
pqReaction.h:25
Generated by
1.8.17 on Wed Mar 27 2024