Skip to main content

MaskDisplayOptions

MaskDisplayOptions

Display options for mask data.

#include <DisplayOptions.hpp>

Public Functions

Name
std::string & hex_color()
std::string const & hex_color() const
float & alpha()
float const & alpha() const
bool & is_visible()
bool const & is_visible() const

Public Attributes

Name
rfl::Flatten< CommonDisplayFields > common
Flattened common fields.
bool show_bounding_box
Show bounding box around the mask.
bool show_outline
Show outline of the mask as a thick line.
bool use_as_transparency
Use mask as transparency layer (invert display).
CoordinateMappingMode coordinate_mapping
How data coordinates map to canvas.

Public Functions Documentation

function hex_color

inline std::string & hex_color()

function hex_color

inline std::string const & hex_color() const

function alpha

inline float & alpha()

function alpha

inline float const & alpha() const

function is_visible

inline bool & is_visible()

function is_visible

inline bool const & is_visible() const

Public Attributes Documentation

variable common

rfl::Flatten< CommonDisplayFields > common;

Flattened common fields.

variable show_bounding_box

bool show_bounding_box {false};

Show bounding box around the mask.

variable show_outline

bool show_outline {false};

Show outline of the mask as a thick line.

variable use_as_transparency

bool use_as_transparency {false};

Use mask as transparency layer (invert display).

variable coordinate_mapping

CoordinateMappingMode coordinate_mapping {CoordinateMappingMode::ScaleToCanvas};

How data coordinates map to canvas.


Updated on 2026-11-13 at 20:25:39 +0000