Tulip
4.7.0
Better Visualization Through Research
|
Typedefs | |
typedef AbstractProperty < tlp::ColorType, tlp::ColorType > | AbstractColorProperty |
typedef AbstractProperty < tlp::GraphType, tlp::EdgeSetType > | AbstractGraphProperty |
typedef AbstractProperty < tlp::PointType, tlp::LineType > | AbstractLayoutProperty |
typedef AbstractProperty < tlp::SizeType, tlp::SizeType > | AbstractSizeProperty |
typedef AbstractProperty < tlp::StringType, tlp::StringType > | AbstractStringProperty |
typedef MinMaxProperty < tlp::DoubleType, tlp::DoubleType, tlp::NumericProperty > | DoubleMinMaxProperty |
typedef MinMaxProperty < tlp::IntegerType, tlp::IntegerType, tlp::NumericProperty > | IntegerMinMaxProperty |
typedef MinMaxProperty < tlp::PointType, tlp::LineType > | LayoutMinMaxProperty |
typedef CoordVectorProperty | LayoutVectorProperty |
Enumerations | |
enum | ElementType { NODE = 0, EDGE = 1 } |
enum | ParameterDirection { IN_PARAM =0, OUT_PARAM = 1, INOUT_PARAM = 2 } |
enum | ProgressState { TLP_CONTINUE, TLP_CANCEL, TLP_STOP } |
Functions | |
_DEPRECATED_TYPEDEF (ObserverHolder, ObserverLocker) | |
template<typename TYPE > | |
bool | _tlp_if_test (TYPE &n, _TLP_IT< TYPE > &_it) |
void CALLBACK | beginCallback (GLenum which, GLvoid *polygonData) |
QColor | colorToQColor (const Color &color) |
void CALLBACK | combineCallback (GLdouble coords[3], VERTEX *d[4], GLfloat w[4], VERTEX **dataOut, GLvoid *polygonData) |
void | convexHull (const std::vector< Coord > &points, std::vector< unsigned int > &convexHull) |
void | convexHull (const std::vector< Coord > &points, std::vector< std::vector< unsigned int > > &convexHullFacets, std::vector< std::vector< unsigned int > > &facetNeighbors) |
void | copyToGraph (Graph *outG, const Graph *inG, BooleanProperty *inSelection=NULL, BooleanProperty *outSelection=NULL) |
std::string | demangleClassName (const char *className, bool hideTlp=false) |
std::string | demangleTlpClassName (const char *className) |
void CALLBACK | endCallback (GLvoid *polygonData) |
void CALLBACK | errorCallback (GLenum errorCode) |
bool | exportGraph (Graph *graph, std::ostream &outputStream, const std::string &format, DataSet &dataSet, PluginProgress *progress=NULL) |
bool | getColorDialog (const QColor &color, QWidget *parent, const QString &title, QColor &result) |
std::istream * | getIgzstream (const std::string &name, int open_mode=std::ios::in) |
std::istream * | getInputFileStream (const std::string &filename, std::ios_base::openmode open_mode=std::ios::in) |
std::string | getMajor (const std::string &release) |
std::string | getMinor (const std::string &release) |
std::ostream * | getOgzstream (const std::string &name, int open_mode=std::ios::out) |
std::ostream * | getOutputFileStream (const std::string &filename, std::ios_base::openmode open_mode=std::ios::out) |
QString | getPluginLocalInstallationDir () |
QString | getPluginPackageName (const QString &pluginName) |
QString | getPluginStagingDirectory () |
Iterator< Graph * > * | getRootGraphs () |
unsigned int | getSeedOfRandomSequence () |
Graph * | importGraph (const std::string &format, DataSet &dataSet, PluginProgress *progress=NULL, Graph *newGraph=NULL) |
bool | inGuiTestingMode () |
void | initRandomSequence () |
void | initTulipLib (const char *appDirPath=NULL) |
void | initTulipSoftware (PluginLoader *loader=NULL, bool removeDiscardedPlugins=false) |
Graph * | loadGraph (const std::string &filename, tlp::PluginProgress *progress=NULL) |
QString | localPluginsPath () |
Graph * | newGraph () |
template<typename Obj , unsigned int SIZE> | |
std::ostream & | operator<< (std::ostream &os, const Array< Obj, SIZE > &array) |
template<typename Obj , unsigned int SIZE> | |
std::istream & | operator>> (std::istream &is, Array< Obj, SIZE > &array) |
QString | propertyInterfaceToPropertyTypeLabel (const tlp::PropertyInterface *const property) |
std::string | propertyTypeLabelToPropertyType (const QString &typeNameLabel) |
QString | propertyTypeToPropertyTypeLabel (const std::string &typeName) |
Color | QColorToColor (const QColor &color) |
bool | QStringCaseCmp (const QString &s1, const QString &s2) |
std::string | QStringToTlpString (const QString &toConvert) |
void | redirectDebugOutputToQDebug () |
void | redirectErrorOutputToQCritical () |
void | redirectWarningOutputToQWarning () |
void | removeFromGraph (Graph *ioG, BooleanProperty *inSelection=NULL) |
bool | saveGraph (Graph *graph, const std::string &filename, tlp::PluginProgress *progress=NULL) |
void | setGuiTestingMode (bool) |
void | setSeedOfRandomSequence (unsigned int seed=UINT_MAX) |
int | statPath (const std::string &pathname, tlp_stat_t *buf) |
QString | tlpStringToQString (const std::string &toConvert) |
void CALLBACK | vertexCallback (GLvoid *vertex, GLvoid *polygonData) |
This file is part of Tulip (www.tulip-software.org)
Authors: David Auber and the Tulip development Team from LaBRI, University of Bordeaux
Tulip is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Tulip is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
enum tlp::ElementType |
void tlp::convexHull | ( | const std::vector< Coord > & | points, |
std::vector< unsigned int > & | convexHull | ||
) |
function for computing a 2D convex hull
Computes a 2D convex hull using the Qhull library (www.qhull.org)
Computes the 2D convex hull and returns a list of indexes for the points on the convex hull in counterclockwise order.
The convexHull vector is automatically cleared.
void tlp::convexHull | ( | const std::vector< Coord > & | points, |
std::vector< std::vector< unsigned int > > & | convexHullFacets, | ||
std::vector< std::vector< unsigned int > > & | facetNeighbors | ||
) |
function for computing a 2D/3D convex hull
Computes a 2D/3D convex hull using the Qhull library (www.qhull.org)
Computes a 2D/3D convex hull and returns a list of the hull facets (segments for 2D, triangles for 3D) and a list of neighbors facets for each facet. A facet is defined by a list of indexes in the points vector. The neighbors facets of a facet are defined by a list of indexes in the convexHullFacets vector (facetNeighbors[i] stores the neighbors of facet convexHullFacets[i]).
The convexHullFacets and facetNeighbors vectors are automatically cleared.
std::istream* tlp::getIgzstream | ( | const std::string & | name, |
int | open_mode = std::ios::in |
||
) |
Returns an istream to read from a gzipped file (uses gzstream lib). The stream has to be deleted after use.
name | The name of the file to read from. |
open_mode | The mode to open the file with. Defaults to std::ios::in. |
std::istream* tlp::getInputFileStream | ( | const std::string & | filename, |
std::ios_base::openmode | open_mode = std::ios::in |
||
) |
Cross-platform function to get an input file stream. Its purpose is to support paths on windows platform containing non-ascii characters.
filename | an utf-8 encoded string containing the path of the file to open for performing input operations |
open_mode | the stream opening mode flags (bitwise combination of std::ios_base::openmode constants). |
std::ostream* tlp::getOgzstream | ( | const std::string & | name, |
int | open_mode = std::ios::out |
||
) |
Returns an ostream to write to a gzipped file (uses gzstream lib). The stream has to be deleted after use.
name | The name of the file to write to. |
open_mode | The mode to open the file with. Defaults to std::ios::out. |
std::ostream* tlp::getOutputFileStream | ( | const std::string & | filename, |
std::ios_base::openmode | open_mode = std::ios::out |
||
) |
Cross-platform function to get an output file stream. Its purpose is to support paths on windows platform containing non-ascii characters.
filename | an utf-8 encoded string containing the path of the file to open for performing output operations |
open_mode | the stream opening mode flags (bitwise combination of std::ios_base::openmode constants). |
QString tlp::getPluginPackageName | ( | const QString & | pluginName | ) |
Gets the name of the package to retrieve for this version of tulip. The package name uses the Tulip release, platform (windows, unix, ...), architecture (x86, x86_64), and compiler used (GCC, Clang, MSVC) to determine which package this version can use.
pluginName | The name of the plugin for which we want the package name. |
unsigned int tlp::getSeedOfRandomSequence | ( | ) |
return the value of the seed used for further initialization of a random sequence
void tlp::initRandomSequence | ( | ) |
initialize a random sequence with the seed previously set Further calls to rand() or rand_r(...) will return the elements of that sequence
void tlp::initTulipSoftware | ( | PluginLoader * | loader = NULL , |
bool | removeDiscardedPlugins = false |
||
) |
Sets up environment when creating an executable using Tulip libraries This method performs basic operations when starting a software using Tulip: .
std::ostream & tlp::operator<< | ( | std::ostream & | os, |
const Array< Obj, SIZE > & | array | ||
) |
std::istream & tlp::operator>> | ( | std::istream & | is, |
tlp::Array< Obj, SIZE > & | outA | ||
) |
|
inline |
Get the string to display as property type for the given property. The property type label is the string to display in the GUI instead of the property type string. By example for a property of type "double" the label displayed in the GUI will be "Metric".
Definition at line 79 of file TlpQtTools.h.
std::string tlp::propertyTypeLabelToPropertyType | ( | const QString & | typeNameLabel | ) |
Convert the label of a property type to it's corresponding property type. The property type label is the string to display in the GUI instead of the property type string. By example for a property of type "double" the label displayed in the GUI will be "Metric".
QString tlp::propertyTypeToPropertyTypeLabel | ( | const std::string & | typeName | ) |
Convert the property type string to a label to display in the GUI. The property type label is the string to display in the GUI instead of the basic property type string. By example for a property of type "double" the label displayed in the GUI will be "Metric".
|
inline |
Case insensitive comparison of two QStrings.
Definition at line 61 of file TlpQtTools.h.
|
inline |
Convert a string from Tulip to QString.
Definition at line 48 of file TlpQtTools.h.
void tlp::redirectDebugOutputToQDebug | ( | ) |
redirect tlp::debug() to qDebug()
void tlp::redirectErrorOutputToQCritical | ( | ) |
redirect tlp::error() to qCritical()
void tlp::redirectWarningOutputToQWarning | ( | ) |
redirect tlp::warning() to qWarning()
void tlp::setSeedOfRandomSequence | ( | unsigned int | seed = UINT_MAX | ) |
give the value of the seed used for further initialization of a random sequence (with further calls to rand() or rand_r(...)).
seed | the value of the seed. Set seed to UINT_MAX if you need a random choice of the seed. |
int tlp::statPath | ( | const std::string & | pathname, |
tlp_stat_t * | buf | ||
) |
Cross-platform function to stat a path on a filesystem. Its purpose is to support paths on windows platform containing non-ascii characters.
pathname | an utf-8 encoded string containing the path name to stat |
buf | a pointer to a tlp_stat_t structure (a typedef for struct stat) |
|
inline |
Convert a QString to tulip string.
Definition at line 54 of file TlpQtTools.h.