Tulip 6.1.0
Large graphs analysis and drawing
Loading...
Searching...
No Matches
tlp::GraphEvent Class Reference

#include <Graph.h>

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

Public Types

enum  GraphEventType {
  TLP_ADD_NODE = 0 , TLP_BEFORE_DEL_NODE , TLP_AFTER_DEL_NODE , TLP_ADD_EDGE ,
  TLP_BEFORE_DEL_EDGE , TLP_AFTER_DEL_EDGE , TLP_REVERSE_EDGE , TLP_BEFORE_SET_ENDS ,
  TLP_AFTER_SET_ENDS , TLP_ADD_NODES , TLP_ADD_EDGES , TLP_BEFORE_ADD_DESCENDANTGRAPH ,
  TLP_AFTER_ADD_DESCENDANTGRAPH , TLP_BEFORE_DEL_DESCENDANTGRAPH , TLP_AFTER_DEL_DESCENDANTGRAPH , TLP_BEFORE_ADD_SUBGRAPH ,
  TLP_AFTER_ADD_SUBGRAPH , TLP_BEFORE_DEL_SUBGRAPH , TLP_AFTER_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_RENAME_LOCAL_PROPERTY , TLP_AFTER_RENAME_LOCAL_PROPERTY , TLP_BEFORE_SET_ATTRIBUTE ,
  TLP_AFTER_SET_ATTRIBUTE , TLP_REMOVE_ATTRIBUTE , TLP_BEFORE_ADD_LOCAL_PROPERTY , TLP_BEFORE_ADD_INHERITED_PROPERTY
}
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, const Graph *sg)
 GraphEvent (const Graph &g, GraphEventType graphEvtType, const std::string &str, Event::EventType evtType=Event::TLP_MODIFICATION)
 GraphEvent (const Graph &g, GraphEventType graphEvtType, PropertyInterface *prop, const std::string &newName)
 GraphEvent (const Graph &g, GraphEventType graphEvtType, unsigned int id, Event::EventType evtType=Event::TLP_MODIFICATION)
const std::string & getAttributeName () const
edge getEdge () const
const std::vector< edge > & getEdges () const
Graph * getGraph () const
node getNode () const
const std::vector< node > & getNodes () const
unsigned int getNumberOfEdges () const
unsigned int getNumberOfNodes () const
PropertyInterface * getProperty () const
const std::string & getPropertyName () const
const std::string & getPropertyNewName () const
const std::string & getPropertyOldName () const
const Graph * getSubGraph () const
GraphEventType getType () const
Public Member Functions inherited from tlp::Event
 Event (const Observable &sender, EventType type)
Observable * sender () const
EventType type () const

Protected Attributes

GraphEventType evtType
union { 
unsigned int eltId
std::string * name
unsigned int nbElts
std::pair< PropertyInterface *, std::string > * renamedProp
const Graph * subGraph
} info
union { 
std::vector< edge > * addedEdges
std::vector< node > * addedNodes
} vectInfos

Detailed Description

Event class for specific events on Graph

Definition at line 1782 of file Graph.h.

Member Enumeration Documentation

◆ GraphEventType

enum tlp::GraphEvent::GraphEventType

Definition at line 1786 of file Graph.h.

Constructor & Destructor Documentation

◆ GraphEvent() [1/4]

tlp::GraphEvent::GraphEvent ( const Graph & g,
GraphEventType graphEvtType,
unsigned int id,
Event::EventType evtType = Event::TLP_MODIFICATION )
inline

Definition at line 1822 of file Graph.h.

◆ GraphEvent() [2/4]

tlp::GraphEvent::GraphEvent ( const Graph & g,
GraphEventType graphEvtType,
const Graph * sg )
inline

Definition at line 1833 of file Graph.h.

◆ GraphEvent() [3/4]

tlp::GraphEvent::GraphEvent ( const Graph & g,
GraphEventType graphEvtType,
const std::string & str,
Event::EventType evtType = Event::TLP_MODIFICATION )
inline

Definition at line 1840 of file Graph.h.

◆ GraphEvent() [4/4]

tlp::GraphEvent::GraphEvent ( const Graph & g,
GraphEventType graphEvtType,
PropertyInterface * prop,
const std::string & newName )
inline

Definition at line 1848 of file Graph.h.

Member Function Documentation

◆ getAttributeName()

const std::string & tlp::GraphEvent::getAttributeName ( ) const
inline

Definition at line 1890 of file Graph.h.

◆ getEdge()

edge tlp::GraphEvent::getEdge ( ) const
inline

Definition at line 1866 of file Graph.h.

◆ getGraph()

Graph * tlp::GraphEvent::getGraph ( ) const
inline

Definition at line 1857 of file Graph.h.

◆ getNode()

node tlp::GraphEvent::getNode ( ) const
inline

Definition at line 1861 of file Graph.h.

◆ getNumberOfEdges()

unsigned int tlp::GraphEvent::getNumberOfEdges ( ) const
inline

Definition at line 1880 of file Graph.h.

◆ getNumberOfNodes()

unsigned int tlp::GraphEvent::getNumberOfNodes ( ) const
inline

Definition at line 1873 of file Graph.h.

◆ getProperty()

PropertyInterface * tlp::GraphEvent::getProperty ( ) const
inline

Definition at line 1897 of file Graph.h.

◆ getPropertyNewName()

const std::string & tlp::GraphEvent::getPropertyNewName ( ) const
inline

Definition at line 1903 of file Graph.h.

◆ getPropertyOldName()

const std::string & tlp::GraphEvent::getPropertyOldName ( ) const
inline

Definition at line 1908 of file Graph.h.

◆ getSubGraph()

const Graph * tlp::GraphEvent::getSubGraph ( ) const
inline

Definition at line 1885 of file Graph.h.

◆ getType()

GraphEventType tlp::GraphEvent::getType ( ) const
inline

Definition at line 1913 of file Graph.h.

Member Data Documentation

◆ evtType

GraphEventType tlp::GraphEvent::evtType
protected

Definition at line 1918 of file Graph.h.