19 #include <tulip/SimplePluginProgress.h>
22 template<
typename ATTRIBUTETYPE>
27 template<
typename ATTRIBUTETYPE>
30 notifyBeforeSetAttribute(name);
32 notifyAfterSetAttribute(name);
35 template<
typename PropertyType>
37 if (existLocalProperty(name)) {
39 assert (dynamic_cast<PropertyType *>(prop)!=NULL);
40 return dynamic_cast<PropertyType *
>(prop);
43 PropertyType* prop =
new PropertyType(
this, name);
44 this->addLocalProperty(name, prop);
49 template<
typename PropertyType>
51 if (existProperty(name)) {
53 assert (dynamic_cast<PropertyType *>(prop)!=NULL);
54 return dynamic_cast<PropertyType *
>(prop);
57 return getLocalProperty<PropertyType>(name);
61 template<
typename PropertyType>
62 bool tlp::Graph::computeProperty(
const std::string &algorithm,
67 return applyPropertyAlgorithm(algorithm, prop, msg, progress, data);