Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::plot::GridRenderer Class Reference

Public Member Functions

GridDatagetGridData ()
 
const GridDatagetGridData () const
 
 GridRenderer (const GridRenderer &rhs)=delete
 
 GridRenderer (GridData data={})
 
 GridRenderer (GridRenderer &&rhs)=default
 
GridRendereroperator= (const GridRenderer &rhs)=delete
 
GridRendereroperator= (GridRenderer &&rhs)=default
 
void render (const size2_t &outputDims, const ivec2 &origin, const ivec2 &right, const ivec2 &up, bool antialiasing=true)
 

Member Function Documentation

◆ render()

void inviwo::plot::GridRenderer::render ( const size2_t & outputDims,
const ivec2 & origin,
const ivec2 & right,
const ivec2 & up,
bool antialiasing = true )

Render the grid into the plot area of the current framebuffer spanned from pixel position origin to right and origin to up.

Parameters
outputDimsDimensions of the currently bound output framebuffer
originLower left corner of the plot area in 2D screen coordinates [0, outputDims)
rightEnd point of the major axis in 2D screen coordinates [0, outputDims)
upEnd point of the minor axis in 2D screen coordinates [0, outputDims)
antialiasingIf true, lines will be rendered using an exponential alpha fall-off at the edges and alpha blending

The documentation for this class was generated from the following file: