Go to the documentation of this file.
39 const unsigned pNPoints,
const fg_dtype pType,
75 const float pRed,
const float pGreen,
76 const float pBlue,
const float pAlpha);
256 const float pBlue,
const float pAlpha);
FGAPI ~Plot()
Plot Destructor.
FGAPI fg_err fg_get_plot_alpha_buffer_size(unsigned *pOut, const fg_plot pPlot)
Get the alpha values buffer size in bytes.
FGAPI fg_err fg_release_plot(fg_plot pPlot)
Destroy plot object.
Plot is a line graph to display two dimensional data.
Definition: plot.h:198
@ FG_MARKER_NONE
No marker.
Definition: defines.h:167
void * fg_plot
Definition: defines.h:45
dtype
Definition: defines.h:188
fg_err
Definition: defines.h:49
FGAPI fg_err fg_get_plot_alpha_buffer(unsigned *pOut, const fg_plot pPlot)
Get the resource identifier for alpha values buffer.
FGAPI fg_err fg_get_plot_radii_buffer_size(unsigned *pOut, const fg_plot pPlot)
Get the markers buffer size in bytes.
FGAPI void setLegend(const char *pLegend)
Set plot legend.
FGAPI fg_err fg_get_plot_color_buffer_size(unsigned *pOut, const fg_plot pPlot)
Get the colors buffer size in bytes.
FGAPI unsigned vertices() const
Get the buffer identifier for vertices.
FGAPI fg_err fg_get_plot_color_buffer(unsigned *pOut, const fg_plot pPlot)
Get the resource identifier for colors buffer.
FGAPI void setColor(const forge::Color pColor)
Set the color of line graph(plot)
FGAPI unsigned colors() const
Get the buffer identifier for color values per vertex.
@ FG_PLOT_LINE
Line plot.
Definition: defines.h:161
FGAPI unsigned radiiSize() const
Get the marker sizes buffer size in bytes.
fg_dtype
Definition: defines.h:150
FGAPI unsigned verticesSize() const
Get the vertex buffer size in bytes.
FGAPI void setMarkerSize(const float pMarkerSize)
Set global marker size.
FGAPI unsigned colorsSize() const
Get the colors buffer size in bytes.
fg_marker_type
Definition: defines.h:166
FGAPI fg_err fg_retain_plot(fg_plot *pOut, fg_plot pIn)
Increase reference count of the resource.
fg_color
Definition: defines.h:139
FGAPI unsigned alphasSize() const
Get the alpha values buffer size in bytes.
FGAPI fg_err fg_get_plot_vertex_buffer_size(unsigned *pOut, const fg_plot pPlot)
Get the vertices buffer size in bytes.
FGAPI fg_plot get() const
Get the handle to internal implementation of plot.
FGAPI Plot(const unsigned pNumPoints, const dtype pDataType, const ChartType pChartType, const PlotType pPlotType=FG_PLOT_LINE, const MarkerType pMarkerType=FG_MARKER_NONE)
Creates a Plot object.
FGAPI unsigned alphas() const
Get the buffer identifier for alpha values per vertex.
FGAPI fg_err fg_set_plot_color(fg_plot pPlot, const float pRed, const float pGreen, const float pBlue, const float pAlpha)
Set the color of line graph(plot)
FGAPI fg_err fg_get_plot_vertex_buffer(unsigned *pOut, const fg_plot pPlot)
Get the resource identifier for vertices buffer.
FGAPI fg_err fg_get_plot_radii_buffer(unsigned *pOut, const fg_plot pPlot)
Get the resource identifier for markers radii buffer.
FGAPI fg_err fg_set_plot_marker_size(fg_plot pPlot, const float pMarkerSize)
Set global marker size.
fg_plot_type
Definition: defines.h:160
FGAPI fg_err fg_set_plot_legend(fg_plot pPlot, const char *pLegend)
Set plot legend.
fg_chart_type
Definition: defines.h:117
FGAPI unsigned radii() const
Get the buffer identifier for per vertex marker sizes.
FGAPI fg_err fg_create_plot(fg_plot *pPlot, const unsigned pNPoints, const fg_dtype pType, const fg_chart_type pChartType, const fg_plot_type pPlotType, const fg_marker_type pMarkerType)
Create a Plot object.
#define FGAPI
Definition: defines.h:28