Blender V5.3
blender::ColorRGBA< ChannelStorageType, Space, Alpha > Class Template Reference

#include <BLI_color_types.hh>

Inherited by blender::ColorTheme4< uint8_t >, and blender::ColorTheme4< float >.

Public Member Functions

constexpr ColorRGBA ()=default
constexpr ColorRGBA (const ChannelStorageType rgba[4])
constexpr ColorRGBA (const ChannelStorageType r, const ChannelStorageType g, const ChannelStorageType b, const ChannelStorageType a)
 operator ChannelStorageType * ()
 operator const ChannelStorageType * () const
constexpr uint64_t hash () const
void hash_unique (UniqueHashBytes &hash) const

Public Attributes

ChannelStorageType r
ChannelStorageType g
ChannelStorageType b
ChannelStorageType a

Friends

bool operator== (const ColorRGBA &a, const ColorRGBA &b)=default

Detailed Description

template<typename ChannelStorageType, eSpace Space, eAlpha Alpha>
class blender::ColorRGBA< ChannelStorageType, Space, Alpha >

Template class to store RGBA values with different precision, space, and alpha association.

Definition at line 89 of file BLI_color_types.hh.

Constructor & Destructor Documentation

◆ ColorRGBA() [1/3]

template<typename ChannelStorageType, eSpace Space, eAlpha Alpha>
blender::ColorRGBA< ChannelStorageType, Space, Alpha >::ColorRGBA ( )
constexprdefault

◆ ColorRGBA() [2/3]

template<typename ChannelStorageType, eSpace Space, eAlpha Alpha>
blender::ColorRGBA< ChannelStorageType, Space, Alpha >::ColorRGBA ( const ChannelStorageType rgba[4])
inlineconstexpr

Definition at line 94 of file BLI_color_types.hh.

References a, b, g, and r.

◆ ColorRGBA() [3/3]

template<typename ChannelStorageType, eSpace Space, eAlpha Alpha>
blender::ColorRGBA< ChannelStorageType, Space, Alpha >::ColorRGBA ( const ChannelStorageType r,
const ChannelStorageType g,
const ChannelStorageType b,
const ChannelStorageType a )
inlineconstexpr

Definition at line 99 of file BLI_color_types.hh.

References a, b, g, and r.

Member Function Documentation

◆ hash()

template<typename ChannelStorageType, eSpace Space, eAlpha Alpha>
uint64_t blender::ColorRGBA< ChannelStorageType, Space, Alpha >::hash ( ) const
inlineconstexpr

Definition at line 119 of file BLI_color_types.hh.

References a, b, g, blender::get_default_hash(), and r.

Referenced by hash_unique().

◆ hash_unique()

template<typename ChannelStorageType, eSpace Space, eAlpha Alpha>
void blender::ColorRGBA< ChannelStorageType, Space, Alpha >::hash_unique ( UniqueHashBytes & hash) const
inline

Definition at line 124 of file BLI_color_types.hh.

References a, b, g, hash(), blender::hash_unique_default(), and r.

◆ operator ChannelStorageType *()

template<typename ChannelStorageType, eSpace Space, eAlpha Alpha>
blender::ColorRGBA< ChannelStorageType, Space, Alpha >::operator ChannelStorageType * ( )
inline

Definition at line 107 of file BLI_color_types.hh.

References r.

◆ operator const ChannelStorageType *()

template<typename ChannelStorageType, eSpace Space, eAlpha Alpha>
blender::ColorRGBA< ChannelStorageType, Space, Alpha >::operator const ChannelStorageType * ( ) const
inline

Definition at line 112 of file BLI_color_types.hh.

References r.

◆ operator==

template<typename ChannelStorageType, eSpace Space, eAlpha Alpha>
bool operator== ( const ColorRGBA< ChannelStorageType, Space, Alpha > & a,
const ColorRGBA< ChannelStorageType, Space, Alpha > & b )
friend

References a, b, and ColorRGBA().

Member Data Documentation

◆ a

template<typename ChannelStorageType, eSpace Space, eAlpha Alpha>
ChannelStorageType blender::ColorRGBA< ChannelStorageType, Space, Alpha >::a

Definition at line 91 of file BLI_color_types.hh.

Referenced by blender::apply_color_factor(), blender::ed::spreadsheet::apply_row_filter(), blender::apply_uniform_tint(), blender::bke::attribute_math::detail::byte_color_to_float4(), ColorRGBA(), ColorRGBA(), blender::ColorTheme4< uint8_t >::ColorTheme4(), blender::io::grease_pencil::GreasePencilExporter::compute_average_stroke_color(), blender::nodes::node_composite_inpaint_cc::InpaintOperation::compute_inpainting_boundary_cpu(), blender::draw::AttributeConverter< ColorGeometry4b >::convert(), blender::gpu::convert(), blender::ed::greasepencil::convert_flags_to_colors(), blender::io::usd::detail::convert_value(), blender::io::usd::detail::convert_value(), blender::nodes::node_geo_viewer_cc::draw_color(), blender::ed::space_node::draw_link_errors(), blender::compositor::extract_alpha(), blender::bke::attribute_math::ColorGeometry4bMixer::finalize(), blender::bke::attribute_math::ColorGeometry4fMixer::finalize(), blender::get_base_color(), blender::ed::greasepencil::grease_pencil_primitive_invoke(), hash(), hash_unique(), blender::math::interpolate(), blender::math::interpolate(), blender::isZero(), blender::isZero(), blender::io::ply::load_custom_attributes(), blender::ui::markdown_draw_colors_init(), blender::bke::attribute_math::ColorGeometry4fMixer::mix_in(), blender::ed::space_node::node_header_color_get(), blender::ed::space_node::nodelink_get_draw_config(), blender::operator<<(), operator==, blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::PaintOperationExecutor(), blender::ed::sculpt_paint::set_fill_attributes(), blender::io::grease_pencil::shape_attributes_to_curves(), blender::store_float_in_vcol(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::timeline_cache_draw_geometry_nodes(), blender::ui::widget_nodesocket(), blender::io::grease_pencil::write_fill_color_attribute(), blender::seq::CompositorContext::write_output(), and blender::io::grease_pencil::write_stroke_color_attribute().

◆ b

template<typename ChannelStorageType, eSpace Space, eAlpha Alpha>
ChannelStorageType blender::ColorRGBA< ChannelStorageType, Space, Alpha >::b

Definition at line 91 of file BLI_color_types.hh.

Referenced by blender::apply_gradient_tint(), blender::ed::spreadsheet::apply_row_filter(), blender::apply_uniform_tint(), blender::bke::byte_color_to_bool(), blender::bke::attribute_math::detail::byte_color_to_float4(), blender::bke::byte_color_to_int3(), blender::bke::color_to_float3(), blender::bke::color_to_int3(), ColorRGBA(), ColorRGBA(), blender::ColorTheme4< uint8_t >::ColorTheme4(), blender::draw::AttributeConverter< ColorGeometry4b >::convert(), blender::gpu::convert(), blender::gpu::convert(), blender::ed::greasepencil::convert_flags_to_colors(), blender::io::usd::detail::convert_value(), blender::io::usd::detail::convert_value(), blender::nodes::node_geo_viewer_cc::draw_color(), blender::bke::attribute_math::ColorGeometry4bMixer::finalize(), blender::bke::attribute_math::ColorGeometry4fMixer::finalize(), blender::get_brush_color(), blender::nodes::node_fn_compare_cc::get_multi_function(), hash(), hash_unique(), blender::math::interpolate(), blender::math::interpolate(), blender::isZero(), blender::isZero(), blender::io::ply::load_custom_attributes(), blender::bke::attribute_math::ColorGeometry4fMixer::mix_in(), blender::operator<<(), operator==, blender::store_float_in_vcol(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), and blender::io::grease_pencil::PDFExporter::write_path().

◆ g

template<typename ChannelStorageType, eSpace Space, eAlpha Alpha>
ChannelStorageType blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g

Definition at line 91 of file BLI_color_types.hh.

Referenced by blender::apply_gradient_tint(), blender::ed::spreadsheet::apply_row_filter(), blender::apply_uniform_tint(), blender::bke::byte_color_to_bool(), blender::bke::attribute_math::detail::byte_color_to_float4(), blender::bke::byte_color_to_int2(), blender::bke::byte_color_to_int3(), blender::bke::byte_color_to_short2(), blender::bke::color_to_float2(), blender::bke::color_to_float3(), blender::bke::color_to_int2(), blender::bke::color_to_int3(), blender::bke::color_to_short2(), ColorRGBA(), ColorRGBA(), blender::ColorTheme4< uint8_t >::ColorTheme4(), blender::draw::AttributeConverter< ColorGeometry4b >::convert(), blender::gpu::convert(), blender::gpu::convert(), blender::ed::greasepencil::convert_flags_to_colors(), blender::io::usd::detail::convert_value(), blender::io::usd::detail::convert_value(), blender::nodes::node_geo_viewer_cc::draw_color(), blender::bke::attribute_math::ColorGeometry4bMixer::finalize(), blender::bke::attribute_math::ColorGeometry4fMixer::finalize(), blender::get_brush_color(), blender::nodes::node_fn_compare_cc::get_multi_function(), hash(), hash_unique(), blender::math::interpolate(), blender::math::interpolate(), blender::isZero(), blender::isZero(), blender::io::ply::load_custom_attributes(), blender::bke::attribute_math::ColorGeometry4fMixer::mix_in(), blender::operator<<(), blender::store_float_in_vcol(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), and blender::io::grease_pencil::PDFExporter::write_path().

◆ r

template<typename ChannelStorageType, eSpace Space, eAlpha Alpha>
ChannelStorageType blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r

Definition at line 91 of file BLI_color_types.hh.

Referenced by blender::apply_gradient_tint(), blender::ed::spreadsheet::apply_row_filter(), blender::apply_uniform_tint(), blender::bke::byte_color_to_bool(), blender::bke::attribute_math::detail::byte_color_to_float4(), blender::bke::byte_color_to_int2(), blender::bke::byte_color_to_int3(), blender::bke::byte_color_to_short2(), blender::bke::color_to_float2(), blender::bke::color_to_float3(), blender::bke::color_to_int2(), blender::bke::color_to_int3(), blender::bke::color_to_short2(), ColorRGBA(), ColorRGBA(), blender::ColorTheme4< uint8_t >::ColorTheme4(), blender::draw::AttributeConverter< ColorGeometry4b >::convert(), blender::gpu::convert(), blender::gpu::convert(), blender::ed::greasepencil::convert_flags_to_colors(), blender::ed::object::convert_float_color_to_byte_color(), blender::io::usd::detail::convert_value(), blender::io::usd::detail::convert_value(), blender::do_vpaint_brush_blur_loops(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_byte_color(), blender::nodes::node_geo_viewer_cc::draw_color(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_content_cell_value(), blender::bke::attribute_math::ColorGeometry4bMixer::finalize(), blender::bke::attribute_math::ColorGeometry4fMixer::finalize(), blender::get_brush_color(), blender::color::get_luminance(), blender::color::get_luminance(), blender::nodes::node_fn_compare_cc::get_multi_function(), hash(), hash_unique(), blender::math::interpolate(), blender::math::interpolate(), blender::isZero(), blender::isZero(), blender::io::ply::load_custom_attributes(), blender::bke::attribute_math::mix3(), blender::bke::attribute_math::mix4(), blender::bke::attribute_math::ColorGeometry4fMixer::mix_in(), operator ChannelStorageType *(), operator const ChannelStorageType *(), blender::operator<<(), blender::bke::bake::serialize_primitive_value(), blender::store_float_in_vcol(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), and blender::io::grease_pencil::PDFExporter::write_path().


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