52 cLineFigure *xAxis =
new cLineFigure(
"xAxis");
53 cLineFigure *yAxis =
new cLineFigure(
"yAxis");
54 cLineFigure *zAxis =
new cLineFigure(
"zAxis");
55 auto axisTags = std::string(
"axis ") +
tags;
56 xAxis->setTags(axisTags.c_str());
57 yAxis->setTags(axisTags.c_str());
58 zAxis->setTags(axisTags.c_str());
59 xAxis->setTooltip(
"This arrow represents the X axis of the playground");
60 yAxis->setTooltip(
"This arrow represents the Y axis of the playground");
61 zAxis->setTooltip(
"This arrow represents the Z axis of the playground");
62 xAxis->setLineWidth(1);
63 yAxis->setLineWidth(1);
64 zAxis->setLineWidth(1);
65 xAxis->setEndArrowhead(cFigure::ARROW_BARBED);
66 yAxis->setEndArrowhead(cFigure::ARROW_BARBED);
67 zAxis->setEndArrowhead(cFigure::ARROW_BARBED);
68 xAxis->setZoomLineWidth(
false);
69 yAxis->setZoomLineWidth(
false);
70 zAxis->setZoomLineWidth(
false);
80 cLabelFigure *xLabel =
new cLabelFigure(
"xAxisLabel");
81 cLabelFigure *yLabel =
new cLabelFigure(
"yAxisLabel");
82 cLabelFigure *zLabel =
new cLabelFigure(
"zAxisLabel");
83 auto axisLabelTags = std::string(
"axis label ") +
tags;
84 xLabel->setTags(axisLabelTags.c_str());
85 yLabel->setTags(axisLabelTags.c_str());
86 zLabel->setTags(axisLabelTags.c_str());
const char * tags
Definition: VisualizerBase.h:32
static const Coord ZERO
Definition: Coord.h:41
cFigure::Point computeCanvasPoint(const Coord &point) const
Definition: CanvasProjection.cc:32
cGroupFigure * axisLayer
Definition: SceneCanvasVisualizer.h:33
CanvasProjection canvasProjection
Definition: SceneCanvasVisualizer.h:32