MeshLib Documentation
Loading...
Searching...
No Matches
MR::TransformControls::VisualParams Struct Reference

#include <MRObjectTransformWidget.h>

Public Member Functions

MRVIEWER_API void update (const Box3f &box)
 

Public Attributes

float radius { -1.0f }
 
float width { -1.0f }
 
float coneRadiusFactor { 1.35f }
 the product of this factor and width gives cone radius of the arrows
 
float coneSizeFactor { 2.2f }
 the product of this factor and width gives cone size of the arrows
 
float negativeLineExtension { 1.15f }
 extension of the translation line in the negative direction relative to the radius
 
float positiveLineExtension { 1.3f }
 extension of the translation line in the positive direction relative to the radius
 
std::array< Color, size_t(Axis::Count)> rotationColors { Color::red(),Color::green(),Color::blue() }
 colors of widget
 
std::array< Color, size_t(Axis::Count)> translationColors { Color::red(),Color::green(),Color::blue() }
 
Color helperLineColor { Color::black() }
 
Color activeLineColor { Color::white() }
 

Member Function Documentation

◆ update()

MRVIEWER_API void MR::TransformControls::VisualParams::update ( const Box3f & box)

Member Data Documentation

◆ activeLineColor

Color MR::TransformControls::VisualParams::activeLineColor { Color::white() }

◆ coneRadiusFactor

float MR::TransformControls::VisualParams::coneRadiusFactor { 1.35f }

the product of this factor and width gives cone radius of the arrows

◆ coneSizeFactor

float MR::TransformControls::VisualParams::coneSizeFactor { 2.2f }

the product of this factor and width gives cone size of the arrows

◆ helperLineColor

Color MR::TransformControls::VisualParams::helperLineColor { Color::black() }

◆ negativeLineExtension

float MR::TransformControls::VisualParams::negativeLineExtension { 1.15f }

extension of the translation line in the negative direction relative to the radius

◆ positiveLineExtension

float MR::TransformControls::VisualParams::positiveLineExtension { 1.3f }

extension of the translation line in the positive direction relative to the radius

◆ radius

float MR::TransformControls::VisualParams::radius { -1.0f }

◆ rotationColors

std::array<Color, size_t( Axis::Count )> MR::TransformControls::VisualParams::rotationColors { Color::red(),Color::green(),Color::blue() }

colors of widget

◆ translationColors

std::array<Color, size_t( Axis::Count )> MR::TransformControls::VisualParams::translationColors { Color::red(),Color::green(),Color::blue() }

◆ width

float MR::TransformControls::VisualParams::width { -1.0f }

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