pqServerManagerObserver.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 
5 #ifndef pqServerManagerObserver_h
6 #define pqServerManagerObserver_h
7 
8 #include "pqCoreModule.h"
9 #include "vtkType.h" // needed for vtkIdType
10 #include <QObject>
11 
12 class pqMultiView;
13 class pqServerManagerObserverInternal;
14 class vtkCommand;
15 class vtkObject;
16 class vtkPVXMLElement;
17 class vtkSMProxy;
18 class vtkSMProxyLocator;
19 
26 class PQCORE_EXPORT pqServerManagerObserver : public QObject
27 {
28  Q_OBJECT
29 
30 public:
31  pqServerManagerObserver(QObject* parent = nullptr);
32  ~pqServerManagerObserver() override;
33 
34 Q_SIGNALS:
38  void compoundProxyDefinitionRegistered(QString name);
39 
43  void compoundProxyDefinitionUnRegistered(QString name);
44 
45  // Fired when a proxy is registered.
46  void proxyRegistered(const QString& group, const QString& name, vtkSMProxy* proxy);
47 
48  // Fired when a proxy is unregistered.
49  void proxyUnRegistered(const QString& group, const QString& name, vtkSMProxy* proxy);
50 
54  void connectionCreated(vtkIdType connectionId);
55 
59  void connectionClosed(vtkIdType connectionId);
60 
64  void stateLoaded(vtkPVXMLElement* root, vtkSMProxyLocator* locator);
65 
69  void stateSaved(vtkPVXMLElement* root);
70 
71 private Q_SLOTS:
72  void proxyRegistered(
73  vtkObject* object, unsigned long e, void* clientData, void* callData, vtkCommand* command);
74  void proxyUnRegistered(vtkObject*, unsigned long, void*, void* callData, vtkCommand*);
75  void connectionCreated(vtkObject*, unsigned long, void*, void* callData);
76  void connectionClosed(vtkObject*, unsigned long, void*, void* callData);
77  void stateLoaded(vtkObject*, unsigned long, void*, void* callData);
78  void stateSaved(vtkObject*, unsigned long, void*, void* callData);
79 
80 protected:
81  pqServerManagerObserverInternal* Internal;
82 };
83 
84 #endif // pqServerManagerObserver_h
int vtkIdType
name
This is a vtkSMProxyManager observer.
#define PQCORE_EXPORT
Definition: pqCoreModule.h:15
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
is used to locate proxies referred to in state xmls while loading state files.
pqServerManagerObserverInternal * Internal
Stores the pipeline objects.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.