#include <ChangeTimeline.h>
Public Types | |
enum | changeid_t { CHG_NONE = 0, CHG_ADDVERTEX, CHG_SETVERTEX, CHG_DELVERTEX, CHG_ADDEDGE, CHG_SETEDGE, CHG_DELEDGE } |
change operation ids used in animation list More... | |
CHG_ADDEDGE | |
CHG_ADDVERTEX | |
CHG_DELEDGE | |
CHG_DELVERTEX | |
CHG_NONE = 0 | |
CHG_SETEDGE | |
CHG_SETVERTEX | |
Public Member Functions | |
void | addEdge (vertexid_t src, vertexid_t tgt, const AttributeEdgeTinyBlob &b) |
adds a new edge from source to target vertex. | |
void | addVertex (vertexid_t id, const AttributeVertexTinyBlob &b) |
adds a new vertex id, without setting attributes. | |
void | delEdge (vertexid_t src, vertexid_t tgt) |
removes an edge from the graph. | |
void | delVertex (vertexid_t id) |
deletes a vertex from the graph. | |
void | setEdgeAttr (vertexid_t src, vertexid_t tgt, const AttributeEdgeTinyBlob &b) |
sets an attribute on the given edge | |
void | setVertexAttr (vertexid_t id, const AttributeVertexTinyBlob &b) |
sets an attribute on the given vertex | |
Protected Types | |
typedef std::deque< ChangeEntry > | chgoplist_t |
sequence container used to save the change blobs | |
Protected Attributes | |
chgoplist_t | chgoplist |
Friends | |
class | GraphContainer |
direct access to chgoplist in getArea | |
Classes | |
struct | ChangeEntry |
struct used as entries in the sequence of changes More... |
It is currently a simple list, recording the actions in the same order as issued.
Definition at line 19 of file ChangeTimeline.h.
typedef std::deque<ChangeEntry> VGServer::ChangeFrame::chgoplist_t [protected] |
void VGServer::ChangeFrame::addEdge | ( | vertexid_t | src, | |
vertexid_t | tgt, | |||
const AttributeEdgeTinyBlob & | b | |||
) |
adds a new edge from source to target vertex.
Definition at line 132 of file ChangeTimeline.cc.
References CHG_ADDEDGE, and chgoplist.
void VGServer::ChangeFrame::addVertex | ( | vertexid_t | id, | |
const AttributeVertexTinyBlob & | b | |||
) |
adds a new vertex id, without setting attributes.
Definition at line 117 of file ChangeTimeline.cc.
References CHG_ADDVERTEX, and chgoplist.
void VGServer::ChangeFrame::delEdge | ( | vertexid_t | src, | |
vertexid_t | tgt | |||
) |
removes an edge from the graph.
Definition at line 142 of file ChangeTimeline.cc.
References CHG_DELEDGE, and chgoplist.
void VGServer::ChangeFrame::delVertex | ( | vertexid_t | id | ) |
deletes a vertex from the graph.
Definition at line 127 of file ChangeTimeline.cc.
References CHG_DELVERTEX, and chgoplist.
void VGServer::ChangeFrame::setEdgeAttr | ( | vertexid_t | src, | |
vertexid_t | tgt, | |||
const AttributeEdgeTinyBlob & | b | |||
) |
sets an attribute on the given edge
Definition at line 137 of file ChangeTimeline.cc.
References CHG_SETEDGE, and chgoplist.
void VGServer::ChangeFrame::setVertexAttr | ( | vertexid_t | id, | |
const AttributeVertexTinyBlob & | b | |||
) |
sets an attribute on the given vertex
Definition at line 122 of file ChangeTimeline.cc.
References CHG_SETVERTEX, and chgoplist.
friend class GraphContainer [friend] |
chgoplist_t VGServer::ChangeFrame::chgoplist [protected] |
Definition at line 62 of file ChangeTimeline.h.
Referenced by addEdge(), addVertex(), delEdge(), delVertex(), setEdgeAttr(), and setVertexAttr().