13 #ifndef __OP_NetworkBoxItem__
14 #define __OP_NetworkBoxItem__
26 #define OP_NO_OWNER_NETWORK_BOX "__NO_OWNER_NETWORK_BOX__"
27 #define OP_PATH_HAS_NETPATH (true)
28 #define OP_PATH_HAS_NO_NETPATH (false)
29 #define OP_PATH_HAS_PACKETEXT (true)
30 #define OP_PATH_HAS_NO_PACKETEXT (false)
49 virtual fpreal getX()
const = 0;
50 virtual fpreal getY()
const = 0;
51 virtual fpreal getW()
const = 0;
52 virtual fpreal getH()
const = 0;
74 void moveToGoodPosition(
bool relativetoinputs =
true,
75 bool moveinputs =
true,
76 bool moveoutputs =
true,
77 bool moveunconnected =
true);
91 virtual bool setPicked(
bool on_off,
92 bool propagate_parent_event =
true) = 0;
93 virtual bool getPicked()
const = 0;
96 virtual OP_Network *getParentNetwork()
const = 0;
104 getPathFromParent(tmp, parent);
123 virtual const UT_String &getItemName()
const = 0;
127 virtual int64 getItemUniqueId()
const = 0;
152 void getConnectedItems(
154 bool inputs,
bool recursive,
155 bool include_this_item)
const;
161 int64 mem = inclusive ?
sizeof(*this) : 0;
180 void getConnectedItemsForMove(
182 bool inputs,
bool recursive)
const;
188 bool inputs,
bool recursive,
193 bool inputs,
bool recursive,
int64 getMemoryUsage(bool inclusive) const
void copyIntoString(UT_String &str) const
GLuint const GLchar * name
UT_Set< const OP_NetworkBoxItem * > OP_EnclosedItems
GLubyte GLubyte GLubyte GLubyte w
void getPathFromParent(UT_String &str, const OP_Node *parent) const
static fpreal getMaxSafeY()
static fpreal getMaxSafeX()
The following methods return the safe extents of the position of items.
virtual void setItemExpose(bool expose)
virtual bool getItemExpose() const
GLfloat GLfloat GLfloat GLfloat h
GLsizei const GLint box[]
static fpreal getMinSafeY()
virtual UT_Color getColor() const
Accessors for color used in the network view.
static fpreal getMinSafeX()