#include <artnetinputcomponent.h>
Public Member Functions | |
ArtNetInputComponentInstance (EntityInstance &entity, Component &resource) | |
virtual | ~ArtNetInputComponentInstance () |
virtual bool | init (utility::ErrorState &errorState) override |
Signal< const ArtNetEvent & > * | getPacketReceived () |
![]() | |
ComponentInstance (EntityInstance &entity, Component &resource) | |
virtual void | update (double deltaTime) |
nap::EntityInstance * | getEntityInstance () const |
nap::Component * | getComponent () const |
template<typename T > | |
T * | getComponent () const |
![]() | |
Object () | |
virtual | ~Object () |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
uint8 | mNet = 0 |
Property: 'Net' the Net from which events should be received. More... | |
uint8 | mSubNet = 0 |
Property: 'SubNet' the SubNet from which events should be received. More... | |
uint8 | mUniverse = 0 |
Property: 'Universe' the Universe from which events should be received. More... | |
bool | mReceiveAll = false |
Property: 'Receive All' when true, all events are forwarded. More... | |
Signal< const ArtNetEvent & > | packetReceived |
Triggered when the component receives an ArtDmx packet event. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Protected Member Functions | |
void | trigger (const ArtNetEvent &event) |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Instance part of the ArtNetInputComponent, receives ArtDmx packet events based on the net, subnet and universe. This component will forward any received ArtDmx packet events to listening components. Listen to the packetReceived signal to receive ArtDmx packet events that pass the filters set for this component. The Art-Net service forwards an event when the net, subnet and universe match with those in the ArtDmx packet. When Receive All is true, all events are forwarded.
ArtNetInputComponentInstance | ( | EntityInstance & | entity, |
Component & | resource | ||
) |
|
virtual |
Signal<const ArtNetEvent&>* getPacketReceived | ( | ) |
Returns the signal that is called when an ArtDmx packet is received.
|
overridevirtual |
Initializes the component and copies over the component settings.
errorState | contains the error when the component could not be initialized |
Reimplemented from ComponentInstance.
|
protected |
This is triggered by the service when a new ArtDmx packet is received
event | the ArtDmx packet event that will be forwarded by this component |
uint8 mNet = 0 |
Property: 'Net' the Net from which events should be received.
bool mReceiveAll = false |
Property: 'Receive All' when true, all events are forwarded.
uint8 mSubNet = 0 |
Property: 'SubNet' the SubNet from which events should be received.
uint8 mUniverse = 0 |
Property: 'Universe' the Universe from which events should be received.
Signal<const ArtNetEvent&> packetReceived |
Triggered when the component receives an ArtDmx packet event.