fixed method naming convention
parent
cab0dd0fa1
commit
e6ca595921
|
@ -61,7 +61,7 @@ void DotWriter::ConnectVariableFactor(Key key, size_t i, ostream* os) {
|
||||||
<< "factor" << i << ";\n";
|
<< "factor" << i << ";\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void DotWriter::ProcessFactor(size_t i, const KeyVector& keys,
|
void DotWriter::processFactor(size_t i, const KeyVector& keys,
|
||||||
const boost::optional<Vector2>& position,
|
const boost::optional<Vector2>& position,
|
||||||
ostream* os) const {
|
ostream* os) const {
|
||||||
if (plotFactorPoints) {
|
if (plotFactorPoints) {
|
||||||
|
|
|
@ -61,7 +61,7 @@ struct GTSAM_EXPORT DotWriter {
|
||||||
static void ConnectVariableFactor(Key key, size_t i, std::ostream* os);
|
static void ConnectVariableFactor(Key key, size_t i, std::ostream* os);
|
||||||
|
|
||||||
/// Draw a single factor, specified by its index i and its variable keys.
|
/// Draw a single factor, specified by its index i and its variable keys.
|
||||||
void ProcessFactor(size_t i, const KeyVector& keys,
|
void processFactor(size_t i, const KeyVector& keys,
|
||||||
const boost::optional<Vector2>& position,
|
const boost::optional<Vector2>& position,
|
||||||
std::ostream* os) const;
|
std::ostream* os) const;
|
||||||
};
|
};
|
||||||
|
|
|
@ -143,7 +143,7 @@ void FactorGraph<FACTOR>::dot(std::ostream& os, const DotWriter& writer,
|
||||||
const auto& factor = at(i);
|
const auto& factor = at(i);
|
||||||
if (factor) {
|
if (factor) {
|
||||||
const KeyVector& factorKeys = factor->keys();
|
const KeyVector& factorKeys = factor->keys();
|
||||||
writer.ProcessFactor(i, factorKeys, boost::none, &os);
|
writer.processFactor(i, factorKeys, boost::none, &os);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,7 @@ void NonlinearFactorGraph::dot(std::ostream& os, const Values& values,
|
||||||
// Create factors and variable connections
|
// Create factors and variable connections
|
||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
for (const KeyVector& factorKeys : structure) {
|
for (const KeyVector& factorKeys : structure) {
|
||||||
writer.ProcessFactor(i++, factorKeys, boost::none, &os);
|
writer.processFactor(i++, factorKeys, boost::none, &os);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Create factors and variable connections
|
// Create factors and variable connections
|
||||||
|
@ -129,7 +129,7 @@ void NonlinearFactorGraph::dot(std::ostream& os, const Values& values,
|
||||||
const NonlinearFactor::shared_ptr& factor = at(i);
|
const NonlinearFactor::shared_ptr& factor = at(i);
|
||||||
if (factor) {
|
if (factor) {
|
||||||
const KeyVector& factorKeys = factor->keys();
|
const KeyVector& factorKeys = factor->keys();
|
||||||
writer.ProcessFactor(i, factorKeys, writer.factorPos(min, i), &os);
|
writer.processFactor(i, factorKeys, writer.factorPos(min, i), &os);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue