23#include <tulip/PropertyTypes.h>
24#include <tulip/AbstractProperty.h>
36class TLP_SCOPE ColorProperty :
public AbstractColorProperty {
38 ColorProperty(Graph *g,
const std::string &n =
"");
39 using AbstractColorProperty::operator=;
42 static const std::string propertyTypename;
44 return propertyTypename;
46 DEFINE_GET_CPP_CLASS_NAME;
56class TLP_SCOPE ColorVectorProperty
57 :
public AbstractVectorProperty<tlp::ColorVectorType, tlp::ColorType> {
59 ColorVectorProperty(
Graph *g,
const std::string &n =
"")
60 : AbstractVectorProperty<ColorVectorType, tlp::ColorType>(g, n) {}
61 using AbstractVectorProperty<tlp::ColorVectorType, tlp::ColorType>::operator=;
64 static const std::string propertyTypename;
66 return propertyTypename;
68 DEFINE_GET_CPP_CLASS_NAME;
This class extends upon PropertyInterface, and adds type-safe methods to get and set the node and edg...
PropertyInterface * clonePrototype(Graph *, const std::string &) const override
Creates a property of the same type (e.g. tlp::DoubleProperty) in the graph. The new property will no...
int compare(const node n1, const node n2) const override
Compares the value this property holds for the two given nodes.
int compare(const edge e1, const edge e2) const override
Compares the value this property holds for the two given edges.
const std::string & getTypename() const override
Gets a string describing the type of the property value (e.g. "graph", "double", "layout",...
PropertyInterface * clonePrototype(Graph *, const std::string &) const override
Creates a property of the same type (e.g. tlp::DoubleProperty) in the graph. The new property will no...
const std::string & getTypename() const override
Gets a string describing the type of the property value (e.g. "graph", "double", "layout",...
PropertyInterface describes the interface of a graph property.
The edge struct represents an edge in a Graph object.
The node struct represents a node in a Graph object.