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 {
43 return propertyTypename;
46 int compare(
const node n1,
const node n2)
const;
47 int compare(
const edge e1,
const edge e2)
const;
55 class TLP_SCOPE
ColorVectorProperty:
public AbstractVectorProperty<tlp::ColorVectorType, tlp::ColorType> {
57 ColorVectorProperty(
Graph *g,
const std::string& n=
"") :AbstractVectorProperty<ColorVectorType, tlp::ColorType>(g, n) {}
60 static const std::string propertyTypename;
61 const std::string& getTypename()
const {
62 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.