Overview     Modules     Class Hierarchy     Classes     Members  
tlp::ControllerAlgorithmTools Class Reference

Algorithm tools for Controller. More...

#include <ControllerAlgorithmTools.h>

List of all members.

Static Public Member Functions

  • static ParameterDescriptionList & getPluginParameters (TemplateFactoryInterface *factory, const std::string &name)
  • static void cleanPluginParameters ()
  • static bool applyAlgorithm (Graph *graph, QWidget *parent, const std::string &name, DataSet *dataSet)
  • static bool applyAlgorithm (Graph *graph, QWidget *parent, const std::string &name)
  • static bool changeProperty (Graph *graph, QWidget *parent, const std::string &name, const std::string &destination, const std::string &destinationType, View *view=NULL, DataSet dataSet=DataSet(), bool query=true, bool redraw=false, bool push=true)
  • static bool changeString (Graph *graph, QWidget *parent, const std::string &name, const std::string &propertyName, View *view=NULL)
  • static bool changeBoolean (Graph *graph, QWidget *parent, const std::string &name, const std::string &propertyName, View *view=NULL)
  • static bool changeMetric (Graph *graph, QWidget *parent, const std::string &name, const std::string &propertyName, View *view=NULL, bool mapMetric=false, const std::string &colorAlgorithmName="", const std::string &colorPropertyName="")
  • static bool changeLayout (Graph *graph, QWidget *parent, const std::string &name, const std::string &propertyName, View *view=NULL)
  • static bool changeInt (Graph *graph, QWidget *parent, const std::string &name, const std::string &propertyName, View *view=NULL)
  • static bool changeColors (Graph *graph, QWidget *parent, const std::string &name, const std::string &propertyName, View *view=NULL)
  • static bool changeSizes (Graph *graph, QWidget *parent, const std::string &name, const std::string &propertyName, View *view=NULL)
  • static void isAcyclic (Graph *graph, QWidget *parent)
  • static void makeAcyclic (Graph *graph, bool pushGraph=true)
  • static void isSimple (Graph *graph, QWidget *parent)
  • static void makeSimple (Graph *graph, bool pushGraph=true)
  • static void isConnected (Graph *graph, QWidget *parent)
  • static void makeConnected (Graph *graph, bool pushGraph=true)
  • static void isBiconnected (Graph *graph, QWidget *parent)
  • static void makeBiconnected (Graph *graph, bool pushGraph=true)
  • static void isTriconnected (Graph *graph, QWidget *parent)
  • static void isTree (Graph *graph, QWidget *parent)
  • static void isFreeTree (Graph *graph, QWidget *parent)
  • static void makeDirected (QWidget *parent, Graph *graph, bool pushGraph=true)
  • static void isPlanar (Graph *graph, QWidget *parent)
  • static void isOuterPlanar (Graph *graph, QWidget *parent)

Detailed Description

Algorithm tools for Controller.

This class contain tools to use algorithm in Controllers


Member Function Documentation

static bool tlp::ControllerAlgorithmTools::applyAlgorithm ( Graph *  graph,
QWidget *  parent,
const std::string &  name,
DataSet *  dataSet 
) [static]

Apply an algorithm on graph with given name and given dataSet, if the algorithm has a problem : display it in a QDialog in parent widget and return false

static bool tlp::ControllerAlgorithmTools::applyAlgorithm ( Graph *  graph,
QWidget *  parent,
const std::string &  name 
) [static]

Apply an algorithm on graph with given name, and if the algorithm has a problem : display it in a QDialog in parent widget and return false

static bool tlp::ControllerAlgorithmTools::changeBoolean ( Graph *  graph,
QWidget *  parent,
const std::string &  name,
const std::string &  propertyName,
View view = NULL 
) [static]

Apply a boolean property algorithm with given name on property with name : propertyName on graph if algorithm has a problem : display it in a QDialog in parent widget view is use to preview result

static bool tlp::ControllerAlgorithmTools::changeColors ( Graph *  graph,
QWidget *  parent,
const std::string &  name,
const std::string &  propertyName,
View view = NULL 
) [static]

Apply a color property algorithm with given name on property with name : propertyName on graph if algorithm has a problem : display it in a QDialog in parent widget view is use to preview result

static bool tlp::ControllerAlgorithmTools::changeInt ( Graph *  graph,
QWidget *  parent,
const std::string &  name,
const std::string &  propertyName,
View view = NULL 
) [static]

Apply an integer property algorithm with given name on property with name : propertyName on graph if algorithm has a problem : display it in a QDialog in parent widget view is use to preview result

static bool tlp::ControllerAlgorithmTools::changeLayout ( Graph *  graph,
QWidget *  parent,
const std::string &  name,
const std::string &  propertyName,
View view = NULL 
) [static]

Apply a layout property algorithm with given name on property with name : propertyName on graph if algorithm has a problem : display it in a QDialog in parent widget view is use to preview result

static bool tlp::ControllerAlgorithmTools::changeMetric ( Graph *  graph,
QWidget *  parent,
const std::string &  name,
const std::string &  propertyName,
View view = NULL,
bool  mapMetric = false,
const std::string &  colorAlgorithmName = "",
const std::string &  colorPropertyName = "" 
) [static]

Apply a metric property algorithm with given name on property with name : propertyName on graph if algorithm has a problem : display it in a QDialog in parent widget view is use to preview result if mapMetric is at true : apply a color algoritm after metric algorithm

static bool tlp::ControllerAlgorithmTools::changeProperty ( Graph *  graph,
QWidget *  parent,
const std::string &  name,
const std::string &  destination,
const std::string &  destinationType,
View view = NULL,
DataSet  dataSet = DataSet(),
bool  query = true,
bool  redraw = false,
bool  push = true 
) [static]

Change a property on graph with algorithm with given name and store result in destination property view is use to preview result if redraw are at true if query is at true, open a parameters widget (if need) if push is at true, save graph before modify it with push/pop system if algorithm has a problem : display it in a QDialog in parent widget

static bool tlp::ControllerAlgorithmTools::changeSizes ( Graph *  graph,
QWidget *  parent,
const std::string &  name,
const std::string &  propertyName,
View view = NULL 
) [static]

Apply a size property algorithm with given name on property with name : propertyName on graph if algorithm has a problem : display it in a QDialog in parent widget view is use to preview result

static bool tlp::ControllerAlgorithmTools::changeString ( Graph *  graph,
QWidget *  parent,
const std::string &  name,
const std::string &  propertyName,
View view = NULL 
) [static]

Apply a string property algorithm with given name on property with name : propertyName on graph if algorithm has a problem : display it in a QDialog in parent widget view is use to preview result

static void tlp::ControllerAlgorithmTools::cleanPluginParameters ( ) [static]

Remove entries from the parameters map if the plugin does not exist anymore

static ParameterDescriptionList& tlp::ControllerAlgorithmTools::getPluginParameters ( TemplateFactoryInterface *  factory,
const std::string &  name 
) [static]

Return parameters need by a plugin

static void tlp::ControllerAlgorithmTools::isAcyclic ( Graph *  graph,
QWidget *  parent 
) [static]

Test if graph is acyclic and display result in a QWidget in parent widget

static void tlp::ControllerAlgorithmTools::isBiconnected ( Graph *  graph,
QWidget *  parent 
) [static]

Test if graph is biconnected and display result in a QWidget in parent widget

static void tlp::ControllerAlgorithmTools::isConnected ( Graph *  graph,
QWidget *  parent 
) [static]

Test if graph is connected and display result in a QWidget in parent widget

static void tlp::ControllerAlgorithmTools::isFreeTree ( Graph *  graph,
QWidget *  parent 
) [static]

Test if graph is a free tree and display result in a QWidget in parent widget

static void tlp::ControllerAlgorithmTools::isOuterPlanar ( Graph *  graph,
QWidget *  parent 
) [static]

Test if graph is outer planar and display result in a QWidget in parent widget

static void tlp::ControllerAlgorithmTools::isPlanar ( Graph *  graph,
QWidget *  parent 
) [static]

Test if graph is planar and display result in a QWidget in parent widget

static void tlp::ControllerAlgorithmTools::isSimple ( Graph *  graph,
QWidget *  parent 
) [static]

Test if graph is simple and display result in a QWidget in parent widget

static void tlp::ControllerAlgorithmTools::isTree ( Graph *  graph,
QWidget *  parent 
) [static]

Test if graph is a tree and display result in a QWidget in parent widget

static void tlp::ControllerAlgorithmTools::isTriconnected ( Graph *  graph,
QWidget *  parent 
) [static]

Test if graph is triconnected and display result in a QWidget in parent widget

static void tlp::ControllerAlgorithmTools::makeAcyclic ( Graph *  graph,
bool  pushGraph = true 
) [static]

Modify graph to make it acyclic if push is at true : save graph before modification with push/pop system

static void tlp::ControllerAlgorithmTools::makeBiconnected ( Graph *  graph,
bool  pushGraph = true 
) [static]

Modify graph to make it biconnected if push is at true : save graph before modification with push/pop system

static void tlp::ControllerAlgorithmTools::makeConnected ( Graph *  graph,
bool  pushGraph = true 
) [static]

Modify graph to make it connected if push is at true : save graph before modification with push/pop system

static void tlp::ControllerAlgorithmTools::makeDirected ( QWidget *  parent,
Graph *  graph,
bool  pushGraph = true 
) [static]

Modify graph to make it directed if push is at true : save graph before modification with push/pop system

static void tlp::ControllerAlgorithmTools::makeSimple ( Graph *  graph,
bool  pushGraph = true 
) [static]

Modify graph to make it simple if push is at true : save graph before modification with push/pop system



Tulip Software by LaBRI Visualization Team    2001 - 2012