Tulip
4.6.0
Better Visualization Through Research
|
#include <BooleanProperty.h>
Public Member Functions | |
BooleanProperty (Graph *g, const std::string &n="") | |
PropertyInterface * | clonePrototype (Graph *, const std::string &) |
Iterator< edge > * | getEdgesEqualTo (const bool val, Graph *g=NULL) |
Iterator< node > * | getNodesEqualTo (const bool val, Graph *g=NULL) |
const std::string & | getTypename () const |
void | reverse () |
void | reverseEdgeDirection () |
Static Public Attributes | |
static const std::string | propertyTypename |
A graph property that maps a boolean value to graph elements.
Definition at line 35 of file BooleanProperty.h.
PropertyInterface* tlp::BooleanProperty::clonePrototype | ( | Graph * | graph, |
const std::string & | name | ||
) | [virtual] |
Creates a property of the same type (e.g. tlp::DoubleProperty) in the graph. The new property will not contain a copy of this property's values.
graph | The Graph in which to create the new property. |
name | The name of the new property. |
Implements tlp::PropertyInterface.
Iterator<edge>* tlp::BooleanProperty::getEdgesEqualTo | ( | const bool | val, |
Graph * | g = NULL |
||
) |
Returns an iterator through all edges belonging to g whose associated value is equal to val. If g is NULL, the graph given when creating the property is considered.
Iterator<node>* tlp::BooleanProperty::getNodesEqualTo | ( | const bool | val, |
Graph * | g = NULL |
||
) |
Returns an iterator through all nodes belonging to g whose associated value is equal to val. If g is NULL, the graph given when creating the property is considered.
const std::string& tlp::BooleanProperty::getTypename | ( | ) | const [inline, virtual] |
Gets a string describing the type of the property (e.g. "graph", "double", "layout", "string", "integer", "color", "size").
Implements tlp::PropertyInterface.
Definition at line 41 of file BooleanProperty.h.
void tlp::BooleanProperty::reverse | ( | ) |
Reverses all values associated to graph elements, i.e true => false, false => true.
Reverses all the direction of edges of the visible graph which are true in this BooleanProperty.