OP_InputIndirect Class Reference

#include <OP_InputIndirect.h>

Inheritance diagram for OP_InputIndirect:

OP_NetworkBoxItem

List of all members.

Public Member Functions

 OP_InputIndirect (OP_Network *net, int input_index, float x=0.0F, float y=0.0F)
virtual ~OP_InputIndirect ()
virtual int save (ostream &os, int bin) const
virtual bool load (UT_IStream &is)
virtual int setPicked (int on_off, bool propagate_parent_event=true)
virtual int getPicked () const
virtual OP_NodegetNode ()
virtual void setOwner (OP_Network *net, int input_index)
OP_NetworkgetOwner () const
int getInputIndex () const
virtual OP_NetworkgetParentNetwork () const
 Returns the network that is our parent.
unsigned getNOutputs () const
OP_NodegetOutput (unsigned idx) const
void disconnect ()
virtual void setXY (fpreal x, fpreal y)
virtual fpreal getX () const
virtual fpreal getY () const
virtual fpreal getW () const
virtual fpreal getH () const
OP_InputIndirectoperator= (const OP_InputIndirect &from)
virtual OP_ItemType getItemType () const
 Our children should implement this and return what type of item they are.
virtual const UT_StringgetItemName () const

Protected Member Functions

void addOutput (OP_Node *)
void delOutput (OP_Node *)
void propagateChange (OP_EventType type, void *data=0)
void propagateModification (OP_Node *by_whom, OP_EventType reason, int parm_index, OP_PropagateData &prop_data)
unsigned int getUniqueId ()
unsigned int getUniqueId () const

Protected Attributes

OP_NetworkmyOwner
UT_PtrArray< OP_Node * > myOutputs
float myPosX
float myPosY
short myInputIndex
short myFlags

Friends

class OP_Input
class OP_Network
ostream & operator<< (ostream &os, const OP_InputIndirect &d)


Detailed Description

Definition at line 43 of file OP_InputIndirect.h.


Constructor & Destructor Documentation

OP_InputIndirect::OP_InputIndirect ( OP_Network net,
int  input_index,
float  x = 0.0F,
float  y = 0.0F 
)

virtual OP_InputIndirect::~OP_InputIndirect (  )  [virtual]


Member Function Documentation

void OP_InputIndirect::addOutput ( OP_Node  )  [protected]

void OP_InputIndirect::delOutput ( OP_Node  )  [protected]

void OP_InputIndirect::disconnect (  ) 

virtual fpreal OP_InputIndirect::getH (  )  const [virtual]

Implements OP_NetworkBoxItem.

int OP_InputIndirect::getInputIndex (  )  const [inline]

Definition at line 66 of file OP_InputIndirect.h.

virtual const UT_String& OP_InputIndirect::getItemName (  )  const [virtual]

Note that indirect inputs don't support names at this point, so this always returns an empty string.

Implements OP_NetworkBoxItem.

virtual OP_ItemType OP_InputIndirect::getItemType (  )  const [virtual]

Our children should implement this and return what type of item they are.

Implements OP_NetworkBoxItem.

virtual OP_Node* OP_InputIndirect::getNode (  )  [virtual]

unsigned OP_InputIndirect::getNOutputs (  )  const [inline]

Definition at line 75 of file OP_InputIndirect.h.

OP_Node* OP_InputIndirect::getOutput ( unsigned  idx  )  const [inline]

Definition at line 76 of file OP_InputIndirect.h.

OP_Network* OP_InputIndirect::getOwner (  )  const [inline]

Definition at line 65 of file OP_InputIndirect.h.

virtual OP_Network* OP_InputIndirect::getParentNetwork (  )  const [virtual]

Returns the network that is our parent.

Implements OP_NetworkBoxItem.

virtual int OP_InputIndirect::getPicked (  )  const [virtual]

Implements OP_NetworkBoxItem.

unsigned int OP_InputIndirect::getUniqueId (  )  const [inline, protected]

Definition at line 114 of file OP_InputIndirect.h.

unsigned int OP_InputIndirect::getUniqueId (  )  [protected]

virtual fpreal OP_InputIndirect::getW (  )  const [virtual]

Implements OP_NetworkBoxItem.

virtual fpreal OP_InputIndirect::getX (  )  const [inline, virtual]

Implements OP_NetworkBoxItem.

Definition at line 90 of file OP_InputIndirect.h.

virtual fpreal OP_InputIndirect::getY (  )  const [inline, virtual]

Implements OP_NetworkBoxItem.

Definition at line 91 of file OP_InputIndirect.h.

virtual bool OP_InputIndirect::load ( UT_IStream is  )  [virtual]

OP_InputIndirect& OP_InputIndirect::operator= ( const OP_InputIndirect from  ) 

void OP_InputIndirect::propagateChange ( OP_EventType  type,
void *  data = 0 
) [protected]

void OP_InputIndirect::propagateModification ( OP_Node by_whom,
OP_EventType  reason,
int  parm_index,
OP_PropagateData prop_data 
) [protected]

virtual int OP_InputIndirect::save ( ostream &  os,
int  bin 
) const [virtual]

virtual void OP_InputIndirect::setOwner ( OP_Network net,
int  input_index 
) [virtual]

virtual int OP_InputIndirect::setPicked ( int  on_off,
bool  propagate_parent_event = true 
) [virtual]

Implements OP_NetworkBoxItem.

virtual void OP_InputIndirect::setXY ( fpreal  x,
fpreal  y 
) [virtual]

Get and set the position of this item. Units are absolute, as opposed to relative units found in OPUI.

Implements OP_NetworkBoxItem.


Friends And Related Function Documentation

friend class OP_Input [friend]

Definition at line 137 of file OP_InputIndirect.h.

friend class OP_Network [friend]

Definition at line 138 of file OP_InputIndirect.h.

ostream& operator<< ( ostream &  os,
const OP_InputIndirect d 
) [friend]

Definition at line 132 of file OP_InputIndirect.h.


Member Data Documentation

short OP_InputIndirect::myFlags [protected]

Reimplemented from OP_NetworkBoxItem.

Definition at line 121 of file OP_InputIndirect.h.

short OP_InputIndirect::myInputIndex [protected]

Definition at line 120 of file OP_InputIndirect.h.

Definition at line 117 of file OP_InputIndirect.h.

Definition at line 116 of file OP_InputIndirect.h.

float OP_InputIndirect::myPosX [protected]

Definition at line 118 of file OP_InputIndirect.h.

float OP_InputIndirect::myPosY [protected]

Definition at line 119 of file OP_InputIndirect.h.


The documentation for this class was generated from the following file:

Generated on Mon Jan 28 00:48:39 2013 for HDK by  doxygen 1.5.9