pqExtractor.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 pqExtractor_h
5 #define pqExtractor_h
6 
7 #include "pqProxy.h"
8 #include <QScopedPointer>
9 
10 class pqView;
11 
22 {
23  Q_OBJECT
24  typedef pqProxy Superclass;
25 
26 public:
27  pqExtractor(const QString& group, const QString& name, vtkSMProxy* proxy, pqServer* server,
28  QObject* parent = nullptr);
29  ~pqExtractor() override;
30 
37  pqServerManagerModelItem* producer() const;
38 
42  bool isImageExtractor() const;
43 
47  bool isDataExtractor() const;
48 
52  bool isEnabled() const;
53 
60  void toggleEnabledState(pqView* view);
61 
62 Q_SIGNALS:
64 
69  void producerAdded(pqServerManagerModelItem* producer, pqExtractor* self);
70  void producerRemoved(pqServerManagerModelItem* producer, pqExtractor* self);
72 
76  void enabledStateChanged();
77 
78 protected:
79  void initialize() override;
80 
81 private Q_SLOTS:
82  void producerChanged();
83 
84 private: // NOLINT(readability-redundant-access-specifiers)
85  Q_DISABLE_COPY(pqExtractor);
86 
87  class pqInternals;
88  QScopedPointer<pqInternals> Internals;
89 };
90 
91 #endif
pqServerManagerModelItem is a element maintained by pqServerManagerModel.
This is a PQ abstraction of a generic view module.
Definition: pqView.h:26
name
#define PQCORE_EXPORT
Definition: pqCoreModule.h:15
This class represents any registered Server Manager proxy.
Definition: pqProxy.h:28
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
virtual void initialize()
pqProxy subclass for extractors
Definition: pqExtractor.h:21
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:35