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;
41 static const std::string propertyTypename;
42 const std::string &getTypename()
const override {
43 return propertyTypename;
46 int compare(
const node n1,
const node n2)
const override;
47 int compare(
const edge e1,
const edge e2)
const override;
55 :
public AbstractVectorProperty<tlp::ColorVectorType, tlp::ColorType> {
58 : AbstractVectorProperty<ColorVectorType, tlp::ColorType>(g, n) {}
61 static const std::string propertyTypename;
62 const std::string &getTypename()
const override {
63 return propertyTypename;
A graph property that maps a std::vector<tlp::Color> value to graph elements.
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.
A graph property that maps a tlp::Color value to graph elements.