PQ representation for a vtkSMProxy that can be involved in a pipeline. More...
#include <pqPipelineSource.h>
Signals | |
void | connectionAdded (pqPipelineSource *source, pqPipelineSource *consumer, int srcOutputPort) |
fired when a connection is created between two pqPipelineSources. More... | |
void | preConnectionAdded (pqPipelineSource *source, pqPipelineSource *consumer, int srcOutputPort) |
void | connectionRemoved (pqPipelineSource *source, pqPipelineSource *consumer, int srcOutputPort) |
fired when a connection is broken between two pqPipelineSources. More... | |
void | preConnectionRemoved (pqPipelineSource *source, pqPipelineSource *consumer, int srcOutputPort) |
void | representationAdded (pqPipelineSource *source, pqDataRepresentation *repr, int srcOutputPort) |
fired when a representation is added. More... | |
void | representationRemoved (pqPipelineSource *source, pqDataRepresentation *repr, int srcOutputPort) |
fired when a representation is removed. More... | |
void | visibilityChanged (pqPipelineSource *source, pqDataRepresentation *repr) |
Fired when the visbility of a representation for the source changes. More... | |
void | dataUpdated (pqPipelineSource *source) |
Fired right after the underlying algorithm updates (executes). More... | |
void | selectionChanged (pqOutputPort *port) |
Fired when the selection on a port has changed. More... | |
Signals inherited from pqProxy | |
void | nameChanged (pqServerManagerModelItem *) |
Fired when the name of the proxy is changed. More... | |
void | modifiedStateChanged (pqServerManagerModelItem *) |
Fired when the modified status changes for the proxy. More... | |
Public Member Functions | |
pqPipelineSource (const QString &name, vtkSMProxy *proxy, pqServer *server, QObject *parent=nullptr) | |
~pqPipelineSource () override | |
int | getNumberOfOutputPorts () const |
A source may have multiple output ports. More... | |
pqOutputPort * | getOutputPort (int outputport) const |
Returns the pqOutputPort for the given output port. More... | |
pqOutputPort * | getOutputPort (const QString &portName) const |
Returns the pqOutputPort given the name of the port. More... | |
QList< pqOutputPort * > | getOutputPorts () const |
Returns all the output ports. More... | |
int | getNumberOfConsumers (int outputport) const |
Returns the number of consumers connected to the given output port. More... | |
int | getNumberOfConsumers () const |
Get the number of consumers connected to output port 0. More... | |
pqPipelineSource * | getConsumer (int outputport, int index) const |
Get the consumer at a particulat index on a given output port. More... | |
pqPipelineSource * | getConsumer (int index) const |
Get consumer at a particular index on output port 0. More... | |
QList< pqPipelineSource * > | getAllConsumers () const |
Returns a list of consumers for all output ports. More... | |
QList< pqDataRepresentation * > | getRepresentations (int outputport, pqView *view) const |
Returns a list of representations for this source in the given view. More... | |
QList< pqDataRepresentation * > | getRepresentations (pqView *view) const |
pqDataRepresentation * | getRepresentation (int outputport, pqView *view) const |
Returns the first representation for this source in the given view. More... | |
pqDataRepresentation * | getRepresentation (pqView *view) const |
QList< pqView * > | getViews () const |
Returns a list of render modules in which this source has representations added (the representations may not be visible). More... | |
void | renderAllViews (bool force=false) |
This method updates all render modules to which all representations for this source belong, if force is true, it for an immediate render otherwise render on idle. More... | |
void | updatePipeline () |
Update the pipeline with the current time. More... | |
vtkSMSourceProxy * | getSourceProxy () |
Return the vtkSMSourceProxy instance corresponding to this pqPipelineSource. More... | |
Public Member Functions inherited from pqProxy | |
pqProxy (const QString &group, const QString &name, vtkSMProxy *proxy, pqServer *server, QObject *parent=nullptr) | |
~pqProxy () override | |
pqServer * | getServer () const |
Get the server on which this proxy exists. More... | |
void | rename (const QString &newname) |
This is a convenience method. More... | |
const QString & | getSMName () |
Get the name with which this proxy is registered on the server manager. More... | |
const QString & | getSMGroup () |
vtkSMProxy * | getProxy () const |
Get the vtkSMProxy this object stands for. More... | |
ModifiedState | modifiedState () const |
Gets whether or not the source has been modified. More... | |
void | setModifiedState (ModifiedState modified) |
Sets whether or not the source has been modified. More... | |
vtkPVXMLElement * | getHints () const |
Returns the hints for this proxy, if any. More... | |
QList< vtkSMProxy * > | getHelperProxies () const |
Returns a list of all helper proxies. More... | |
QList< vtkSMProxy * > | getHelperProxies (const QString &key) const |
Returns a list of all the helper proxies added with a given key. More... | |
QList< QString > | getHelperKeys () const |
Returns the keys for helper proxies. More... | |
virtual void | addHelperProxy (const QString &key, vtkSMProxy *) |
Concept of helper proxies: A pqProxy is created for every important vtkSMProxy registered. More... | |
void | removeHelperProxy (const QString &key, vtkSMProxy *) |
void | updateHelperProxies () const |
Updates the internal datastructures using the proxies currently registered under the group that would be used for helper proxies. More... | |
vtkSMSessionProxyManager * | proxyManager () const |
Returns the proxy manager by calling this->getProxy()->GetProxyManager();. More... | |
bool | userModifiedSMName () |
Return whether or not the user has modified the GUI name of the source. More... | |
Public Member Functions inherited from pqServerManagerModelItem | |
pqServerManagerModelItem (QObject *parent=nullptr) | |
~pqServerManagerModelItem () override | |
Protected Slots | |
void | onRepresentationVisibilityChanged () |
Called when the visibility of any representation for this source changes. More... | |
Protected Slots inherited from pqProxy | |
void | onProxyRegistered (const QString &, const QString &, vtkSMProxy *) |
void | onProxyUnRegistered (const QString &, const QString &, vtkSMProxy *) |
Protected Member Functions | |
void | removeConsumer (int outputport, pqPipelineSource *) |
called by pqPipelineFilter when the connections change. More... | |
void | addConsumer (int outputport, pqPipelineSource *) |
Protected Member Functions inherited from pqProxy | |
void | setSMName (const QString &new_name) |
Make this pqProxy take on a new identity. More... | |
virtual void | initialize () |
virtual void | addInternalHelperProxy (const QString &key, vtkSMProxy *) const |
virtual void | removeInternalHelperProxy (const QString &key, vtkSMProxy *) const |
Protected Member Functions inherited from pqServerManagerModelItem | |
vtkEventQtSlotConnect * | getConnector () |
All subclasses generally need some vtkEventQtSlotConnect instance to connect to VTK events. More... | |
Friends | |
class | pqPipelineFilter |
Additional Inherited Members | |
Public Types inherited from pqProxy | |
enum | ModifiedState { UNINITIALIZED, MODIFIED, UNMODIFIED } |
The modification state of this proxy. More... | |
Static Public Member Functions inherited from pqProxy | |
static pqProxy * | findProxyWithHelper (vtkSMProxy *aproxy, QString &key) |
Returns a pqProxy instance, of any, whose helper proxy is the aproxy. More... | |
static std::string | rstToHtml (const char *rstStr) |
convert proxy documentation from RST to HTML (so that it can be used in Qt) More... | |
static QString | rstToHtml (const QString &rstStr) |
convert proxy documentation from RST to HTML (so that it can be used in Qt) More... | |
PQ representation for a vtkSMProxy that can be involved in a pipeline.
i.e that can have input and/or output. The public API is to observe the object, changes to the pipeline structure are only through protected function. These changes happen automatically as a reflection of the SM state.
Definition at line 32 of file pqPipelineSource.h.
pqPipelineSource::pqPipelineSource | ( | const QString & | name, |
vtkSMProxy * | proxy, | ||
pqServer * | server, | ||
QObject * | parent = nullptr |
||
) |
|
override |
int pqPipelineSource::getNumberOfOutputPorts | ( | ) | const |
A source may have multiple output ports.
This method returns the number of output ports supported by this source.
pqOutputPort* pqPipelineSource::getOutputPort | ( | int | outputport | ) | const |
Returns the pqOutputPort for the given output port.
pqOutputPort* pqPipelineSource::getOutputPort | ( | const QString & | portName | ) | const |
Returns the pqOutputPort given the name of the port.
QList<pqOutputPort*> pqPipelineSource::getOutputPorts | ( | ) | const |
Returns all the output ports.
Returns the number of consumers connected to the given output port.
|
inline |
Get the number of consumers connected to output port 0.
Equivalent to calling getNumberOfConsumers(0);
Definition at line 72 of file pqPipelineSource.h.
pqPipelineSource* pqPipelineSource::getConsumer | ( | int | outputport, |
int | index | ||
) | const |
Get the consumer at a particulat index on a given output port.
|
inline |
Get consumer at a particular index on output port 0.
Equivalent to calling getConsumer(0, index);
Definition at line 83 of file pqPipelineSource.h.
QList<pqPipelineSource*> pqPipelineSource::getAllConsumers | ( | ) | const |
Returns a list of consumers for all output ports.
QList<pqDataRepresentation*> pqPipelineSource::getRepresentations | ( | int | outputport, |
pqView * | view | ||
) | const |
Returns a list of representations for this source in the given view.
If view == nullptr, returns all representations of this source.
|
inline |
Definition at line 95 of file pqPipelineSource.h.
pqDataRepresentation* pqPipelineSource::getRepresentation | ( | int | outputport, |
pqView * | view | ||
) | const |
Returns the first representation for this source in the given view.
If view is nullptr, returns 0.
|
inline |
Definition at line 105 of file pqPipelineSource.h.
QList<pqView*> pqPipelineSource::getViews | ( | ) | const |
Returns a list of render modules in which this source has representations added (the representations may not be visible).
void pqPipelineSource::renderAllViews | ( | bool | force = false | ) |
This method updates all render modules to which all representations for this source belong, if force is true, it for an immediate render otherwise render on idle.
void pqPipelineSource::updatePipeline | ( | ) |
Update the pipeline with the current time.
vtkSMSourceProxy* pqPipelineSource::getSourceProxy | ( | ) |
Return the vtkSMSourceProxy instance corresponding to this pqPipelineSource.
|
signal |
fired when a connection is created between two pqPipelineSources.
|
signal |
|
signal |
fired when a connection is broken between two pqPipelineSources.
|
signal |
|
signal |
fired when a representation is added.
|
signal |
fired when a representation is removed.
|
signal |
Fired when the visbility of a representation for the source changes.
Also fired when representationAdded or representationRemoved is fired since that too implies change in source visibility.
|
signal |
Fired right after the underlying algorithm updates (executes).
This can be used to update data information and other similar tasks.
|
signal |
Fired when the selection on a port has changed.
|
protectedslot |
Called when the visibility of any representation for this source changes.
|
protected |
called by pqPipelineFilter when the connections change.
|
protected |
|
friend |
Definition at line 201 of file pqPipelineSource.h.