libCZI
Reading and Writing CZI documents made easy
libCZI::ChannelDisplaySettingsPOD Struct Reference

#include <libCZI_Metadata.h>

Public Member Functions

LIBCZI_API void Clear ()
 

Static Public Member Functions

static LIBCZI_API IChannelDisplaySettingCreateIChannelDisplaySetting (const ChannelDisplaySettingsPOD &pod)
 
static LIBCZI_API std::shared_ptr< IChannelDisplaySettingCreateIChannelDisplaySettingSp (const ChannelDisplaySettingsPOD &pod)
 

Public Attributes

bool isEnabled
 A boolean indicating whether the corresponding channel is 'active' in the multi-channel-composition.
 
float weight
 The weight of the channel (for multi-channel-composition).
 
IDisplaySettings::TintingMode tintingMode
 The tinting mode.
 
libCZI::Rgb8Color tintingColor
 The tinting color (only valid if tinting mode == Color).
 
float blackPoint
 The (normalized) black point value.
 
float whitePoint
 The (normalized) white point value.
 
IDisplaySettings::GradationCurveMode gradationCurveMode
 The gradation curve mode.
 
float gamma
 The value for gamma (only valid if gradation curve mode == Gamma).
 
std::vector< libCZI::IDisplaySettings::SplineControlPointsplineCtrlPoints
 The spline control points (only valid if gradation curve mode == Spline).
 

Detailed Description

This POD ("plain-old-data") structure is intended to capture all information found inside an IChannelDisplaySetting-object. It allows for easy modification of the information.

Member Function Documentation

◆ Clear()

LIBCZI_API void libCZI::ChannelDisplaySettingsPOD::Clear ( )
inline

Sets the structure to a defined standard value - not enabled, no tinting, linear gradation-curve and black-point to zero and white-point to one.

◆ CreateIChannelDisplaySetting()

static LIBCZI_API IChannelDisplaySetting* libCZI::ChannelDisplaySettingsPOD::CreateIChannelDisplaySetting ( const ChannelDisplaySettingsPOD pod)
static

Creates an IChannelDisplaySetting-object from the specified ChannelDisplaySettingsPOD-structure.

Parameters
podThe ChannelDisplaySettingsPOD-structure.
Returns
The newly created IChannelDisplaySetting-object.

◆ CreateIChannelDisplaySettingSp()

static LIBCZI_API std::shared_ptr<IChannelDisplaySetting> libCZI::ChannelDisplaySettingsPOD::CreateIChannelDisplaySettingSp ( const ChannelDisplaySettingsPOD pod)
static

Creates an IChannelDisplaySetting-object from the specified ChannelDisplaySettingsPOD-structure, and return it as a shared pointer.

Parameters
podThe ChannelDisplaySettingsPOD-structure.
Returns
The newly created IChannelDisplaySetting-object inside a shared pointer.

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