#include <dotgenerator.h>
◆ DotGenerator()
DotGenerator::DotGenerator |
( |
| ) |
|
◆ availableConfigFiles()
Return a list of available templates for a given scene type
- Parameters
-
scene | The diagram |
configFiles | will contain the collected list of config files |
- Returns
- true if collecting succeeds
◆ createDotFile()
Create dot file using displayed widgets and associations of the provided scene
- Note
- This method could also be used as a base to export diagrams as dot file
- Parameters
-
scene | The diagram from which the widget information is fetched |
fileName | Filename where to create the dot file |
variant | Variant string passed to readConfigFile() |
- Returns
- true if generating finished successfully
◆ currentDotPath()
QString DotGenerator::currentDotPath |
( |
| ) |
|
|
static |
Return the path where dot is installed.
- Returns
- string with dot path
◆ findItem()
Find string starting with the search string in string list
- Parameters
-
params | string list to search in |
search | string |
- Returns
- true when search string has been found
◆ fixID()
There are id wrapped with '"', remove it.
◆ generatorFullPath()
QString DotGenerator::generatorFullPath |
( |
| ) |
const |
◆ generatorVersion()
int DotGenerator::generatorVersion |
( |
| ) |
const |
|
protected |
get generator version
- Returns
- version for example 20130928
◆ readConfigFile()
Read a layout config file
- Parameters
-
diagramType | String identifying the diagram |
variant | String identifying the variant |
- Returns
- true on success
◆ setGeneratorName()
◆ setUseFullNodeLabels()
void DotGenerator::setUseFullNodeLabels |
( |
bool | state | ) |
|
Set usage of full node labels. When set to true labels are extracted from the text output generated by the widget's paint method.
- Parameters
-
◆ setUsePosition()
void DotGenerator::setUsePosition |
( |
bool | state | ) |
|
set usage of position attribute in dot file
- Parameters
-
◆ useFullNodeLabels()
bool DotGenerator::useFullNodeLabels |
( |
| ) |
const |
return usage of full node labels
- Returns
- true if position are used
◆ usePosition()
bool DotGenerator::usePosition |
( |
| ) |
const |
return usage of position attribute
- Returns
- true if position are used
◆ operator<<
◆ m_configFileName
QString DotGenerator::m_configFileName |
|
protected |
◆ m_dotParameters
contains global graph parameters
◆ m_dotPath
contains path to generator executable
◆ m_edgeParameters
contains global edge parameters
◆ m_generator
name of graphviz generator
◆ m_nodeParameters
contains global node parameters
◆ m_origin
◆ m_scale
◆ m_useFullNodeLabels
bool DotGenerator::m_useFullNodeLabels |
|
protected |
◆ m_usePosition
bool DotGenerator::m_usePosition |
|
protected |
use position tag from dot (not used yet)
◆ m_version
int DotGenerator::m_version {0} |
|
protected |
version of graphviz generator
The documentation for this class was generated from the following files: