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 <axisrenderer.h>

+ Inheritance diagram for inviwo::plot::AxisRenderer3D:

Public Types

using Labels = detail::AxisLabels<vec3>
 

Public Member Functions

 AxisRenderer3D (const AxisSettings &settings)
 
 AxisRenderer3D (const AxisRenderer3D &rhs)=delete
 
 AxisRenderer3D (AxisRenderer3D &&rhs) noexcept=default
 
AxisRenderer3Doperator= (const AxisRenderer3D &rhs)=delete
 
AxisRenderer3Doperator= (AxisRenderer3D &&rhs) noexcept=default
 
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 (const AxisSettings &settings)
 
 AxisRendererBase (const AxisRendererBase &rhs)=delete
 
 AxisRendererBase (AxisRendererBase &&rhs) noexcept=default
 
AxisRendererBaseoperator= (const AxisRendererBase &rhs)=delete
 
AxisRendererBaseoperator= (AxisRendererBase &&rhs) noexcept=default
 
void setAxisPickingId (size_t id)
 
size_t getAxisPickingId () const
 

Additional Inherited Members

- Protected Member Functions inherited from inviwo::plot::AxisRendererBase
void renderAxis (Camera *camera, const vec3 &start, const vec3 &end, const vec3 &tickdir, const size2_t &outputDims, bool antialiasing)
 
- Static Protected Member Functions inherited from inviwo::plot::AxisRendererBase
static std::shared_ptr< MeshShaderCachegetShaders ()
 
- Protected Attributes inherited from inviwo::plot::AxisRendererBase
std::reference_wrapper< const AxisSettingssettings_
 
TextRenderer textRenderer_
 
TextureQuadRenderer quadRenderer_
 
size_t axisPickingId_ = std::numeric_limits<size_t>::max()
 
detail::AxisMeshes meshes_
 
detail::AxisCaption caption_
 
std::shared_ptr< MeshShaderCacheshaders_
 

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: