Tulip  4.6.0
Better Visualization Through Research
tlp::BooleanProperty Class Reference

#include <BooleanProperty.h>

+ Inheritance diagram for tlp::BooleanProperty:
+ Collaboration diagram for tlp::BooleanProperty:

List of all members.

Public Member Functions

 BooleanProperty (Graph *g, const std::string &n="")
PropertyInterfaceclonePrototype (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

Detailed Description

A graph property that maps a boolean value to graph elements.

Definition at line 35 of file BooleanProperty.h.


Member Function Documentation

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.

Parameters:
graphThe Graph in which to create the new property.
nameThe name of the new property.
Returns:
The newly created 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").

Returns:
The name of this property's type.

Implements tlp::PropertyInterface.

Definition at line 41 of file BooleanProperty.h.

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.

 All Classes Files Functions Variables Enumerations Enumerator Properties