iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ModuleRep Class Reference

#include </lab/itti/everything/software/nrt/trunk/nrt/src/Apps/nrtDesigner/ModuleRep.H>

A ModuleRep is a shadow which represents a real, running nrt::Module somewhere on a remote Blackboard.

Definition at line 49 of file ModuleRep.H.

Inheritance diagram for ModuleRep:
ModuleRepBase

Public Slots

void keyPressedSlot (QKeyEvent *event)
 

Signals

void removeModuleSignal (ModuleRep *)
 Sent when a user presses 'delete' while a module is selected.
 
- Signals inherited from ModuleRepBase
void moduleMovedSignal (ModuleRepBase *module)
 Sent when the ModuleRepBase is moved so that the Ports can recalculate all of the bound connection lines.
 
void moduleSelectedSignal (ModuleRepBase *module)
 Sent when the ModuleRepBase is selected so that the ConfigurationWidget can redraw the Parameters.
 

Public Member Functions

 ModuleRep (ModuleDescr const &moduleDesc_, LoaderSummary const &loader, QString const &moduleuid_, QString const &instanceName_)
 Constructor.
 
virtual ~ModuleRep ()
 Destructor.
 
void paint (QPainter *painter, QStyleOptionGraphicsItem const *, QWidget *)
 Draw this module.
 
void updateSubscriberPorts (std::vector< std::pair< std::string, nrt::blackboard::ModulePortSummary > > const &portSummaries)
 Update or create a subscriber port.
 
void updatePosterPorts (std::vector< std::pair< std::string, nrt::blackboard::ModulePortSummary > > const &portSummaries)
 Update or create a poster port.
 
void updateCheckerPorts (std::vector< std::pair< std::string, nrt::blackboard::ModulePortSummary > > const &portSummaries)
 Update or create a checker port.
 
Port * findPort (QString const &owneruid, QString const &portname)
 Find a port by owner uid (e.g. for sub-modules), and name (regardless of type)
 
PortList const & subscriberPorts ()
 
PortList const & posterPorts ()
 
PortList const & checkerPorts ()
 
- Public Member Functions inherited from ModuleRepBase
 ModuleRepBase (QString const &bbuid_, QString const &bbnick_, QString const &guiid_)
 Constructor. More...
 
virtual ~ModuleRepBase ()
 Destructor. More...
 
void updatePosFromGUIdata ()
 Upadate our postion from Blackboard GUIdata.
 
void forceMoveSignal ()
 Force a move signal.
 
virtual QRectF boundingRect () const
 Return our bounding rectangle.
 

Public Attributes

QString const moduleuid
 
QString const instanceName
 
QString const displayName
 
ModuleDescr const moduleDescr
 
QImage const icon
 
- Public Attributes inherited from ModuleRepBase
QString const bbuid
 The Blackboard UID that owns this module or namespace.
 
QString const bbnick
 The nickname of the owner Blackboard.
 
QString const guiid
 The GUI ID of this module (m:moduleuid) or namespace (n:path)
 

Additional Inherited Members

- Protected Member Functions inherited from ModuleRepBase
QVariant itemChange (GraphicsItemChange change, const QVariant &value)
 Send out a moduleMovedSignal() when this module is moved.
 
- Protected Attributes inherited from ModuleRepBase
QRectF itsRect
 Our bounding rectangle.
 

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