aGrUM 3.3.2
a C++ library for (probabilistic) graphical models
gum::dot::JunctionTreeDotStyle Struct Reference

The style of a junction tree (section notebook): size is the size of the tree, not the one of its map. More...

#include <dotStyle.h>

Inheritance diagram for gum::dot::JunctionTreeDotStyle:
[legend]
Collaboration diagram for gum::dot::JunctionTreeDotStyle:
[legend]

Static Public Member Functions

static JunctionTreeDotStyle read ()
static DotStyle readCredalNet ()
 the style of the credal networks : the colors of the nodes are the ones of the section credalnet

Public Attributes

bool withNames {true}
 show the names of the variables in the cliques
std::string separatorBgColor
std::string separatorFgColor
int separatorFontSize {0}
std::string cliqueBgColor
std::string cliqueFgColor
int cliqueFontSize {0}
double mapCliqueScale {0.}
 scale of the cliques in the map of a junction tree
double mapSepScale {0.}
 scale of the separators in the map of a junction tree
double mapEdgeLen {0.}
 length of the edges in the map of a junction tree
std::string mapSize
 size of the map of a junction tree
std::string size
 graphviz size of the graph, in inches (5, or 12! for an exact size)
std::string rankDir
 direction of the layout : TB (top-bottom) or LR (left-right)
std::string layout
 graphviz layout engine (dot, neato...)
std::string arcColor
 color of the arcs and edges, and of the border of the nodes
std::string nodeBgColor
 background color of the nodes
std::string nodeFgColor
 font color of the nodes

Detailed Description

The style of a junction tree (section notebook): size is the size of the tree, not the one of its map.

Definition at line 99 of file dotStyle.h.

Member Function Documentation

◆ read()

JunctionTreeDotStyle gum::dot::JunctionTreeDotStyle::read ( )
static

Definition at line 98 of file dotStyle.cpp.

98 {
99 JunctionTreeDotStyle style;
100 static_cast< DotStyle& >(style) = _notebook_();
101 style.size = _str_("notebook", "junctionTreeGraphSize");
102
103 style.withNames = _typed_< bool >("notebook", "junctionTreeWithNames");
104 style.separatorBgColor = _str_("notebook", "junctionTreeSeparatorBgColor");
105 style.separatorFgColor = configFgColor("notebook", "junctionTreeSeparatorFgColor");
106 style.separatorFontSize
107 = static_cast< int >(_typed_< std::int64_t >("notebook", "junctionTreeSeparatorFontSize"));
108 style.cliqueBgColor = _str_("notebook", "junctionTreeCliqueBgColor");
109 style.cliqueFgColor = configFgColor("notebook", "junctionTreeCliqueFgColor");
110 style.cliqueFontSize
111 = static_cast< int >(_typed_< std::int64_t >("notebook", "junctionTreeCliqueFontSize"));
112
113 style.mapCliqueScale = _typed_< double >("notebook", "junctionTreeMapCliqueScale");
114 style.mapSepScale = _typed_< double >("notebook", "junctionTreeMapSepScale");
115 style.mapEdgeLen = _typed_< double >("notebook", "junctionTreeMapEdgeLen");
116 style.mapSize = _str_("notebook", "junctionTreeMapSize");
117 return style;
118 }
std::string configFgColor(std::string_view section, std::string_view key)
A font color of the configuration, resolved against the background color which goes with it.
Definition dotStyle.cpp:78

References cliqueBgColor, cliqueFgColor, cliqueFontSize, gum::dot::configFgColor(), mapCliqueScale, mapEdgeLen, mapSepScale, mapSize, separatorBgColor, separatorFgColor, separatorFontSize, gum::dot::DotStyle::size, and withNames.

Here is the call graph for this function:

◆ readCredalNet()

DotStyle gum::dot::DotStyle::readCredalNet ( )
staticinherited

the style of the credal networks : the colors of the nodes are the ones of the section credalnet

Definition at line 91 of file dotStyle.cpp.

91 {
92 DotStyle style = _notebook_();
93 style.nodeBgColor = _str_("credalnet", "nodeBgColor");
94 style.nodeFgColor = configFgColor("credalnet", "nodeFgColor");
95 return style;
96 }

References gum::dot::configFgColor(), nodeBgColor, and nodeFgColor.

Referenced by gum::credal::CredalNet< GUM_SCALAR >::toDot().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ arcColor

std::string gum::dot::DotStyle::arcColor
inherited

color of the arcs and edges, and of the border of the nodes

Definition at line 84 of file dotStyle.h.

Referenced by gum::CausalModel< GUM_SCALAR >::_toDot_(), gum::dot::nodeAttributes(), gum::dot::FactorGraphDotStyle::read(), and gum::dot::writePreamble().

◆ cliqueBgColor

std::string gum::dot::JunctionTreeDotStyle::cliqueBgColor

Definition at line 105 of file dotStyle.h.

Referenced by read().

◆ cliqueFgColor

std::string gum::dot::JunctionTreeDotStyle::cliqueFgColor

Definition at line 106 of file dotStyle.h.

Referenced by read().

◆ cliqueFontSize

int gum::dot::JunctionTreeDotStyle::cliqueFontSize {0}

Definition at line 107 of file dotStyle.h.

Referenced by read().

◆ layout

std::string gum::dot::DotStyle::layout
inherited

graphviz layout engine (dot, neato...)

Definition at line 82 of file dotStyle.h.

Referenced by gum::dot::FactorGraphDotStyle::read(), and gum::dot::writePreamble().

◆ mapCliqueScale

double gum::dot::JunctionTreeDotStyle::mapCliqueScale {0.}

scale of the cliques in the map of a junction tree

Definition at line 109 of file dotStyle.h.

Referenced by read().

◆ mapEdgeLen

double gum::dot::JunctionTreeDotStyle::mapEdgeLen {0.}

length of the edges in the map of a junction tree

Definition at line 113 of file dotStyle.h.

Referenced by read().

◆ mapSepScale

double gum::dot::JunctionTreeDotStyle::mapSepScale {0.}

scale of the separators in the map of a junction tree

Definition at line 111 of file dotStyle.h.

Referenced by read().

◆ mapSize

std::string gum::dot::JunctionTreeDotStyle::mapSize

size of the map of a junction tree

Definition at line 115 of file dotStyle.h.

Referenced by read().

◆ nodeBgColor

◆ nodeFgColor

std::string gum::dot::DotStyle::nodeFgColor
inherited

font color of the nodes

Definition at line 88 of file dotStyle.h.

Referenced by gum::dot::CausalDotStyle::read(), gum::dot::FactorGraphDotStyle::read(), readCredalNet(), and gum::dot::writePreamble().

◆ rankDir

std::string gum::dot::DotStyle::rankDir
inherited

direction of the layout : TB (top-bottom) or LR (left-right)

Definition at line 80 of file dotStyle.h.

Referenced by gum::dot::writePreamble().

◆ separatorBgColor

std::string gum::dot::JunctionTreeDotStyle::separatorBgColor

Definition at line 102 of file dotStyle.h.

Referenced by read().

◆ separatorFgColor

std::string gum::dot::JunctionTreeDotStyle::separatorFgColor

Definition at line 103 of file dotStyle.h.

Referenced by read().

◆ separatorFontSize

int gum::dot::JunctionTreeDotStyle::separatorFontSize {0}

Definition at line 104 of file dotStyle.h.

Referenced by read().

◆ size

std::string gum::dot::DotStyle::size
inherited

graphviz size of the graph, in inches (5, or 12! for an exact size)

Definition at line 78 of file dotStyle.h.

Referenced by gum::dot::CausalDotStyle::read(), gum::dot::DynamicBNDotStyle::read(), gum::dot::InfluenceDiagramDotStyle::read(), gum::dot::JunctionTreeDotStyle::read(), and gum::dot::writePreamble().

◆ withNames

bool gum::dot::JunctionTreeDotStyle::withNames {true}

show the names of the variables in the cliques

Definition at line 101 of file dotStyle.h.

Referenced by read().


The documentation for this struct was generated from the following files: