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

The style of a dynamic Bayesian network (section dynamicBN) : the colors of its clusters. More...

#include <dotStyle.h>

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

Static Public Member Functions

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

Public Attributes

std::string timeSliceBgColor
 background color of the cluster of a time slice
std::string replicatedSliceBgColor
 background color of the cluster of the replicated slice
std::string atemporalBgColor
 background color of the cluster of the atemporal variables
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 dynamic Bayesian network (section dynamicBN) : the colors of its clusters.

Definition at line 164 of file dotStyle.h.

Member Function Documentation

◆ read()

DynamicBNDotStyle gum::dot::DynamicBNDotStyle::read ( )
static

Definition at line 168 of file dotStyle.cpp.

168 {
169 DynamicBNDotStyle style;
170 static_cast< DotStyle& >(style) = _notebook_();
171 style.size = _str_("dynamicBN", "graphSize");
172
173 style.timeSliceBgColor = _str_("dynamicBN", "timeSliceBgColor");
174 style.replicatedSliceBgColor = _str_("dynamicBN", "replicatedSliceBgColor");
175 style.atemporalBgColor = _str_("dynamicBN", "atemporalBgColor");
176 return style;
177 }

References atemporalBgColor, replicatedSliceBgColor, gum::dot::DotStyle::size, and timeSliceBgColor.

Referenced by gum::KTBN< GUM_SCALAR >::_timeSlicesToDot_().

Here is the caller 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 }
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 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().

◆ atemporalBgColor

std::string gum::dot::DynamicBNDotStyle::atemporalBgColor

background color of the cluster of the atemporal variables

Definition at line 170 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().

◆ 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().

◆ replicatedSliceBgColor

std::string gum::dot::DynamicBNDotStyle::replicatedSliceBgColor

background color of the cluster of the replicated slice

Definition at line 168 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().

◆ timeSliceBgColor

std::string gum::dot::DynamicBNDotStyle::timeSliceBgColor

background color of the cluster of a time slice

Definition at line 166 of file dotStyle.h.

Referenced by read().


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