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

Renderer for arbitrary axes in world coordinates. More...

#include <modules/plottinggl/utils/axisrenderer.h>

Inheritance diagram for inviwo::plot::AxisRenderer3D:

Public Member Functions

 AxisRenderer3D (AxisData data={})
 AxisRenderer3D (AxisRenderer3D &&rhs) noexcept=default
 AxisRenderer3D (const AxisRenderer3D &rhs)=delete
AxisRenderer3D & operator= (AxisRenderer3D &&rhs) noexcept=default
AxisRenderer3D & operator= (const AxisRenderer3D &rhs)=delete
void render (Camera *camera, const size2_t &outputDims, const vec3 &startPos, const vec3 &endPos, const vec3 &tickDirection, bool antialiasing=true)
Public Member Functions inherited from inviwo::plot::AxisRendererBase
 AxisRendererBase (AxisData data={})
 AxisRendererBase (AxisRendererBase &&rhs) noexcept=default
 AxisRendererBase (const AxisRendererBase &rhs)=delete
size_t getAxisPickingId () const
AxisDatagetData ()
const AxisDatagetData () const
AxisRendererBase & operator= (AxisRendererBase &&rhs) noexcept=default
AxisRendererBase & operator= (const AxisRendererBase &rhs)=delete
void setAxisPickingId (size_t id)

Additional Inherited Members

Protected Member Functions inherited from inviwo::plot::AxisRendererBase
ShadergetShader ()
void renderAxis (Camera *camera, const vec3 &start, const vec3 &end, const vec3 &tickdir, const size2_t &outputDims, bool antialiasing)
Protected Attributes inherited from inviwo::plot::AxisRendererBase
size_t axisPickingId_ = std::numeric_limits<size_t>::max()
detail::AxisCaption caption_
AxisData data_
detail::TickMesh majorMesh_
detail::TickMesh minorMesh_
TextureQuadRenderer quadRenderer_
TextRenderer textRenderer_

Detailed Description

Renderer for arbitrary axes in world coordinates.

Member Function Documentation

◆ render()

void inviwo::plot::AxisRenderer3D::render ( Camera * camera,
const size2_t & outputDims,
const vec3 & startPos,
const vec3 & endPos,
const vec3 & tickDirection,
bool antialiasing = true )

Render an axis from startPos to endPos in world coordinates of camera using the current axis settings.

Parameters
cameraThe view transformations of this camera are applied to the axis, if is not equal to nullptr
outputDimsDimensions of the currently bound output framebuffer
startPosStart point of the axis in world space
endPosEnd point of the axis in world space
tickDirectionDirection of major and minor ticks, the length is determined through the axis settings, also defines the outside of the axis.
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:
  • modules/plottinggl/include/modules/plottinggl/utils/axisrenderer.h