32 #ifndef pqServerManagerModel_h 33 #define pqServerManagerModel_h 83 typedef QObject Superclass;
120 void beginRemoveServer(
pqServer* server);
121 void endRemoveServer();
139 return ::pqFindItem<T>(
this, proxy);
149 return ::pqFindItem<T>(
this, id);
158 return ::pqFindItems<T>(
this);
167 return ::pqGetNumberOfItems<T>(
this);
178 return ::pqGetItemAtIndex<T>(
this, index);
188 return ::pqFindItems<T>(
this, server);
200 return ::pqFindItem<T>(
this, name);
207 QList<void*>* list,
pqServer* server =
nullptr);
251 void aboutToRemoveServer(
pqServer* server);
256 void finishedRemovingServer();
274 void preProxyRemoved(
pqProxy*);
292 void preViewAdded(
pqView* view);
293 void viewAdded(
pqView* view);
298 void preViewRemoved(
pqView*);
299 void viewRemoved(
pqView*);
342 void preConnectionRemoved(
363 virtual void onProxyRegistered(
const QString& group,
const QString& name,
vtkSMProxy* proxy);
368 virtual void onProxyUnRegistered(
const QString& group,
const QString& name,
vtkSMProxy* proxy);
373 virtual void onConnectionCreated(
vtkIdType id);
378 virtual void onConnectionClosed(
vtkIdType id);
393 void updateSettingsFromQSettings(
pqServer* server);
396 pqInternal* Internal;
405 model, ((T)0)->staticMetaObject,
reinterpret_cast<QList<void*>*
>(&list),
nullptr);
415 model, ((T)0)->staticMetaObject,
reinterpret_cast<QList<void*>*
>(&list), server);
423 return qobject_cast<T>(
438 return qobject_cast<T>(
446 return pqFindItems<T>(model).
size();
453 QList<T> items = pqFindItems<T>(model);
454 if (index < items.size())
QList< T > pqFindItems(const pqServerManagerModel *model)
static void findItemsHelper(const pqServerManagerModel *model, const QMetaObject &mo, QList< void *> *list, pqServer *server=nullptr)
Internal method.
vtkSMSession is the default ParaView session.
This is PQ representation for a single representation.
pqServerManagerModelItem is a element maintained by pqServerManagerModel.
This is a PQ abstraction of a generic view module.
T findItem(const QString &name) const
Returns an item with the given name.
T findItem(vtkTypeUInt32 id) const
Given the global id for a proxy, locates a pqServerManagerModelItem subclass for the proxy...
This is a vtkSMProxyManager observer.
T pqGetItemAtIndex(const pqServerManagerModel *model, int index)
T pqFindItem(const pqServerManagerModel *model, const QString &name)
QList< T > findItems() const
Returns a list of pqServerManagerModelItem of the given type.
T findItem(vtkSMProxy *proxy) const
Given a proxy, locates a pqServerManagerModelItem subclass for the given proxy.
This class represents any registered Server Manager proxy.
pqServerManagerModel is the model for the Server Manager.
proxy for a VTK object(s) on a server
int getNumberOfItems() const
Returns the number of items of the given type.
is used to locate proxies referred to in state xmls while loading state files.
static pqServerManagerModelItem * findItemHelper(const pqServerManagerModel *model, const QMetaObject &mo, vtkSMProxy *proxy)
Internal method.
int pqGetNumberOfItems(const pqServerManagerModel *model)
PQ representation for a vtkSMProxy that can be involved in a pipeline.
vtkSession defines a session i.e.
T getItemAtIndex(int index) const
Returns the item of the given type and the given index.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
QList< T > findItems(pqServer *server) const
Same as findItems<T>() except that this returns only those items that are on the indicated server...
pqServerResource encapsulates a resource in ParaView.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...