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);
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();
A Qt based model to represent the vtkSMLinks in the server manager.
pqServerManagerModelItem is a element maintained by pqServerManagerModel.
ItemType
type of link (camera, proxy or property)
Abstract base class for proxy/property links.
This class represents any registered Server Manager proxy.
proxy for a VTK object(s) on a server
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...
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vt...