Vuo 2.4.4
Loading...
Searching...
No Matches
VuoRendererKeyListForReadOnlyDictionary.cc
Go to the documentation of this file.
1
13#include "VuoNodeClass.hh"
14#include "VuoPort.hh"
15
24
31{
33 return false;
34
35 VuoPort *hostPort = getUnderlyingHostPortForNode(baseNode);
36 VuoNode *hostNode = getUnderlyingHostNodeForNode(baseNode);
37 bool providesKeysToMakeReadOnlyDictionaryNode = (hostPort &&
38 (hostPort->getClass()->getName() == "keys") &&
40 return providesKeysToMakeReadOnlyDictionaryNode;
41}
42
48{
49 VuoNode *hostNode = getUnderlyingHostNode();
50 if (!hostNode)
51 return NULL;
52
53 VuoPort *valueListInputPort = hostNode->getInputPortWithName("values");
54 return getListNodeConnectedToInputPort(valueListInputPort);
55}
56
61{
62 // The port that will ultimately make use of this node's output values is two nodes downstream.
64}
65
70{
71 // The node that will ultimately make use of this node's output values is two nodes downstream.
73}
74
81{
82 VuoNode *dictionaryNode = getUnderlyingHostNode();
83 VuoNode *valueListNode = getValueListNode();
84
85 set<VuoNode *> coattachments;
86
87 if (dictionaryNode)
88 coattachments.insert(dictionaryNode);
89 if (valueListNode)
90 coattachments.insert(valueListNode);
91 return coattachments;
92}