33 #ifndef _pqLinksModel_h 34 #define _pqLinksModel_h 37 #include <QAbstractItemModel> 59 typedef QAbstractTableModel Superclass;
89 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
93 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
97 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const override;
102 int section, Qt::Orientation orient,
int role = Qt::DisplayRole)
const override;
108 ItemType getLinkType(
const QModelIndex& idx)
const;
112 vtkSMLink* getLink(
const QModelIndex& idx)
const;
116 QModelIndex findLink(
vtkSMLink* link)
const;
127 vtkSMProxy* getProxy1(
const QModelIndex& idx)
const;
131 vtkSMProxy* getProxy2(
const QModelIndex& idx)
const;
136 QString getProperty1(
const QModelIndex& idx)
const;
140 QString getProperty2(
const QModelIndex& idx)
const;
145 QString getLinkName(
const QModelIndex& idx)
const;
149 vtkSMLink* getLink(
const QString& name)
const;
165 bool hasInteractiveViewLink(
const QString& name);
175 void addPropertyLink(
const QString& name,
vtkSMProxy* proxy1,
const QString& prop1,
181 void addSelectionLink(
187 void removeLink(
const QModelIndex& idx);
191 void removeLink(
const QString& name);
210 void linkAdded(
int linkType);
215 void linkRemoved(
const QString& name);
236 void createInteractiveViewLink(
const QString& name,
vtkSMProxy* displayView,
237 vtkSMProxy* linkedView,
double xPos = 0.375,
double yPos = 0.375,
double xSize = 0.25,
238 double ySize = 0.25);
243 void emitLinkRemoved(
const QString& name);
247 vtkSMProxy* getProxyFromIndex(
const QModelIndex& idx,
int dir)
const;
248 QString getPropertyFromIndex(
const QModelIndex& idx,
int dir)
const;
251 pqInternal* Internal;
262 QString name()
const;
275 pqInternal* Internal;
277 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...