19 #include <tulip/PluginProgress.h>
20 #include <tulip/PropertyInterface.h>
23 template<
typename ATTRIBUTETYPE>
28 template<
typename ATTRIBUTETYPE>
31 notifyBeforeSetAttribute(name);
33 notifyAfterSetAttribute(name);
36 template<
typename PropertyType>
38 if (existLocalProperty(name)) {
40 assert (dynamic_cast<PropertyType *>(prop)!=NULL);
41 return dynamic_cast<PropertyType *
>(prop);
44 PropertyType* prop =
new PropertyType(
this, name);
45 this->addLocalProperty(name, prop);
50 template<
typename PropertyType>
52 if (existProperty(name)) {
54 assert (dynamic_cast<PropertyType *>(prop)!=NULL);
55 return dynamic_cast<PropertyType *
>(prop);
58 return getLocalProperty<PropertyType>(name);
62 template<
typename PropertyType>
63 bool tlp::Graph::computeProperty(
const std::string &algorithm,
68 return applyPropertyAlgorithm(algorithm, prop, msg, progress, data);