class Plot
Represents a set of data series in PlotData format together with information how to display them.
Plot& SetLimits(const Rectf& rect)
Plot& SetLimits(double x_min,double x_max,double y_min,double y_max)
Sets the area to be displayed.
Plot& SetFont(const Font& font)
Sets font to be used.
Plot& SetBackground(const Color& c)
Sets background color.
Plot& SetFrameColor(const Color& c)
Sets color of the frame.
Plot& SetFontColor(const Color& c)
Sets font color.
Plot& SetAxisColor(const Color& c)
Sets color of axis.
Plot& SetMode(int quality)
Sets quality of the rendering. Available values are:
|
PLOT_NOAA
|
Basic
|
PLOT_AA
|
Anti-aliased (recommended, default)
|
PLOT_SUBPIXEL
|
Subpixel precision
|
|
|
Plot& SetPlotSize(double cx,double cy)
Plot& SetPlotSize(const Size& sz)
Sets the size of the plot.
Rectf GetLimits()const
Returns the currently displayed area.
Font GetFont()const
Returns current font.
Color GetBackground()const
Returns current color of background.
Color GetFrameColor()const
Returns current color of frame.
Color GetFontColor()const
Returns current font color.
Color GetAxisColor()const
Returns current color of axis.
Size GetPlotSize()const
Returns current size of the plot.
Rectf BoundingBox(bool visibleonly=false)
Returns the smallest area that contains all the data points. If visibleonly, then only visible data sets that are accounted for.
Image GetImage()
Renders the plot.
bool CheckRange()const
Returns true if x or y dimension of displayed area is zero.
String ImgToPlotFormatted(const Point& X)const
String ImgToPlotFormatted(const Rect& X)const
Converts coordinates in pixels to the plot coordinates and returns them as String.
int StrWidth(const char *str)const
Helper function computing a width of string written in currently set font.
Pointf ImgToPlot(const Pointf& X)const
Rectf ImgToPlot(const Rectf& X)const
Converts coordinates in pixels to the plot coordinates.
Pointf PlotToImg(const Pointf& X)const
Rectf PlotToImg(const Rectf& X)const
Converts plot coordinates in pixels into pixel coordinates.
unsigned GetHashValue()const
Return hash that changes only when the visual representation of Plot changes.
Plot()
Constructs empty plot with default properties.
|