pqRepresentation.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 pqRepresentation_h
5 #define pqRepresentation_h
6 
7 #include "pqProxy.h"
8 #include <QPair>
9 
10 class pqView;
11 class pqServer;
12 class vtkSMViewProxy;
13 
20 {
21  Q_OBJECT
22 public:
23  // Constructor.
24  // \c group :- smgroup in which the proxy has been registered.
25  // \c name :- smname as which the proxy has been registered.
26  // \c repr :- the representation proxy.
27  // \c server:- server on which the proxy is created.
28  // \c parent:- QObject parent.
29  pqRepresentation(const QString& group, const QString& name, vtkSMProxy* repr, pqServer* server,
30  QObject* parent = nullptr);
31  ~pqRepresentation() override;
32 
39  virtual bool isVisible() const;
40 
46  virtual void setVisible(bool visible);
47 
51  pqView* getView() const;
52 
57  vtkSMViewProxy* getViewProxy() const;
58 
59 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
60 
66  void renderView(bool force);
67 
71  void renderViewEventually() { this->renderView(false); }
72 
73 Q_SIGNALS:
80  void visibilityChanged(bool visible);
81 
85  void updated();
86 protected Q_SLOTS:
90  virtual void onVisibilityChanged();
91 
92 protected: // NOLINT(readability-redundant-access-specifiers)
93  friend class pqView;
94 
99  virtual void setView(pqView*);
100 
101 private:
102  class pqInternal;
103  pqInternal* Internal;
104 };
105 
106 #endif
void renderViewEventually()
Simply calls renderView(false);.
Superclass for all view proxies.
This is PQ representation for a single representation.
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
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Definition: pqServer.h:35