Inviwo
0.9.10.1
Inviwo documentation
|
Abstract base class for all outports The Outport can be connected to an arbitrary number of Inports. More...
#include <outport.h>
Public Member Functions | |
virtual bool | isConnected () const override |
virtual bool | isReady () const override |
virtual void | invalidate (InvalidationLevel invalidationLevel) |
virtual InvalidationLevel | getInvalidationLevel () const |
virtual void | propagateEvent (Event *event, Inport *source) |
bool | isConnectedTo (const Inport *port) const |
const std::vector< Inport * > & | getConnectedInports () const |
const BaseCallBack * | onConnect (std::function< void()> lambda) |
const BaseCallBack * | onDisconnect (std::function< void()> lambda) |
void | removeOnConnect (const BaseCallBack *callback) |
void | removeOnDisconnect (const BaseCallBack *callback) |
virtual void | setValid () |
Public Member Functions inherited from inviwo::Port | |
std::string | getIdentifier () const |
void | setIdentifier (const std::string &name) |
Processor * | getProcessor () const |
virtual std::string | getClassIdentifier () const =0 |
virtual uvec3 | getColorCode () const =0 |
virtual Document | getInfo () const =0 |
virtual void | serialize (Serializer &s) const override |
virtual void | deserialize (Deserializer &d) override |
Protected Member Functions | |
Outport (std::string identifier="") | |
virtual void | connectTo (Inport *port) |
virtual void | disconnectFrom (Inport *port) |
Protected Member Functions inherited from inviwo::Port | |
Port (std::string identifier="") | |
void | setProcessor (Processor *processor) |
Protected Attributes | |
StateCoordinator< bool > | isReady_ |
InvalidationLevel | invalidationLevel_ |
std::vector< Inport * > | connectedInports_ |
CallBackList | onConnectCallback_ |
CallBackList | onDisconnectCallback_ |
Protected Attributes inherited from inviwo::Port | |
std::string | identifier_ |
Processor * | processor_ |
Friends | |
class | Inport |
class | Processor |
Abstract base class for all outports The Outport can be connected to an arbitrary number of Inports.
|
virtual |
Called by Processor::invalidate, will invalidate its connected inports.
Reimplemented in inviwo::ImageOutport.
|
overridevirtual |
An outport is ready if it has data and is valid. The port is set valid after its processor successfully finishes processing.
Implements inviwo::Port.
const BaseCallBack * inviwo::Outport::onConnect | ( | std::function< void()> | lambda | ) |
Called each time connected to an inport.
const BaseCallBack * inviwo::Outport::onDisconnect | ( | std::function< void()> | lambda | ) |
Called each time disconnected from an inport.
Propagate events upwards, i.e. to the owning processor.
Reimplemented in inviwo::ImageOutport.
|
virtual |
Called by Processor::setValid, will call setValid its connected inports.