Inviwo 0.9.12-pre
Inviwo documentation
|
Renderer for arbitrary axes in world coordinates. More...
#include <axisrenderer.h>
Public Types | |
using | Labels = detail::AxisLabels<vec3> |
Public Member Functions | |
AxisRenderer3D (const AxisSettings &settings) | |
AxisRenderer3D (const AxisRenderer3D &rhs)=delete | |
AxisRenderer3D (AxisRenderer3D &&rhs) noexcept=default | |
AxisRenderer3D & | operator= (const AxisRenderer3D &rhs)=delete |
AxisRenderer3D & | operator= (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 | |
AxisRendererBase & | operator= (const AxisRendererBase &rhs)=delete |
AxisRendererBase & | operator= (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< MeshShaderCache > | getShaders () |
Protected Attributes inherited from inviwo::plot::AxisRendererBase | |
std::reference_wrapper< const AxisSettings > | settings_ |
TextRenderer | textRenderer_ |
TextureQuadRenderer | quadRenderer_ |
size_t | axisPickingId_ = std::numeric_limits<size_t>::max() |
detail::AxisMeshes | meshes_ |
detail::AxisCaption | caption_ |
std::shared_ptr< MeshShaderCache > | shaders_ |
Renderer for arbitrary axes in world coordinates.
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.
camera | The view transformations of this camera are applied to the axis, if is not equal to nullptr |
outputDims | Dimensions of the currently bound output framebuffer |
startPos | Start point of the axis in world space |
endPos | End point of the axis in world space |
tickDirection | Direction of major and minor ticks, the length is determined through the axis settings, also defines the outside of the axis. |
antialiasing | If true, lines will be rendered using an exponential alpha fall-off at the edges and alpha blending |