Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::BrushingAndLinkingOutport Class Reference

#include <modules/brushingandlinking/ports/brushingandlinkingports.h>

Inheritance diagram for inviwo::BrushingAndLinkingOutport:

Public Types

using type = void

Public Member Functions

 BrushingAndLinkingOutport (std::string_view identifier, Document help={})
virtual void clear () override
virtual void deserialize (Deserializer &d) override
virtual std::string_view getClassIdentifier () const override
virtual glm::uvec3 getColorCode () const override
virtual Document getInfo () const override
const std::vector< BrushingTargetsInvalidationLevel > & getInvalidationLevels () const
BrushingAndLinkingManagergetManager ()
const BrushingAndLinkingManagergetManager () const
virtual bool hasData () const override
virtual void invalidate (InvalidationLevel invalidationLevel) override
virtual void serialize (Serializer &s) const override
void setInvalidationLevels (std::vector< BrushingTargetsInvalidationLevel > invalidationLevels)
virtual void setValid () override
Public Member Functions inherited from inviwo::Outport
const std::vector< Inport * > & getConnectedInports () const
virtual InvalidationLevel getInvalidationLevel () const
virtual bool isConnected () const override
bool isConnectedTo (const Inport *port) const
virtual bool isReady () const override
const BaseCallBack * onConnect (std::function< void()> lambda)
const BaseCallBack * onDisconnect (std::function< void()> lambda)
virtual void propagateEvent (Event *event, Inport *source)
void removeOnConnect (const BaseCallBack *callback)
void removeOnDisconnect (const BaseCallBack *callback)
Public Member Functions inherited from inviwo::Port
DocumentgetHelp ()
const DocumentgetHelp () const
const std::string & getIdentifier () const
std::string getPath () const
 Get the port path i.e. <processor identifier>.<port identifier>.
void getPath (std::pmr::string &out) const
Processor * getProcessor () const
Port & operator= (const Port &)=delete
Port & operator= (Port &&)=delete
 Port (const Port &)=delete
 Port (Port &&)=delete
Port & setHelp (Document help)
void setIdentifier (const std::string &name)

Additional Inherited Members

Protected Member Functions inherited from inviwo::Outport
virtual void connectTo (Inport *port)
virtual void disconnectFrom (Inport *port)
 Outport (std::string_view identifier, Document help)
Protected Member Functions inherited from inviwo::Port
 Port (std::string_view identifier, Document help)
void setProcessor (Processor *processor)
Static Protected Member Functions inherited from inviwo::Outport
static Document getDefaultPortInfo (const Outport *port, std::string_view portname)
Protected Attributes inherited from inviwo::Outport
std::vector< Inport * > connectedInports_
InvalidationLevel invalidationLevel_
StateCoordinator< bool > isReady_
CallBackList onConnectCallback_
CallBackList onDisconnectCallback_
Protected Attributes inherited from inviwo::Port
Document help_
std::string identifier_
Processor * processor_

Detailed Description

Enables selection/filtering/highlighting between processors. The BrushingAndLinkingOutport can be connected to several BrushingAndLinkingInports in order to share information.

See also
BrushingAndLinkingManager

Member Function Documentation

◆ clear()

virtual void inviwo::BrushingAndLinkingOutport::clear ( )
inlineoverridevirtual

Clear the outport of any data

Implements inviwo::Outport.

◆ deserialize()

virtual void inviwo::BrushingAndLinkingOutport::deserialize ( Deserializer & d)
overridevirtual

Reimplemented from inviwo::Port.

◆ getClassIdentifier()

virtual std::string_view inviwo::BrushingAndLinkingOutport::getClassIdentifier ( ) const
overridevirtual

Implements inviwo::Port.

◆ getColorCode()

virtual glm::uvec3 inviwo::BrushingAndLinkingOutport::getColorCode ( ) const
inlineoverridevirtual

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.

◆ getInfo()

virtual Document inviwo::BrushingAndLinkingOutport::getInfo ( ) const
overridevirtual

This function should describe the state of the port and the data it holds. Derived ports should extend this function and add information about their state. The port help is usually included in this information. The description is usually shown as a tooltip in the GUI.

Implements inviwo::Port.

◆ getInvalidationLevels()

const std::vector< BrushingTargetsInvalidationLevel > & inviwo::BrushingAndLinkingOutport::getInvalidationLevels ( ) const

Returns the types of targets and actions causing the owning processor to invalidate.

◆ hasData()

virtual bool inviwo::BrushingAndLinkingOutport::hasData ( ) const
inlineoverridevirtual

Query if the outport has any data

Implements inviwo::Outport.

◆ invalidate()

virtual void inviwo::BrushingAndLinkingOutport::invalidate ( InvalidationLevel invalidationLevel)
overridevirtual

Overrides the provided invalidationLevel with that of the BrushingAngLinkingManager. Will invalidate its connected inports if any of the BrushingModifications overlap with the modified brushing targets and actions provided by getInvalidationLevels

Parameters
invalidationLevelunused!
Note
Port is set to valid after its processor successfully finished processing.

Reimplemented from inviwo::Outport.

◆ serialize()

virtual void inviwo::BrushingAndLinkingOutport::serialize ( Serializer & s) const
overridevirtual

Reimplemented from inviwo::Port.

◆ setInvalidationLevels()

void inviwo::BrushingAndLinkingOutport::setInvalidationLevels ( std::vector< BrushingTargetsInvalidationLevel > invalidationLevels)

Set the types of brushing targets and actions that should invalidate the owning processor. Enables processors to only handle certain types of filter/selection/highlight actions.

◆ setValid()

virtual void inviwo::BrushingAndLinkingOutport::setValid ( )
overridevirtual

Called by Processor::setValid, will call setValid its connected inports.

Reimplemented from inviwo::Outport.


The documentation for this class was generated from the following file:
  • modules/brushingandlinking/include/modules/brushingandlinking/ports/brushingandlinkingports.h