Inviwo 0.9.12-pre
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 () |
virtual bool | hasData () const =0 |
virtual void | clear ()=0 |
Public Member Functions inherited from inviwo::Port | |
Port (const Port &)=delete | |
Port & | operator= (const Port &)=delete |
Port (Port &&)=delete | |
Port & | operator= (Port &&)=delete |
const std::string & | getIdentifier () const |
void | setIdentifier (const std::string &name) |
Processor * | getProcessor () const |
std::string | getPath () const |
Get the port path i.e. <processor identifier>.<port identifier> | |
virtual std::string | getClassIdentifier () const =0 |
virtual glm::uvec3 | getColorCode () const =0 |
virtual Document | getInfo () const =0 |
const Document & | getHelp () const |
Document & | getHelp () |
Port & | setHelp (Document help) |
virtual void | serialize (Serializer &s) const override |
virtual void | deserialize (Deserializer &d) override |
Public Member Functions inherited from inviwo::Serializable |
Protected Member Functions | |
Outport (std::string_view identifier, Document help) | |
virtual void | connectTo (Inport *port) |
virtual void | disconnectFrom (Inport *port) |
Protected Member Functions inherited from inviwo::Port | |
Port (std::string_view identifier, Document help) | |
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_ |
Document | help_ |
Friends | |
class | Inport |
class | Processor |
Abstract base class for all outports The Outport can be connected to an arbitrary number of Inports.
|
protected |
|
pure virtual |
Clear the outport of any data
Implemented in inviwo::BrushingAndLinkingOutport, inviwo::DataOutport< T >, inviwo::DataOutport< BufferBase >, inviwo::DataOutport< DataFrame >, inviwo::DataOutport< DataType >, inviwo::DataOutport< Eigen::MatrixXf >, inviwo::DataOutport< Handle >, inviwo::DataOutport< Image >, inviwo::DataOutport< IntegralLineSet >, inviwo::DataOutport< inviwo::DataFrame >, inviwo::DataOutport< inviwo::LightSource >, inviwo::DataOutport< inviwo::Plane >, inviwo::DataOutport< inviwo::Spatial4DSampler< dvec3 > >, inviwo::DataOutport< inviwo::SpatialSampler< dvec2 > >, inviwo::DataOutport< inviwo::SpatialSampler< dvec3 > >, inviwo::DataOutport< Layer >, inviwo::DataOutport< LayerSequence >, inviwo::DataOutport< Mesh >, inviwo::DataOutport< Rasterization >, inviwo::DataOutport< SeedPoint3DVector >, inviwo::DataOutport< SeedPoint4DVector >, inviwo::DataOutport< std::vector< float > >, inviwo::DataOutport< std::vector< inviwo::Plane > >, inviwo::DataOutport< std::vector< std::shared_ptr< inviwo::Mesh > > >, inviwo::DataOutport< std::vector< std::string > >, inviwo::DataOutport< std::vector< uint32_t > >, inviwo::DataOutport< std::vector< vec3 > >, inviwo::DataOutport< std::vector< vec4 > >, inviwo::DataOutport< TetraMesh >, inviwo::DataOutport< Volume >, inviwo::DataOutport< VolumeSequence >, inviwo::ImageOutport, and inviwo::PythonOutport.
|
pure virtual |
Query if the outport has any data
Implemented in inviwo::BrushingAndLinkingOutport, inviwo::DataOutport< T >, inviwo::DataOutport< BufferBase >, inviwo::DataOutport< DataFrame >, inviwo::DataOutport< DataType >, inviwo::DataOutport< Eigen::MatrixXf >, inviwo::DataOutport< Handle >, inviwo::DataOutport< Image >, inviwo::DataOutport< IntegralLineSet >, inviwo::DataOutport< inviwo::DataFrame >, inviwo::DataOutport< inviwo::LightSource >, inviwo::DataOutport< inviwo::Plane >, inviwo::DataOutport< inviwo::Spatial4DSampler< dvec3 > >, inviwo::DataOutport< inviwo::SpatialSampler< dvec2 > >, inviwo::DataOutport< inviwo::SpatialSampler< dvec3 > >, inviwo::DataOutport< Layer >, inviwo::DataOutport< LayerSequence >, inviwo::DataOutport< Mesh >, inviwo::DataOutport< Rasterization >, inviwo::DataOutport< SeedPoint3DVector >, inviwo::DataOutport< SeedPoint4DVector >, inviwo::DataOutport< std::vector< float > >, inviwo::DataOutport< std::vector< inviwo::Plane > >, inviwo::DataOutport< std::vector< std::shared_ptr< inviwo::Mesh > > >, inviwo::DataOutport< std::vector< std::string > >, inviwo::DataOutport< std::vector< uint32_t > >, inviwo::DataOutport< std::vector< vec3 > >, inviwo::DataOutport< std::vector< vec4 > >, inviwo::DataOutport< TetraMesh >, inviwo::DataOutport< Volume >, inviwo::DataOutport< VolumeSequence >, and inviwo::PythonOutport.
|
virtual |
Called by Processor::invalidate, will invalidate its connected inports.
Reimplemented in inviwo::BrushingAndLinkingOutport, and inviwo::ImageOutport.
|
overridevirtual |
Implements inviwo::Port.
|
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.
Reimplemented in inviwo::BrushingAndLinkingOutport.