pqOutputPort is a server manager model item for an output port of any pqPipelineSource item. More...
#include <pqOutputPort.h>
Public Slots | |
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... | |
Signals | |
void | connectionAdded (pqOutputPort *port, pqPipelineSource *consumer) |
Fired when a connection is added between this output port and a consumer. More... | |
void | preConnectionAdded (pqOutputPort *port, pqPipelineSource *consumer) |
void | connectionRemoved (pqOutputPort *port, pqPipelineSource *consumer) |
Fired when a connection is removed between this output port and a consumer. More... | |
void | preConnectionRemoved (pqOutputPort *port, pqPipelineSource *consumer) |
void | representationAdded (pqOutputPort *source, pqDataRepresentation *repr) |
fired when a representation is added. More... | |
void | representationRemoved (pqOutputPort *source, pqDataRepresentation *repr) |
fired when a representation is removed. More... | |
void | visibilityChanged (pqOutputPort *source, pqDataRepresentation *repr) |
Fired when the visbility of a representation for the source changes. More... | |
Public Member Functions | |
pqOutputPort (pqPipelineSource *source, int portno) | |
~pqOutputPort () override | |
vtkSMOutputPort * | getOutputPortProxy () const |
Returns the vtkSMOutputPort proxy for this port. More... | |
pqPipelineSource * | getSource () const |
Returns the pqPipelineSource whose output port this is. More... | |
vtkSMSourceProxy * | getSourceProxy () const |
Return the vtkSMSourceProxy for the source. More... | |
pqServer * | getServer () const |
Returns the server connection on which this output port exists. More... | |
int | getPortNumber () const |
Returns the port number of the output port which this item represents. More... | |
QString | getPortName () const |
Returns the port name for this output port. More... | |
int | getNumberOfConsumers () const |
Returns the number of consumers connected to this output port. More... | |
pqPipelineSource * | getConsumer (int index) const |
Get the consumer at a particular index on this output port. More... | |
QList< pqPipelineSource * > | getConsumers () const |
Returns a list of consumers. More... | |
QList< pqDataRepresentation * > | getRepresentations (pqView *view) const |
Returns a list of representations for this output port in the given view. More... | |
pqDataRepresentation * | getRepresentation (pqView *view) const |
Returns the first representation for this output port in the given view. More... | |
QList< pqView * > | getViews () const |
Returns a list of render modules in which this output port has representations added (the representations may not be visible). More... | |
vtkPVDataInformation * | getDataInformation () const |
Returns the current data information at this output port. More... | |
vtkPVTemporalDataInformation * | getTemporalDataInformation () |
Collects data information over time. More... | |
vtkPVDataInformation * | getSelectedDataInformation (int es_port=0) const |
Returns the current data information for the selected data from this output port. More... | |
const char * | getDataClassName () const |
Returns the class name of the output data. More... | |
vtkSMSourceProxy * | getSelectionInput () |
Calls vtkSMSourceProxy::GetSelectionInput() on the underlying source proxy. More... | |
unsigned int | getSelectionInputPort () |
Calls vtkSMSourceProxy::GetSelectionInputPort() on the underlying source proxy. More... | |
void | setSelectionInput (vtkSMSourceProxy *src, int port) |
Set the selection input. More... | |
Public Member Functions inherited from pqServerManagerModelItem | |
pqServerManagerModelItem (QObject *parent=NULL) | |
~pqServerManagerModelItem () override | |
Protected Slots | |
void | onRepresentationVisibilityChanged () |
Protected Member Functions | |
void | removeConsumer (pqPipelineSource *) |
called by pqPipelineSource when the connections change. More... | |
void | addConsumer (pqPipelineSource *) |
void | addRepresentation (pqDataRepresentation *) |
Called by pqPipelineSource when the representations are added/removed. More... | |
void | removeRepresentation (pqDataRepresentation *) |
Protected Member Functions inherited from pqServerManagerModelItem | |
vtkEventQtSlotConnect * | getConnector () |
All subclasses generally need some vtkEventQtSlotConnect instance to connect to VTK events. More... | |
Protected Attributes | |
pqPipelineSource * | Source |
int | PortNumber |
Friends | |
class | pqPipelineFilter |
class | pqDataRepresentation |
pqOutputPort is a server manager model item for an output port of any pqPipelineSource item.
This makes it possible to refer to a particular output port in the server manager model. The pqPipelineSource keeps references to all its output ports. The only way to access pqOutputPort items is through the pqPipelineSource. One can obtain the pqPipelineSource item from a pqOutputPort using getSource(). Once the outputs can be named, we will change this class to use output port names instead of numbers.
Definition at line 57 of file pqOutputPort.h.
pqOutputPort::pqOutputPort | ( | pqPipelineSource * | source, |
int | portno | ||
) |
|
override |
vtkSMOutputPort* pqOutputPort::getOutputPortProxy | ( | ) | const |
Returns the vtkSMOutputPort proxy for this port.
|
inline |
Returns the pqPipelineSource whose output port this is.
Definition at line 74 of file pqOutputPort.h.
vtkSMSourceProxy* pqOutputPort::getSourceProxy | ( | ) | const |
Return the vtkSMSourceProxy for the source.
pqServer* pqOutputPort::getServer | ( | ) | const |
Returns the server connection on which this output port exists.
|
inline |
Returns the port number of the output port which this item represents.
Definition at line 89 of file pqOutputPort.h.
QString pqOutputPort::getPortName | ( | ) | const |
Returns the port name for this output port.
int pqOutputPort::getNumberOfConsumers | ( | ) | const |
Returns the number of consumers connected to this output port.
pqPipelineSource* pqOutputPort::getConsumer | ( | int | index | ) | const |
Get the consumer at a particular index on this output port.
QList<pqPipelineSource*> pqOutputPort::getConsumers | ( | ) | const |
Returns a list of consumers.
QList<pqDataRepresentation*> pqOutputPort::getRepresentations | ( | pqView * | view | ) | const |
Returns a list of representations for this output port in the given view.
If view == NULL, returns all representations of this port.
pqDataRepresentation* pqOutputPort::getRepresentation | ( | pqView * | view | ) | const |
Returns the first representation for this output port in the given view.
If view is NULL, returns 0.
QList<pqView*> pqOutputPort::getViews | ( | ) | const |
Returns a list of render modules in which this output port has representations added (the representations may not be visible).
vtkPVDataInformation* pqOutputPort::getDataInformation | ( | ) | const |
Returns the current data information at this output port.
This does not update the pipeline, it simply returns the data information for data currently present on the output port on the server.
vtkPVTemporalDataInformation* pqOutputPort::getTemporalDataInformation | ( | ) |
Collects data information over time.
This can potentially be a very slow process, so use with caution.
vtkPVDataInformation* pqOutputPort::getSelectedDataInformation | ( | int | es_port = 0 | ) | const |
Returns the current data information for the selected data from this output port.
es_port
is the output port from the internal vtkPVExtractSelection proxy.
const char* pqOutputPort::getDataClassName | ( | ) | const |
Returns the class name of the output data.
vtkSMSourceProxy* pqOutputPort::getSelectionInput | ( | ) |
Calls vtkSMSourceProxy::GetSelectionInput() on the underlying source proxy.
unsigned int pqOutputPort::getSelectionInputPort | ( | ) |
Calls vtkSMSourceProxy::GetSelectionInputPort() on the underlying source proxy.
void pqOutputPort::setSelectionInput | ( | vtkSMSourceProxy * | src, |
int | port | ||
) |
Set the selection input.
|
slot |
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.
|
signal |
Fired when a connection is added between this output port and a consumer.
|
signal |
|
signal |
Fired when a connection is removed between this output port and a consumer.
|
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.
|
protectedslot |
|
protected |
called by pqPipelineSource when the connections change.
|
protected |
|
protected |
Called by pqPipelineSource when the representations are added/removed.
|
protected |
|
friend |
Definition at line 216 of file pqOutputPort.h.
|
friend |
Definition at line 217 of file pqOutputPort.h.
|
protected |
Definition at line 231 of file pqOutputPort.h.
|
protected |
Definition at line 232 of file pqOutputPort.h.