20 #ifndef TULIP_COLORS_H
21 #define TULIP_COLORS_H
23 #include <tulip/PropertyTypes.h>
24 #include <tulip/AbstractProperty.h>
28 class PropertyContext;
30 typedef AbstractProperty<tlp::ColorType, tlp::ColorType> AbstractColorProperty;
39 using AbstractColorProperty::operator=;
42 static const std::string propertyTypename;
44 return propertyTypename;
46 DEFINE_GET_CPP_CLASS_NAME;
57 :
public AbstractVectorProperty<tlp::ColorVectorType, tlp::ColorType> {
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...
A graph property that maps a tlp::Color value to graph elements.
const std::string & getTypename() const override
Gets a string describing the type of the property value (e.g. "graph", "double", "layout",...
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.
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...
A graph property that maps a std::vector<tlp::Color> value to graph elements.
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...
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.