14 #ifndef _OP_IndirectInput_h_
15 #define _OP_IndirectInput_h_
24 #include <hboost/function.hpp>
40 virtual int getInputItemOutputIndex()
const = 0;
46 int getNodeOutputIndex();
51 {
return myOutputs.entries(); }
53 {
return (idx < getNOutputs()) ? myOutputs(idx) : 0; }
54 void clearOutputs(
bool for_delete =
false);
59 bool into_subnets =
false)
const;
65 bool traverseOutputNodes(hboost::function
66 <
bool (
const OP_Node &)> cb)
const;
69 OP_Node *getFirstOutputNode()
const;
76 bool propagate_parent_event =
true)
override;
89 bool setUseColorFromOutput(
bool use_output_color);
90 bool getUseColorFromOutput()
const;
100 int64 mem = inclusive ?
sizeof(*this) : 0;
102 mem += myOutputs.getMemoryUsage(
false);
103 mem += mySymbolicColorName.getMemoryUsage(
false);
114 void saveColorString(std::ostream &os)
const;
117 void propagateModification(
OP_Node *by_whom,
132 bool myUseColorFromOutput;
virtual bool setColor(const UT_Color &color)
int64 getMemoryUsage(bool inclusive) const
virtual void setXY(fpreal x, fpreal y)=0
virtual OP_Network * getParentNetwork() const =0
Returns the network that is our parent.
virtual bool setPicked(bool on_off, bool propagate_parent_event=true)=0
GLuint const GLchar * name
virtual bool getPicked() const =0