21 #ifndef GLNOMINATIVEAXIS_H_ 22 #define GLNOMINATIVEAXIS_H_ 26 #include <tulip/GlAxis.h> 35 class TLP_GL_SCOPE GlNominativeAxis :
public GlAxis {
50 GlNominativeAxis(
const std::string &axisName,
const Coord &axisBaseCoord,
const float axisLength,
51 const AxisOrientation &axisOrientation,
const Color &axisColor);
64 void setAxisGraduationsLabels(
const std::vector<std::string> &axisGradsLabels,
65 const LabelPosition &labelsPosition);
72 void updateAxis()
override;
79 Coord getAxisPointCoordForValue(
const std::string &value);
87 std::string getValueAtAxisPoint(
const Coord &axisPointCoord);
89 void translate(
const Coord &c)
override;
92 void buildAxisGraduations();
94 std::vector<std::string> labelsOrder;
95 std::map<std::string, Coord> labelsCoord;
96 LabelPosition axisLabelsPosition;