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

#include <OCIO_look.hh>

Inherited by blender::ocio::FallbackDefaultLook.

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::FallbackDefaultLook.

Referenced by IMB_colormanagement_look_items_add().

◆ name()

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

Name of this look. The name is used to address to this look from various places of the configuration.

Implemented in blender::ocio::FallbackDefaultLook.

Referenced by IMB_colormanagement_look_get_default_name(), IMB_colormanagement_look_get_indexed_name(), IMB_colormanagement_look_items_add(), and IMB_colormanagement_look_validate_for_view().

◆ 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::FallbackDefaultLook.

Referenced by 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::FallbackDefaultLook.

Referenced by IMB_colormanagement_look_items_add(), and 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::FallbackDefaultLook.

Referenced by colormanage_compatible_look(), and 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::ocio::FallbackDefaultLook::FallbackDefaultLook(), IMB_colormanagement_look_get_named_index(), and IMB_colormanagement_look_items_add().

◆ 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 colormanage_compatible_look(), colormanage_use_look(), and blender::ocio::FallbackDefaultLook::FallbackDefaultLook().


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