Vuo  2.3.2
VuoRendererHiddenInputAttachment.cc
Go to the documentation of this file.
1 
11 #include "VuoRendererPort.hh"
12 
17  : VuoRendererInputAttachment(baseNode, signaler)
18 {
19  layoutPorts();
20 }
21 
25 void VuoRendererHiddenInputAttachment::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
26 {
27  return;
28 }
29 
34 {
35  return QRectF();
36 }
37 
43 {
44  return QPainterPath();
45 }
46 
50 void VuoRendererHiddenInputAttachment::layoutPorts(void)
51 {
52  // Do not display input ports.
53  for (vector<VuoRendererPort *>::iterator it = inputPorts.begin(); it != inputPorts.end(); ++it)
54  (*it)->setVisible(false);
55 
56  // Do not display output ports.
57  for (vector<VuoRendererPort *>::iterator it = outputPorts.begin(); it != outputPorts.end(); ++it)
58  (*it)->setVisible(false);
59 }
60 
64 bool VuoRendererHiddenInputAttachment::paintingDisabled() const
65 {
66  return true;
67 }