#include <OP_NetworkBoxItem.h>
|
| OP_NetworkBoxItem () |
|
virtual | ~OP_NetworkBoxItem () |
|
virtual void | setXY (fpreal x, fpreal y)=0 |
|
virtual fpreal | getX () const =0 |
|
virtual fpreal | getY () const =0 |
|
virtual fpreal | getW () const =0 |
|
virtual fpreal | getH () const =0 |
|
bool | setXYWithBoundsChecks (fpreal x, fpreal y) |
|
void | validateSafeBounds (fpreal &x, fpreal &y) |
|
void | validateSafeBounds (fpreal &x, fpreal &y, fpreal &w, fpreal &h) |
|
void | moveToGoodPosition (bool relativetoinputs=true, bool moveinputs=true, bool moveoutputs=true, bool moveunconnected=true) |
|
void | setOwnerBox (OP_NetworkBox *box) |
|
OP_NetworkBox * | getOwnerBox () const |
|
bool | hasOwnerBox (const OP_NetworkBoxItem *item) const |
|
OP_NetworkBox * | getMinimizedOwnerBox () const |
|
virtual bool | setPicked (bool on_off, bool propagate_parent_event=true)=0 |
|
virtual bool | getPicked () const =0 |
|
virtual OP_Network * | getParentNetwork () const =0 |
| Returns the network that is our parent. More...
|
|
void | getPathFromParent (UT_String &str, const OP_Node *parent) const |
|
void | getPathFromParent (UT_WorkBuffer &str, const OP_Node *parent) const |
|
void | getRelativePathTo (const OP_NetworkBoxItem *base_item, UT_String &result) const |
| Returns the path of this item relative to 'base_item'. More...
|
|
virtual UT_Color | getColor () const |
| Accessors for color used in the network view. More...
|
|
virtual bool | setColor (const UT_Color &color) |
|
virtual OP_ItemType | getItemType () const =0 |
| Our children should implement this and return what type of item they are. More...
|
|
virtual const UT_String & | getItemName () const =0 |
|
virtual bool | setItemName (const UT_String &name)=0 |
|
virtual int64 | getItemUniqueId () const =0 |
| Functions to get hip-file-unique ids for any item type. More...
|
|
virtual bool | getItemExpose () const |
|
virtual void | setItemExpose (bool expose) |
|
OP_Network * | getCreator () const |
|
OP_Network * | getCodeCreator () const |
|
void | getConnectedItems (OP_NetworkBoxItemList &connected, bool inputs, bool recursive, bool include_this_item) const |
| Fills an array with all network box items connected to this item. More...
|
|
int64 | getMemoryUsage (bool inclusive) const |
|
Definition at line 40 of file OP_NetworkBoxItem.h.
OP_NetworkBoxItem::OP_NetworkBoxItem |
( |
| ) |
|
virtual OP_NetworkBoxItem::~OP_NetworkBoxItem |
( |
| ) |
|
|
virtual |
OP_Network* OP_NetworkBoxItem::getCodeCreator |
( |
| ) |
const |
Get the first parent node which has a VOP_CodeGenerator (i.e. has getVopCodeGenerator() defined.
virtual UT_Color OP_NetworkBoxItem::getColor |
( |
| ) |
const |
|
inlinevirtual |
void OP_NetworkBoxItem::getConnectedItems |
( |
OP_NetworkBoxItemList & |
connected, |
|
|
bool |
inputs, |
|
|
bool |
recursive, |
|
|
bool |
include_this_item |
|
) |
| const |
Fills an array with all network box items connected to this item.
OP_Network* OP_NetworkBoxItem::getCreator |
( |
| ) |
const |
getCreator is similar to getParentNetwork but it climbs the tree to find the network that originally created this network type. This means that if you're down in a sub-network you climb right up to the parent of all the sub-nets. For SOPs this will return the object, for COPs the icenet, for TOPs the Shader, for CHOPs the chopnet, for POPs the popnet. If the parent tree is truncated for some reason, we return whatever node is at the top.
- Examples:
- SOP/SOP_CopRaster.C, and SOP/SOP_HDKObject.C.
virtual fpreal OP_NetworkBoxItem::getH |
( |
| ) |
const |
|
pure virtual |
Implemented in VOP_Node, OBJ_Node, SOP_Node, COP2_Node, OP_Node, CHOP_Node, ROP_Node, SHOP_Node, DOP_Node, LOP_Node, OP_NetworkBox, VOPNET_Node, OP_PostIt, OBJ_SopNet, OP_Dot, and OP_SubnetIndirectInput.
virtual bool OP_NetworkBoxItem::getItemExpose |
( |
| ) |
const |
|
inlinevirtual |
virtual const UT_String& OP_NetworkBoxItem::getItemName |
( |
| ) |
const |
|
pure virtual |
virtual OP_ItemType OP_NetworkBoxItem::getItemType |
( |
| ) |
const |
|
pure virtual |
virtual int64 OP_NetworkBoxItem::getItemUniqueId |
( |
| ) |
const |
|
pure virtual |
static fpreal OP_NetworkBoxItem::getMaxSafeX |
( |
| ) |
|
|
inlinestatic |
The following methods return the safe extents of the position of items.
Definition at line 63 of file OP_NetworkBoxItem.h.
static fpreal OP_NetworkBoxItem::getMaxSafeY |
( |
| ) |
|
|
inlinestatic |
int64 OP_NetworkBoxItem::getMemoryUsage |
( |
bool |
inclusive | ) |
const |
|
inline |
Returns the highest level owner box that is minimized. In other words, the netbox that contains this item that is visible in a network editor.
static fpreal OP_NetworkBoxItem::getMinSafeX |
( |
| ) |
|
|
inlinestatic |
static fpreal OP_NetworkBoxItem::getMinSafeY |
( |
| ) |
|
|
inlinestatic |
virtual OP_Network* OP_NetworkBoxItem::getParentNetwork |
( |
| ) |
const |
|
pure virtual |
Sets 'str' to be the path from 'parent' to this item. Pass in NULL for 'parent' if you'd like the full path returned.
Definition at line 100 of file OP_NetworkBoxItem.h.
virtual bool OP_NetworkBoxItem::getPicked |
( |
| ) |
const |
|
pure virtual |
Returns the path of this item relative to 'base_item'.
virtual fpreal OP_NetworkBoxItem::getW |
( |
| ) |
const |
|
pure virtual |
Implemented in VOP_Node, OBJ_Node, SOP_Node, COP2_Node, OP_Node, CHOP_Node, ROP_Node, SHOP_Node, DOP_Node, LOP_Node, OP_NetworkBox, VOPNET_Node, OP_PostIt, OBJ_SopNet, OP_Dot, and OP_SubnetIndirectInput.
virtual fpreal OP_NetworkBoxItem::getX |
( |
| ) |
const |
|
pure virtual |
virtual fpreal OP_NetworkBoxItem::getY |
( |
| ) |
const |
|
pure virtual |
void OP_NetworkBoxItem::moveToGoodPosition |
( |
bool |
relativetoinputs = true , |
|
|
bool |
moveinputs = true , |
|
|
bool |
moveoutputs = true , |
|
|
bool |
moveunconnected = true |
|
) |
| |
Set the node's location to a "good" position, using either the input or output nodes as the basis for the decision of what "good" means. The keepcentered flag tells us to move every item in our parent network except us. The moveconnected flag causes this function to move items connected to the other side of this item to avoid overlaps when we move this item.
virtual bool OP_NetworkBoxItem::setColor |
( |
const UT_Color & |
color | ) |
|
|
virtual |
virtual void OP_NetworkBoxItem::setItemExpose |
( |
bool |
expose | ) |
|
|
inlinevirtual |
virtual bool OP_NetworkBoxItem::setItemName |
( |
const UT_String & |
name | ) |
|
|
pure virtual |
The owner box of an OP_NetworkBoxItem is the OP_NetworkBox which it's held in. If a box has no owner, its owner box will be returned as NULL. Owner box is NULL by default on construction.
virtual bool OP_NetworkBoxItem::setPicked |
( |
bool |
on_off, |
|
|
bool |
propagate_parent_event = true |
|
) |
| |
|
pure virtual |
bool OP_NetworkBoxItem::setXYWithBoundsChecks |
( |
fpreal |
x, |
|
|
fpreal |
y |
|
) |
| |
Set the node's location with setXY(), but first check if the new position is valid. Also update any netboxes containing this node and send an OP_UI_MOVED event.
Allow subclasses direct access to myColor to allow them to edit this color without risk of generating undo blocks or change events.
Definition at line 168 of file OP_NetworkBoxItem.h.
The documentation for this class was generated from the following file: