Tulip
5.3.1
Large graphs analysis and drawing
|
#include <Plugin.h>
Public Member Functions | |
virtual std::string | author () const =0 |
virtual std::string | category () const =0 |
virtual std::string | date () const =0 |
void | declareDeprecatedName (const std::string &oldName) |
std::string | deprecatedName () |
virtual std::string | group () const =0 |
virtual std::string | icon () const |
virtual int | id () const |
virtual std::string | info () const =0 |
virtual std::string | major () const |
virtual std::string | minor () const |
virtual std::string | name () const =0 |
virtual std::string | programmingLanguage () const |
virtual std::string | release () const =0 |
virtual std::string | tulipMajor () const |
virtual std::string | tulipMinor () const |
virtual std::string | tulipRelease () const =0 |
Protected Attributes | |
std::string | oldName |
Top-level interface for plug-ins.
This class holds meta-information about a plug-in (group/author/version...). It stands as a unique base-class for every plugin type. This interface is not intended to be directly sublassed. Plugin objects are mainly used internally into the plugin lister system.
This classe also holds extra information about the Tulip system such as the library version the plugin was built against. Plugin creation is handled by factories generated by the PLUGIN macro and the default Plugin constructor should never be called as is.
|
pure virtual |
The name of the author of this plug-in.
|
pure virtual |
A string identifier for a plugin used for categorization purposes.
Implemented in tlp::StringAlgorithm, tlp::Perspective, tlp::SizeAlgorithm, tlp::View, tlp::LayoutAlgorithm, tlp::IntegerAlgorithm, tlp::Algorithm, tlp::DoubleAlgorithm, tlp::Interactor, tlp::ColorAlgorithm, tlp::BooleanAlgorithm, and tlp::PropertyAlgorithm.
|
pure virtual |
The creation date of the plug-in. This date is in a free format, but most Tulip plug-ins use a DD/MM/YYYY.
void tlp::Plugin::declareDeprecatedName | ( | const std::string & | oldName | ) |
Allow to declare the previous name of a plugin as deprecated in order to keep an ascending compatibility at running time.
|
inline |
|
pure virtual |
Returns the name of the group this plug-in belongs to. Groups and sub-groups are separated by two colons. e.g. trees::planar trees.
|
virtual |
The icon (preferably a thumbnail) of the plugin.
Reimplemented in tlp::Perspective, tlp::View, tlp::Interactor, and tlp::Algorithm.
|
virtual |
Returns the ID of the glyph this factory builds. this member should be removed once there is a system in Tulip to handle glyphs.
|
pure virtual |
Information about the plug-in, from the plug-in author. This information can contains anything, and the developer is completely free to put anything here. Most plug-ins by the Tulip team use an html format to generate help from these information.
|
virtual |
Only the major of the plug-in version. A version should be X.Y, X being the major.
|
virtual |
Only the minor of the plug-in version. A version should be X.Y, Y being the major.
|
pure virtual |
Returns the name of the plug-in, as registered in the Tulip plug-in system. This name must be unique, and if multiple plug-ins have the same name, only the latest encountered will be considered.
|
virtual |
|
pure virtual |
The release version of the plug-in, including major and minor. The version should be X.Y, X being the major, and Y the minor.
|
virtual |
|
virtual |
|
pure virtual |
The version of Tulip this plug-in was built with. Tulip versions are X.Y.Z, X being the major, Y the minor, and Z the patch.