#include #include "Random.h" LAYOUTPLUGIN(Random,"Random","David Auber","01/12/1999","Ok","0","1"); using namespace std; Random::Random(PropertyContext *context):Layout(context){} Random::~Random() {} bool Random::run() { layoutProxy->setAllEdgeValue(vector(0)); getLocalProxy(superGraph,"viewSize")->setAllNodeValue(Size(1,1,1)); Iterator *itN=superGraph->getNodes(); for (;itN->hasNext();) { node itn=itN->next(); layoutProxy->setNodeValue(itn,Coord(rand()%1024,rand()%1024,rand()%1024)); } delete itN; return true; } bool Random::check(string &erreurMsg) { erreurMsg=""; return (true); } void Random::reset() {}