Blender V5.3
blender::ocio::Look Class Referenceabstract

#include <OCIO_look.hh>

Inherited by blender::ocio::LibOCIOLook.

Public Member Functions

virtual ~Look ()=default
virtual StringRefNull name () const =0
virtual StringRefNull ui_name () const =0
virtual StringRefNull description () const =0
virtual StringRefNull view () const =0
virtual StringRefNull process_space () const =0

Public Attributes

int index = -1
bool is_noop = false

Detailed Description

Definition at line 11 of file OCIO_look.hh.

Constructor & Destructor Documentation

◆ ~Look()

virtual blender::ocio::Look::~Look ( )
virtualdefault

Member Function Documentation

◆ description()

virtual StringRefNull blender::ocio::Look::description ( ) const
pure virtual

Description of the look from the OpenColorIO config.

Implemented in blender::ocio::LibOCIOLook.

Referenced by blender::IMB_colormanagement_look_items_add().

◆ name()

virtual StringRefNull blender::ocio::Look::name ( ) const
pure virtual

◆ process_space()

virtual StringRefNull blender::ocio::Look::process_space ( ) const
pure virtual

process_space defines the color space the image required to be in for the math to apply correctly.

Implemented in blender::ocio::LibOCIOLook.

Referenced by blender::is_colorspace_same_as_display().

◆ ui_name()

virtual StringRefNull blender::ocio::Look::ui_name ( ) const
pure virtual

Name of the look presented in the interface. It is typically derived from the OpenColorIO's look name by stripping the view name prefix/

Implemented in blender::ocio::LibOCIOLook.

Referenced by blender::IMB_colormanagement_look_items_add(), and blender::IMB_colormanagement_look_validate_for_view().

◆ view()

virtual StringRefNull blender::ocio::Look::view ( ) const
pure virtual

When not empty the look is specific to the view with the given name.

Implemented in blender::ocio::LibOCIOLook.

Referenced by blender::colormanage_compatible_look(), and blender::view_filter_for_look().

Member Data Documentation

◆ index

int blender::ocio::Look::index = -1

Global index of the look within the OpenColorIO configuration. The index is 0-based.

NOTE: The implementation ensures None as a look. It has index of 0. This makes it so looks in the OpenColorIO configurations are to be offset by 1 from this index.

Definition at line 22 of file OCIO_look.hh.

Referenced by blender::IMB_colormanagement_look_get_named_index(), blender::IMB_colormanagement_look_items_add(), and blender::ocio::LibOCIOLook::LibOCIOLook().

◆ is_noop

bool blender::ocio::Look::is_noop = false

The look is known to not perform any actual color space conversion.

Definition at line 27 of file OCIO_look.hh.

Referenced by blender::colormanage_compatible_look(), blender::colormanage_use_look(), and blender::ocio::LibOCIOLook::LibOCIOLook().


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