ruler.hpp
Go to the documentation of this file.
void copy_tics(const Ruler &ruler)
Copy tics and from other ruler.
Definition: ruler.cpp:147
void calculate(cairo_t *cairo, Coordmapper1D &cm, bool ruler_tic_bbox_test)
Calculate ruler ranges, set tics and coordmapper.
Definition: ruler.cpp:403
void get_ranges(double &min, double &max) const
Get current ruler ranges.
Definition: ruler.cpp:221
void debug_print(std::ostream &os) const
Debug print to stream.
Definition: ruler.cpp:757
void enable_labels(bool enable)
Enable axis title and tic labels.
Definition: ruler.cpp:243
void set_endpoints(double x1, double y1, double x2, double y2)
End points in pixels for ruler.
Definition: ruler.cpp:228
void draw(cairo_t *cairo, Coordmapper1D &cm, bool recalculate=true)
Draw ruler with cairo.
Definition: ruler.cpp:576
void get_autorange(bool &autorange_min, bool &autorange_max) const
Get ruler autoranging status.
Definition: ruler.cpp:190
void set_ticlen(double inlen, double outlen)
Set tic lengths.
Definition: ruler.cpp:176
void set_autorange(bool autorange_min, bool autorange_max)
Set ruler autoranging status.
Definition: ruler.cpp:183
void set_axis_label(const std::string &label)
Set axis label.
Definition: ruler.cpp:237
void get_bbox(cairo_t *cairo, double bbox[4], Coordmapper1D &cm, bool recalculate=true)
Get bounding box of ruler.
Definition: ruler.cpp:631
1D and 2D coordinate transformations for plotter.
Plot labels.
Three dimensional vectors.