/* * PlPlotUtil.hh * * Created on: 22 apr. 2016 * Author: AKKA */ #ifndef PLPLOTUTIL_HH_ #define PLPLOTUTIL_HH_ #include #include #include "Font.hh" #include "Label.hh" #include "Page.hh" namespace plot { class PlPlotUtil { public: static const float DEFAULT_CHARACTER_SIZE; //Fraction of title character height static const float LINE_SPACE_TITLE; /** * @brief Set font to plPlot. * @return */ static void setPlFont(const Font& font); /** * @brief Calculate character height and width. * @return Returns size of character where first element is width and second height. */ static CharSize getCharacterSizeInPlPage(Page* pPage); static double getTextWidthInPlPage(Page* pPage, const char* text); static PLINT getPlFontFamily(const Font& font); static PLFLT getPlFontScaleFactor(const Font& font); static PLFLT getPlFontDef(const Font& font); static PLINT getPlFontStyle(const Font& font); static PLINT getPlFontWeight(const Font& font); }; } /* namespace plot */ #endif /* PLPLOTUTIL_HH_ */