Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::plot::detail::AxisLabels< P > Struct Template Reference

Public Types

using LabelPos = std::vector<P>
using Updater

Public Member Functions

 AxisLabels (Updater updatePos)
 AxisLabels (const AxisLabels &)=delete
 AxisLabels (AxisLabels &&) noexcept=default
AxisLabels & operator= (const AxisLabels &)=delete
AxisLabels & operator= (AxisLabels &&) noexcept=default
util::TextureAtlasgetAtlas (const AxisSettings &settings, const vec3 &start, const vec3 &end, TextRenderer &renderer)
const util::TextureAtlasgetCurrentAtlas () const
const LabelPos & getLabelPos (const AxisSettings &settings, const vec3 &start, const vec3 &end, TextRenderer &renderer, const vec3 &tickDirection)

Protected Types

using MPAtlas = MemPtr<AxisLabels, bool, &AxisLabels::validAtlas_>
using MPLabel = MemPtr<AxisLabels, LabelPos, &AxisLabels::positions_>

Protected Attributes

Updater updatePos_
util::TextureAtlas atlas_
bool validAtlas_ = false
LabelPos positions_
Guard< vec3, MPAtlas, MPLabel > startPos_
Guard< vec3, MPAtlas, MPLabel > endPos_
Guard< dvec2, MPAtlas, MPLabel > range_
Guard< PlotTextData, MPAtlas, MPLabel > labelsSettings_
Guard< std::vector< std::string >, MPAtlas > labels_
Guard< MajorTickData, MPAtlas, MPLabel > major_
Guard< vec3, MPLabel > tickDirection_
Guard< bool, MPLabel > flipped_
Guard< float, MPLabel > scalingFactor_

Member Typedef Documentation

◆ Updater

template<typename P>
using inviwo::plot::detail::AxisLabels< P >::Updater
Initial value:
std::function<void(LabelPos&, util::TextureAtlas&, const AxisSettings&,
const vec3&, const vec3&, const vec3&)>
Definition axissettings.h:45
Texture atlas for a number of strings rendered with the TextRenderer.
Definition textureatlas.h:56

The documentation for this struct was generated from the following file:
  • axisrenderer.h