Vuo  2.4.0
VuoRendererPublishedPort.hh
Go to the documentation of this file.
1
10#pragma once
11
12#include "VuoRendererPort.hh"
13#include "VuoPublishedPort.hh"
14#include "VuoRendererCable.hh"
15
16class VuoType;
17
22{
23public:
24 VuoRendererPublishedPort(VuoPublishedPort *basePublishedPort, bool isPublishedOutput);
25
26 void setName(string name);
27 bool canAccommodateInternalPort(VuoRendererPort *internalPort, bool eventOnlyConnection);
29 bool isCompatibleAliasWithSpecializationForInternalPort(VuoRendererPort *port, bool eventOnlyConnection);
30 bool isCompatibleAliasWithSpecializationForInternalPort(VuoRendererPort *internalPort, bool eventOnlyConnection, VuoRendererPort **portToSpecialize, string &specializedTypeName);
31 bool canBeMergedWith(VuoPublishedPort *otherExternalPort, bool mergeWillAddData);
32 QPoint getCompositionViewportPos(void) const;
33 void setCompositionViewportPos(QPoint pos);
34 void setCurrentlyActive(bool active);
35 bool getCurrentlyActive();
36 void setPermanent(bool permanent);
37 bool isPermanent(void);
38
39protected:
40 QPainterPath getWirelessAntennaPath() const;
41
42private:
43 QPoint compositionViewportPos;
44 QPoint globalPos;
45 bool isActive;
46 bool permanent;
47};
48Q_DECLARE_METATYPE(VuoRendererPublishedPort *)