26#include <SimoxUtility/color/Color.h>
71 GuiGraph::ConstVertex vertex,
75 if (p.pose.has_value())
77 draw(layer, vertex.attrib().getLocationName(), p.pose.value(), vertex.attrib());
83 const std::string& name,
87 if (this->pose.has_value())
89 layer.
add(this->pose->draw(name,
pose, attribs));
99 const std::string& sourceName,
100 const std::string& targetName,
116 GuiGraph::ConstEdge edge,
123 if (src.pose.has_value() && tar.pose.has_value() &&
arrow.has_value())
125 layer.
add(
arrow->draw(edge.attrib(),
126 edge.source().attrib().getLocationName(),
127 edge.target().attrib().getLocationName(),
140 for (GuiGraph::ConstVertex v :
graph.vertices())
142 vertex->draw(layer, v, info);
145 if (
edge.has_value())
147 for (GuiGraph::ConstEdge e :
graph.edges())
149 edge->draw(layer, e, info);
DerivedT & color(Color color)
DerivedT & scale(Eigen::Vector3f scale)
void resolveLocation(Graph::Vertex &vertex, const aron::data::DictPtr &locationData)
This file is part of ArmarX.
const simox::Color defaultColorHighlighted
std::string getLocationName() const
viz::Arrow draw(const std::string &sourceName, const std::string &targetName, const core::Pose &source, const core::Pose &target) const
viz::Arrow draw(const std::string &name, const core::Pose &pose) const
viz::Pose draw(const std::string &name, const core::Pose &pose) const
const objpose::ObjectPoseMap & objects
const std::vector< ObjectInfo > & info
The EdgeData struct holds data required for the edge.
bool highlighted
Whether the edge is highlighted.
simox::Color colorHighlighted
viz::Arrow draw(const EdgeData &edge, const std::string &sourceName, const std::string &targetName, const core::Pose &source, const core::Pose &target) const
std::optional< Arrow > arrow
void draw(viz::Layer &layer, GuiGraph::ConstEdge edge, graph::visu::ObjectParserInfo info) const
std::optional< EdgeVisu > edge
void draw(viz::Layer &layer, const GuiGraph &graph, graph::visu::ObjectParserInfo info) const
std::optional< VertexVisu > vertex
The NodeData struct holds data required for the node.
bool highlighted
Whether the node is highlighted.
simox::Color colorHighlighted
viz::Arrow draw(const std::string &name, const core::Pose &pose, const VertexData &attribs) const
float scaleFactorHighlighted
viz::Pose draw(const std::string &name, const core::Pose &pose, const VertexData &attribs) const
std::optional< Pose > pose
std::optional< ForwardArrow > forwardArrow
void draw(viz::Layer &layer, GuiGraph::ConstVertex vertex, graph::visu::ObjectParserInfo info) const
void add(ElementT const &element)