Home Previous Up Next Index

memoryx::GraphVisualizerInterface

Overview

interface GraphVisualizerInterface

Operation Index

hasEdge
@brief returns whether an edge is in the graph.
hasNode
@brief Returns whether a node is in the graph.
addEdge
@brief Adds an edge to the graph.
addNode
@brief Adds a node to the graph.
highlightEdge
@brief Highlights a edge according to highlighted.
highlightNode
@brief Highlights a node according to highlighted.
redraw
@brief Draws the whole graph to the debug layer.
clearGraph
@brief Removes all nodes and edges.
clearEdges
@brief Removes all edges.
resetHighlight
@brief Resets the highlighted edges and nodes.

Operations

bool hasEdge(string node1Id, string node2Id)

@brief returns whether an edge is in the graph.

Parameters

node1
The edge's first node id.
node2
The edge's first node id.

Return Value

Whether an edge is in the graph.

bool hasNode(string name)

@brief Returns whether a node is in the graph.

Parameters

name
The node's name.

Return Value

Whether a node is in the graph.

void addEdge(string node1Id, string node2Id)

@brief Adds an edge to the graph.

Parameters

node1Id
The edge's first node id.
node2Id
The edge's first node id.

void addNode(GraphNodeBase node)

@brief Adds a node to the graph.

Parameters

node
The node.

void highlightEdge(string node1Id, string node2Id, bool highlighted)

@brief Highlights a edge according to highlighted.

Parameters

node1
The edge's first node id.
node2
The edge's first node id.
highlighted
Whether the highlight will be set or reset.

void highlightNode(string nodeId, bool highlighted)

@brief Highlights a node according to highlighted.

Parameters

nodeId
The node's nodeId.
highlighted
Whether the highlight will be set or reset.

void redraw()

@brief Draws the whole graph to the debug layer.

void clearGraph()

@brief Removes all nodes and edges.

void clearEdges()

@brief Removes all edges.

void resetHighlight()

@brief Resets the highlighted edges and nodes.


Home Previous Up Next Index