Inviwo  0.9.10.1
Inviwo documentation
inviwo::DataOutport< T > Class Template Reference

#include <dataoutport.h>

+ Inheritance diagram for inviwo::DataOutport< T >:

Public Types

using type = T
 
- Public Types inherited from inviwo::OutportIterableImpl< T >
using const_iterator = typename OutportIterable< T >::const_iterator
 

Public Member Functions

 DataOutport (std::string identifier)
 
virtual std::string getClassIdentifier () const override
 
virtual uvec3 getColorCode () const override
 
virtual Document getInfo () const override
 
virtual std::shared_ptr< const T > getData () const
 
virtual std::shared_ptr< const T > detachData ()
 
virtual void setData (std::shared_ptr< const T > data)
 
virtual void setData (const T *data)
 
bool hasData () const
 
- Public Member Functions inherited from inviwo::Outport
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)
 
ProcessorgetProcessor () const
 
virtual void serialize (Serializer &s) const override
 
virtual void deserialize (Deserializer &d) override
 
- Public Member Functions inherited from inviwo::OutportIterableImpl< T >
 OutportIterableImpl (DataOutport< T > *port)
 
virtual const_iterator begin () const override
 
virtual const_iterator end () const override
 

Protected Attributes

std::shared_ptr< const T > data_
 
- Protected Attributes inherited from inviwo::Outport
StateCoordinator< bool > isReady_
 
InvalidationLevel invalidationLevel_
 
std::vector< Inport * > connectedInports_
 
CallBackList onConnectCallback_
 
CallBackList onDisconnectCallback_
 
- Protected Attributes inherited from inviwo::Port
std::string identifier_
 
Processorprocessor_
 

Additional Inherited Members

- Protected Member Functions inherited from inviwo::Outport
 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)
 

Detailed Description

template<typename T>
class inviwo::DataOutport< T >

DataOutport hold data of type T

Member Function Documentation

◆ getColorCode()

template<typename T >
uvec3 DataOutport< T >::getColorCode ( ) const
overridevirtual

Returns the RGB color code used to colorize all ports of this type. This color code is for instance used in the NetworkEditor. To distinguish different port types through their color, this method should be overloaded in derived classes.

Implements inviwo::Port.


The documentation for this class was generated from the following file: