33 #ifndef _pqLinksModel_h 34 #define _pqLinksModel_h 36 #include "pqCoreModule.h" 37 #include <QAbstractItemModel> 59 typedef QAbstractTableModel Superclass;
89 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
93 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
97 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
101 QVariant headerData(
int section, Qt::Orientation orient,
int role = Qt::DisplayRole)
const;
107 ItemType getLinkType(
const QModelIndex& idx)
const;
111 vtkSMLink* getLink(
const QModelIndex& idx)
const;
115 QModelIndex findLink(
vtkSMLink* link)
const;
121 int FindLinksFromProxy(
vtkSMProxy* inputProxy,
int direction, vtkCollection* links)
const;
126 vtkSMProxy* getProxy1(
const QModelIndex& idx)
const;
130 vtkSMProxy* getProxy2(
const QModelIndex& idx)
const;
135 QString getProperty1(
const QModelIndex& idx)
const;
139 QString getProperty2(
const QModelIndex& idx)
const;
144 QString getLinkName(
const QModelIndex& idx)
const;
148 vtkSMLink* getLink(
const QString& name)
const;
164 bool hasInteractiveViewLink(
const QString& name);
174 void addPropertyLink(
const QString& name,
vtkSMProxy* proxy1,
const QString& prop1,
185 void removeLink(
const QModelIndex& idx);
189 void removeLink(
const QString& name);
208 void linkAdded(
int linkType);
213 void linkRemoved(
const QString& name);
234 void createInteractiveViewLink(
const QString& name,
vtkSMProxy* displayView,
235 vtkSMProxy* linkedView,
double xPos = 0.375,
double yPos = 0.375,
double xSize = 0.25,
236 double ySize = 0.25);
241 void emitLinkRemoved(
const QString& name);
245 vtkSMProxy* getProxyFromIndex(
const QModelIndex& idx,
int dir)
const;
246 QString getPropertyFromIndex(
const QModelIndex& idx,
int dir)
const;
249 pqInternal* Internal;
260 QString name()
const;
273 pqInternal* Internal;
275 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, wich are ViewLink all...
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...