#include <LabeledPolylineFigure.h>
◆ LabeledPolylineFigure()
| inet::LabeledPolylineFigure::LabeledPolylineFigure |
( |
const char * |
name = nullptr | ) |
|
◆ getLabelFigure()
| cTextFigure* inet::LabeledPolylineFigure::getLabelFigure |
( |
| ) |
const |
|
inline |
◆ getPolylineFigure()
| cPolylineFigure* inet::LabeledPolylineFigure::getPolylineFigure |
( |
| ) |
const |
|
inline |
◆ setPoints()
| void inet::LabeledPolylineFigure::setPoints |
( |
const std::vector< cFigure::Point > & |
points | ) |
|
◆ updateLabelPosition()
| void inet::LabeledPolylineFigure::updateLabelPosition |
( |
| ) |
|
|
protected |
35 int index = (points.size() - 1) / 2;
36 auto position = (points[index] + points[index + 1]) / 2;
37 auto direction = points[index + 1] - points[index];
38 double alpha = atan2(-direction.y, direction.x);
Referenced by setPoints().
◆ labelFigure
| cTextFigure* inet::LabeledPolylineFigure::labelFigure |
|
protected |
◆ panelFigure
| cPanelFigure* inet::LabeledPolylineFigure::panelFigure |
|
protected |
◆ polylineFigure
| cPolylineFigure* inet::LabeledPolylineFigure::polylineFigure |
|
protected |
The documentation for this class was generated from the following files: