Overview     Modules     Class Hierarchy     Classes     Members  

Event class for specific events on Graph. More...

#include <Graph.h>

Inheritance diagram for tlp::GraphEvent:
Collaboration diagram for tlp::GraphEvent:

Public Types

enum  GraphEventType {
  TLP_ADD_NODE = 0, TLP_DEL_NODE, TLP_ADD_EDGE, TLP_DEL_EDGE,
  TLP_REVERSE_EDGE, TLP_BEFORE_SET_ENDS, TLP_AFTER_SET_ENDS, TLP_ADD_NODES,
  TLP_ADD_EDGES, TLP_ADD_SUBGRAPH, TLP_DEL_SUBGRAPH, TLP_ADD_LOCAL_PROPERTY,
  TLP_BEFORE_DEL_LOCAL_PROPERTY, TLP_AFTER_DEL_LOCAL_PROPERTY, TLP_ADD_INHERITED_PROPERTY, TLP_BEFORE_DEL_INHERITED_PROPERTY,
  TLP_AFTER_DEL_INHERITED_PROPERTY, TLP_BEFORE_SET_ATTRIBUTE, TLP_AFTER_SET_ATTRIBUTE, TLP_REMOVE_ATTRIBUTE
}
- Public Types inherited from tlp::Event
enum  EventType { TLP_DELETE = 0, TLP_MODIFICATION, TLP_INFORMATION, TLP_INVALID }

Public Member Functions

 GraphEvent (const Graph &g, GraphEventType graphEvtType, unsigned int id, Event::EventType evtType=Event::TLP_MODIFICATION)
 GraphEvent (const Graph &g, GraphEventType graphEvtType, const std::vector< node > &nodes, Event::EventType evtType=Event::TLP_MODIFICATION)
 GraphEvent (const Graph &g, GraphEventType graphEvtType, const std::vector< edge > &edges, Event::EventType evtType=Event::TLP_MODIFICATION)
 GraphEvent (const Graph &g, GraphEventType graphEvtType, const Graph *sg)
 GraphEvent (const Graph &g, GraphEventType graphEvtType, const std::string &str, Event::EventType evtType=Event::TLP_MODIFICATION)
 ~GraphEvent ()
GraphgetGraph () const
node getNode () const
edge getEdge () const
const std::vector< node > & getNodes () const
const std::vector< edge > & getEdges () const
const GraphgetSubGraph () const
const std::string & getAttributeName () const
const std::string & getPropertyName () const
GraphEventType getType () const
- Public Member Functions inherited from tlp::Event
virtual ~Event ()
Observablesender () const
 Event (const Observable &sender, EventType type)
EventType type () const

Protected Attributes

GraphEventType evtType
union {
   unsigned int   tlp::GraphEvent::eltId
   const Graph *   tlp::GraphEvent::subGraph
   std::string *   tlp::GraphEvent::name
   const std::vector< node > *   tlp::GraphEvent::nodes
   const std::vector< edge > *   tlp::GraphEvent::edges
info

Detailed Description

Event class for specific events on Graph.



Tulip Software by LaBRI Visualization Team    2001 - 2012