14 #ifndef _AxisRepBase_H_
15 #define _AxisRepBase_H_
120 void initAxisRect (
ViewBase & view );
163 void setXLabelFont(
FontBase* font );
174 void setYLabelFont(
FontBase* font );
185 void setZLabelFont(
FontBase* font );
192 void setTitleFont(
FontBase* font );
199 void setDrawTitles(
bool set );
203 ViewBase & view,
const std::string & x_label );
206 ViewBase & view,
const std::string & y_label );
220 const Range & x_range,
221 const Range & y_range);
224 virtual void drawCrossHairs (
double x,
double y,
230 virtual void drawTitle(
ViewBase & view,
const std::string & title );
234 const std::string & z_label ) = 0;
239 virtual void drawAllXTicks (
const AxisModelBase & axisModelX,
247 virtual void drawAllYTicks (
const AxisModelBase & axisModelX,
257 virtual void drawAllZTicks (
const AxisModelBase & axis_model,
268 const std::string & ref);
273 ViewBase & view,
const std::string & mag=
"");
277 ViewBase & view,
const std::string & mag=
"");
281 virtual void drawGridLines(
const AxisModelBase & axisModelX,
307 void drawXTickLabel (
const std::string & label,
314 void drawYTickLabels (
const std::vector < AxisTick > & ticks,
315 const std::vector < float > & xv,
316 const std::vector < float > & yv,
321 void drawYTickLabel (
const std::string & label,
329 #endif // _AxisRepBase_H_
double m_x_font_size
Font size for X axis label.
double m_z_font_size
Font size for the Z axis label.
A abstract base class for font handling.
double m_font_size
Font size for the tick labels.
FontBase class interface.
float m_axis_height
The height of the rectangle in which the drawing is made.
The base class for the axis representation hierarchy.
The base class for the value to the color transformation.
float m_axis_y_origin
The y coordinate of the origin of the coordinate system.
FontBase * m_titleFont
The font to be used to for the Z label overriding the default font.
A transform that transforms coordinates from one coordinate system to another.
numeric::array clone(numeric::array arr)
FontBase * m_zLabelFont
The font to be used to for the Z label overriding the default font.
double m_x_tick_font_size
Font size for the x tick labels.
double m_y_font_size
Font size for the Y axis label.
double m_y_tick_font_size
Font size for the y tick labels.
float m_axis_width
The width of the rectangle in which the drawing is made.
FontBase * m_yLabelFont
The font to be used to for the Y label overriding the default font.
FontBase * m_xLabelFont
The font to be used to for the X label overriding the default font.
#define MDL_HIPPOPLOT_API
The AxisModelBase class maintains the Range and scaling of an axis.
bool m_draw_titles
The following flag indicates whether the titles have to be drawn or not.
float m_axis_x_origin
The x coordinate of the origin of the coordinate system.
Expresses a range of values.
The abstract base class for views.