MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::ImGuiMeasurementIndicators::Params Struct Reference

#include <MRImGuiMeasurementIndicators.h>

Public Member Functions

MRVIEWER_API Params ()
 ]
 

Public Attributes

ImDrawList * list = ImGui::GetBackgroundDrawList()
 
Color colorMain
 
Color colorOutline
 
Color colorText
 
Color colorTextOutline
 
Color colorTextOutlineHovered
 
Color colorTextOutlineActive
 
float pointDiameter = 6
 
float width = 1.5f
 
float smallWidth = 0.75f
 
float outlineWidth = 1.5f
 
float textOutlineWidth = 4.f
 
float textOutlineRounding = 3.f
 
float clickableLabelLineWidth = 1.f
 
float clickableLabelLineWidthSelected = 2.f
 
float clickableLabelOutlineWidth = 1.f
 
float arrowLen = 12
 
float arrowHalfWidth = 4
 
float arrowTipBackwardOffset = 2.5f
 
ImVec2 textToLineSpacingA = ImVec2( 0, 0 )
 The spacing box around the text is extended by this amount.
 
ImVec2 textToLineSpacingB = ImVec2( 0, 0 )
 Top-left corner.
 
float textToLineSpacingRadius = 8
 Further, the lines around the text are shortened by this amount.
 
float totalLenThreshold = 48
 
float invertedOverhang = 24
 When drawing inverted (short) distances, the line is extended by this amount on both sides.
 
float leaderLineLen = 20
 The length of the leader lines (short lines attaching text to other things).
 
float notchHalfLen = 8
 A small perpendicular line at the end of some arrows.
 
Stipple stippleDashed
 

Constructor & Destructor Documentation

◆ Params()

MRVIEWER_API MR::ImGuiMeasurementIndicators::Params::Params ( )

]

This picks the colors based on the current color theme.

Member Data Documentation

◆ arrowHalfWidth

float MR::ImGuiMeasurementIndicators::Params::arrowHalfWidth = 4

◆ arrowLen

float MR::ImGuiMeasurementIndicators::Params::arrowLen = 12

◆ arrowTipBackwardOffset

float MR::ImGuiMeasurementIndicators::Params::arrowTipBackwardOffset = 2.5f

The arrow tip is moved back for this amount of pixels, to compensate for the outline that otherwise makes the tip look longer than it actually is. This only applies if the tip doesn't continue into a line.

◆ clickableLabelLineWidth

float MR::ImGuiMeasurementIndicators::Params::clickableLabelLineWidth = 1.f

◆ clickableLabelLineWidthSelected

float MR::ImGuiMeasurementIndicators::Params::clickableLabelLineWidthSelected = 2.f

◆ clickableLabelOutlineWidth

float MR::ImGuiMeasurementIndicators::Params::clickableLabelOutlineWidth = 1.f

◆ colorMain

Color MR::ImGuiMeasurementIndicators::Params::colorMain

◆ colorOutline

Color MR::ImGuiMeasurementIndicators::Params::colorOutline

◆ colorText

Color MR::ImGuiMeasurementIndicators::Params::colorText

◆ colorTextOutline

Color MR::ImGuiMeasurementIndicators::Params::colorTextOutline

◆ colorTextOutlineActive

Color MR::ImGuiMeasurementIndicators::Params::colorTextOutlineActive

◆ colorTextOutlineHovered

Color MR::ImGuiMeasurementIndicators::Params::colorTextOutlineHovered

◆ invertedOverhang

float MR::ImGuiMeasurementIndicators::Params::invertedOverhang = 24

When drawing inverted (short) distances, the line is extended by this amount on both sides.

◆ leaderLineLen

float MR::ImGuiMeasurementIndicators::Params::leaderLineLen = 20

The length of the leader lines (short lines attaching text to other things).

◆ list

ImDrawList* MR::ImGuiMeasurementIndicators::Params::list = ImGui::GetBackgroundDrawList()

◆ notchHalfLen

float MR::ImGuiMeasurementIndicators::Params::notchHalfLen = 8

A small perpendicular line at the end of some arrows.

◆ outlineWidth

float MR::ImGuiMeasurementIndicators::Params::outlineWidth = 1.5f

◆ pointDiameter

float MR::ImGuiMeasurementIndicators::Params::pointDiameter = 6

◆ smallWidth

float MR::ImGuiMeasurementIndicators::Params::smallWidth = 0.75f

◆ stippleDashed

Stipple MR::ImGuiMeasurementIndicators::Params::stippleDashed

We don't use those directly, but you can pass them to LineParams::stipple if you want: [


◆ textOutlineRounding

float MR::ImGuiMeasurementIndicators::Params::textOutlineRounding = 3.f

◆ textOutlineWidth

float MR::ImGuiMeasurementIndicators::Params::textOutlineWidth = 4.f

◆ textToLineSpacingA

ImVec2 MR::ImGuiMeasurementIndicators::Params::textToLineSpacingA = ImVec2( 0, 0 )

The spacing box around the text is extended by this amount.

◆ textToLineSpacingB

ImVec2 MR::ImGuiMeasurementIndicators::Params::textToLineSpacingB = ImVec2( 0, 0 )

Top-left corner.

◆ textToLineSpacingRadius

float MR::ImGuiMeasurementIndicators::Params::textToLineSpacingRadius = 8

Further, the lines around the text are shortened by this amount.

Bottom-right corner.

◆ totalLenThreshold

float MR::ImGuiMeasurementIndicators::Params::totalLenThreshold = 48

For a distance, when the total length is less than this, an alternative rendering method is used. If the text is added, its size can make the actual threshold larger.

◆ width

float MR::ImGuiMeasurementIndicators::Params::width = 1.5f

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