4 #ifndef pqServerManagerModel_h 5 #define pqServerManagerModel_h 55 typedef QObject Superclass;
92 void beginRemoveServer(
pqServer* server);
93 void endRemoveServer();
111 return ::pqFindItem<T>(
this, proxy);
121 return ::pqFindItem<T>(
this, id);
130 return ::pqFindItems<T>(
this);
139 return ::pqGetNumberOfItems<T>(
this);
150 return ::pqGetItemAtIndex<T>(
this, index);
160 return ::pqFindItems<T>(
this, server);
172 return ::pqFindItem<T>(
this, name);
179 QList<void*>* list,
pqServer* server =
nullptr);
223 void aboutToRemoveServer(
pqServer* server);
228 void finishedRemovingServer();
246 void preProxyRemoved(
pqProxy*);
264 void preViewAdded(
pqView* view);
265 void viewAdded(
pqView* view);
270 void preViewRemoved(
pqView*);
271 void viewRemoved(
pqView*);
314 void preConnectionRemoved(
335 virtual void onProxyRegistered(
const QString& group,
const QString& name,
vtkSMProxy* proxy);
340 virtual void onProxyUnRegistered(
const QString& group,
const QString& name,
vtkSMProxy* proxy);
345 virtual void onConnectionCreated(
vtkIdType id);
350 virtual void onConnectionClosed(
vtkIdType id);
365 void updateSettingsFromQSettings(
pqServer* server);
368 pqInternal* Internal;
377 model, ((T)0)->staticMetaObject,
reinterpret_cast<QList<void*>*
>(&list),
nullptr);
387 model, ((T)0)->staticMetaObject,
reinterpret_cast<QList<void*>*
>(&list), server);
395 return qobject_cast<T>(
410 return qobject_cast<T>(
418 return pqFindItems<T>(model).
size();
425 QList<T> items = pqFindItems<T>(model);
426 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...