Go to the documentation of this file.
8 #include "pqCoreModule.h"
9 #include <QAbstractItemModel>
31 typedef QAbstractTableModel Superclass;
61 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
65 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
69 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
74 int section, Qt::Orientation orient,
int role = Qt::DisplayRole)
const override;
80 ItemType getLinkType(
const QModelIndex& idx)
const;
84 vtkSMLink* getLink(
const QModelIndex& idx)
const;
88 QModelIndex findLink(
vtkSMLink* link)
const;
99 vtkSMProxy* getProxy1(
const QModelIndex& idx)
const;
103 vtkSMProxy* getProxy2(
const QModelIndex& idx)
const;
108 QString getProperty1(
const QModelIndex& idx)
const;
112 QString getProperty2(
const QModelIndex& idx)
const;
117 QString getLinkName(
const QModelIndex& idx)
const;
121 vtkSMLink* getLink(
const QString& name)
const;
142 bool hasInteractiveViewLink(
const QString& name);
152 bool hasCameraWidgetViewLink(
const QString& name);
162 void addPropertyLink(
const QString& name,
vtkSMProxy* proxy1,
const QString& prop1,
168 void addSelectionLink(
174 void removeLink(
const QModelIndex& idx);
178 void removeLink(
const QString& name);
197 void linkAdded(
int linkType);
202 void linkRemoved(
const QString& name);
223 void createInteractiveViewLink(
const QString& name,
vtkSMProxy* displayView,
224 vtkSMProxy* linkedView,
double xPos = 0.375,
double yPos = 0.375,
double xSize = 0.25,
225 double ySize = 0.25);
230 void createCameraWidgetViewLink(
236 void emitLinkRemoved(
const QString& name);
239 ItemType getLinkType(
vtkSMLink* link)
const;
240 vtkSMProxy* getProxyFromIndex(
const QModelIndex& idx,
int dir)
const;
241 QString getPropertyFromIndex(
const QModelIndex& idx,
int dir)
const;
244 pqInternal* Internal;
255 QString
name()
const;
268 pqInternal* Internal;
270 void linkUndoStacks();
pqLinksModelObject(QString name, pqLinksModel *p, pqServer *)
A Qt based model to represent the vtkSMLinks in the server manager.
proxy for a VTK object(s) on a server
ItemType
type of link (camera, proxy or property)
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...
Abstract base class for proxy/property links.
pqServerManagerModelItem is a element maintained by pqServerManagerModel.
This class represents any registered Server Manager proxy.
is used to locate proxies referred to in state xmls while loading state files.
pqInteractiveViewLink is uaed by pqLinksModel to create interactive view links, which are ViewLink al...
~pqLinksModelObject() override