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

The style of an influence diagram (section influenceDiagram). More...

#include <dotStyle.h>

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

Static Public Member Functions

static InfluenceDiagramDotStyle 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 chanceBgColor
std::string chanceFgColor
std::string chanceShape
std::string utilityBgColor
std::string utilityFgColor
std::string utilityShape
std::string decisionBgColor
std::string decisionFgColor
std::string decisionShape
std::string decisionArcStyle
 graphviz style of the arcs pointing to a decision node
std::string utilityArcStyle
 graphviz style of the arcs pointing to a utility node
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 an influence diagram (section influenceDiagram).

Definition at line 133 of file dotStyle.h.

Member Function Documentation

◆ read()

InfluenceDiagramDotStyle gum::dot::InfluenceDiagramDotStyle::read ( )
static

Definition at line 133 of file dotStyle.cpp.

133 {
134 InfluenceDiagramDotStyle style;
135 static_cast< DotStyle& >(style) = _notebook_();
136 style.size = _str_("influenceDiagram", "graphSize");
137
138 style.chanceBgColor = _str_("influenceDiagram", "chanceBgColor");
139 style.chanceFgColor = configFgColor("influenceDiagram", "chanceFgColor");
140 style.chanceShape = _str_("influenceDiagram", "chanceShape");
141
142 style.utilityBgColor = _str_("influenceDiagram", "utilityBgColor");
143 style.utilityFgColor = configFgColor("influenceDiagram", "utilityFgColor");
144 style.utilityShape = _str_("influenceDiagram", "utilityShape");
145
146 style.decisionBgColor = _str_("influenceDiagram", "decisionBgColor");
147 style.decisionFgColor = configFgColor("influenceDiagram", "decisionFgColor");
148 style.decisionShape = _str_("influenceDiagram", "decisionShape");
149
150 style.decisionArcStyle = _str_("influenceDiagram", "decisionArcStyle");
151 style.utilityArcStyle = _str_("influenceDiagram", "utilityArcStyle");
152 return style;
153 }
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 chanceBgColor, chanceFgColor, chanceShape, gum::dot::configFgColor(), decisionArcStyle, decisionBgColor, decisionFgColor, decisionShape, gum::dot::DotStyle::size, utilityArcStyle, utilityBgColor, utilityFgColor, and utilityShape.

Referenced by gum::InfluenceDiagram< GUM_SCALAR >::toDot().

Here is the call graph for this function:
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 }

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

◆ chanceBgColor

std::string gum::dot::InfluenceDiagramDotStyle::chanceBgColor

Definition at line 134 of file dotStyle.h.

Referenced by read().

◆ chanceFgColor

std::string gum::dot::InfluenceDiagramDotStyle::chanceFgColor

Definition at line 135 of file dotStyle.h.

Referenced by read().

◆ chanceShape

std::string gum::dot::InfluenceDiagramDotStyle::chanceShape

Definition at line 136 of file dotStyle.h.

Referenced by read().

◆ decisionArcStyle

std::string gum::dot::InfluenceDiagramDotStyle::decisionArcStyle

graphviz style of the arcs pointing to a decision node

Definition at line 144 of file dotStyle.h.

Referenced by read().

◆ decisionBgColor

std::string gum::dot::InfluenceDiagramDotStyle::decisionBgColor

Definition at line 140 of file dotStyle.h.

Referenced by read().

◆ decisionFgColor

std::string gum::dot::InfluenceDiagramDotStyle::decisionFgColor

Definition at line 141 of file dotStyle.h.

Referenced by read().

◆ decisionShape

std::string gum::dot::InfluenceDiagramDotStyle::decisionShape

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

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

◆ utilityArcStyle

std::string gum::dot::InfluenceDiagramDotStyle::utilityArcStyle

graphviz style of the arcs pointing to a utility node

Definition at line 146 of file dotStyle.h.

Referenced by read().

◆ utilityBgColor

std::string gum::dot::InfluenceDiagramDotStyle::utilityBgColor

Definition at line 137 of file dotStyle.h.

Referenced by read().

◆ utilityFgColor

std::string gum::dot::InfluenceDiagramDotStyle::utilityFgColor

Definition at line 138 of file dotStyle.h.

Referenced by read().

◆ utilityShape

std::string gum::dot::InfluenceDiagramDotStyle::utilityShape

Definition at line 139 of file dotStyle.h.

Referenced by read().


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