gtsam
nonlinear
GraphvizFormatting.h
Go to the documentation of this file.
1
/* ----------------------------------------------------------------------------
2
3
* GTSAM Copyright 2010-2021, Georgia Tech Research Corporation,
4
* Atlanta, Georgia 30332-0415
5
* All Rights Reserved
6
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7
8
* See LICENSE for the license information
9
10
* -------------------------------------------------------------------------- */
11
19
#pragma once
20
21
#include <
gtsam/inference/DotWriter.h
>
22
23
namespace
gtsam
{
24
25
class
Values
;
26
class
Value;
27
32
struct
GTSAM_EXPORT
GraphvizFormatting
:
public
DotWriter
{
34
enum
Axis
{
X
,
Y
,
Z
, NEGX, NEGY, NEGZ };
35
36
Axis
paperHorizontalAxis
;
37
Axis
paperVerticalAxis;
39
double
scale
;
41
bool
mergeSimilarFactors
;
42
46
GraphvizFormatting
()
47
: paperHorizontalAxis(
Y
),
48
paperVerticalAxis(
X
),
49
scale
(1),
50
mergeSimilarFactors(false) {}
51
52
// Find bounds
53
Vector2
findBounds(
const
Values
&
values
,
const
KeySet
&
keys
)
const
;
54
56
std::optional<Vector2> extractPosition(
const
Value
&
value
)
const
;
57
59
std::optional<Vector2> variablePos(
const
Values
&
values
,
const
Vector2
&
min
,
60
Key
key
)
const
;
61
63
std::optional<Vector2> factorPos(
const
Vector2
&
min
,
size_t
i
)
const
;
64
};
65
66
}
// namespace gtsam
DotWriter.h
Graphviz formatter.
gtsam::GraphvizFormatting::mergeSimilarFactors
bool mergeSimilarFactors
Definition:
GraphvizFormatting.h:41
keys
const KeyVector keys
Definition:
testRegularImplicitSchurFactor.cpp:40
gtsam::Y
GaussianFactorGraphValuePair Y
Definition:
HybridGaussianProductFactor.cpp:29
Values
gtsam::GraphvizFormatting::Z
@ Z
Definition:
GraphvizFormatting.h:34
different_sigmas::values
HybridValues values
Definition:
testHybridBayesNet.cpp:245
X
#define X
Definition:
icosphere.cpp:20
gtsam::FastSet
Definition:
FastSet.h:51
gtsam::GraphvizFormatting::Axis
Axis
World axes to be assigned to paper axes.
Definition:
GraphvizFormatting.h:34
gtsam::GraphvizFormatting::GraphvizFormatting
GraphvizFormatting()
Definition:
GraphvizFormatting.h:46
gtsam::Value
Definition:
Value.h:39
Vector2
Definition:
test_operator_overloading.cpp:18
key
const gtsam::Symbol key('X', 0)
gtsam
traits
Definition:
SFMdata.h:40
gtsam::Values
Definition:
Values.h:65
gtsam::scale
static double scale(double x, double a, double b, double t1, double t2)
Scale x from [a, b] to [t1, t2].
Definition:
Chebyshev.cpp:35
min
#define min(a, b)
Definition:
datatypes.h:19
gtsam::GraphvizFormatting::paperHorizontalAxis
Axis paperHorizontalAxis
Definition:
GraphvizFormatting.h:36
gtsam::Key
std::uint64_t Key
Integer nonlinear key type.
Definition:
types.h:97
test_callbacks.value
value
Definition:
test_callbacks.py:160
i
int i
Definition:
BiCGSTAB_step_by_step.cpp:9
gtsam::DotWriter
DotWriter is a helper class for writing graphviz .dot files.
Definition:
DotWriter.h:36
gtsam::GraphvizFormatting
Definition:
GraphvizFormatting.h:32
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:38