HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OCIO_NAMESPACE::ConfigMergingParameters Class Reference

#include <OpenColorAppHelpers.h>

Public Types

enum  MergeStrategies {
  STRATEGY_PREFER_INPUT = 0, STRATEGY_PREFER_BASE, STRATEGY_INPUT_ONLY, STRATEGY_BASE_ONLY,
  STRATEGY_REMOVE, STRATEGY_UNSPECIFIED
}
 

Public Member Functions

ConfigMergingParametersRcPtr createEditableCopy () const
 
void setBaseConfigName (const char *baseConfig)
 
const char * getBaseConfigName () const
 
void setInputConfigName (const char *inputConfig)
 
const char * getInputConfigName () const
 
void setOutputName (const char *outputName)
 
const char * getOutputName () const
 
void setDefaultStrategy (const ConfigMergingParameters::MergeStrategies strategy)
 
ConfigMergingParameters::MergeStrategies getDefaultStrategy () const
 
void setInputFamilyPrefix (const char *prefix)
 
const char * getInputFamilyPrefix () const
 
void setBaseFamilyPrefix (const char *prefix)
 
const char * getBaseFamilyPrefix () const
 
void setInputFirst (bool enabled)
 
bool isInputFirst () const
 
void setErrorOnConflict (bool enabled)
 
bool isErrorOnConflict () const
 
void setAvoidDuplicates (bool enabled)
 
bool isAvoidDuplicates () const
 
void setAdjustInputReferenceSpace (bool enabled)
 
bool isAdjustInputReferenceSpace () const
 
void setName (const char *mergedConfigName)
 Override the name of the merged config. More...
 
const char * getName () const
 
void setDescription (const char *mergedConfigDesc)
 Override the description of the merged config. More...
 
const char * getDescription () const
 
void addEnvironmentVar (const char *name, const char *defaultValue)
 Override a context variable in the merged config. More...
 
int getNumEnvironmentVars () const
 Get the number of context variable overrides. More...
 
const char * getEnvironmentVar (int index) const
 
const char * getEnvironmentVarValue (int index) const
 
void setSearchPath (const char *path)
 Override the search_path of the merged config. More...
 
void addSearchPath (const char *path)
 
const char * getSearchPath () const
 
void setActiveDisplays (const char *displays)
 Override the active_displays of the merged config. More...
 
const char * getActiveDisplays () const
 
void setActiveViews (const char *views)
 Override the active_views of the merged config. More...
 
const char * getActiveViews () const
 
void setInactiveColorSpaces (const char *colorspaces)
 Override the inactive_colorspaces of the merged config. More...
 
const char * getInactiveColorSpaces () const
 
void setRoles (MergeStrategies strategy)
 Set the merge strategy for the roles section. More...
 
MergeStrategies getRoles () const
 
void setFileRules (MergeStrategies strategy)
 Set the merge strategy for the file_rules section. More...
 
MergeStrategies getFileRules () const
 
void setDisplayViews (MergeStrategies strategy)
 
MergeStrategies getDisplayViews () const
 
void setViewTransforms (MergeStrategies strategy)
 
MergeStrategies getViewTransforms () const
 
void setLooks (MergeStrategies strategy)
 Set the merge strategy for the looks section. More...
 
MergeStrategies getLooks () const
 
void setColorspaces (MergeStrategies strategy)
 
MergeStrategies getColorspaces () const
 
void setNamedTransforms (MergeStrategies strategy)
 Set the merge strategy for the named_transforms section. More...
 
MergeStrategies getNamedTransforms () const
 
 ConfigMergingParameters (const ConfigMergingParameters &)=delete
 
ConfigMergingParameters & operator= (const ConfigMergingParameters &)=delete
 
 ~ConfigMergingParameters ()
 Do not use (needed only for pybind11). More...
 

Static Public Member Functions

static ConfigMergingParametersRcPtr Create ()
 

Detailed Description

The ConfigMergingParameters class holds the options that control how a merge is done.

In terms of OCIOM file, it represent one of the merges in an OCIOM file.

Definition at line 542 of file OpenColorAppHelpers.h.

Member Enumeration Documentation

Enumerator
STRATEGY_PREFER_INPUT 

Combine elements of the base and input configs, with the input taking priority.

STRATEGY_PREFER_BASE 

Combine elements of the base and input configs, with the base taking priority.

STRATEGY_INPUT_ONLY 

Use only the input elements for that section of the config.

STRATEGY_BASE_ONLY 

Use only the base elements for that section of the config.

STRATEGY_REMOVE 

The elements in the input config are removed from the base config. (If the names match, the item is removed, even if the content is not identical.)

STRATEGY_UNSPECIFIED 

Strategy has not been set yet.

Definition at line 546 of file OpenColorAppHelpers.h.

Constructor & Destructor Documentation

OCIO_NAMESPACE::ConfigMergingParameters::ConfigMergingParameters ( const ConfigMergingParameters &  )
delete
OCIO_NAMESPACE::ConfigMergingParameters::~ConfigMergingParameters ( )

Do not use (needed only for pybind11).

Member Function Documentation

void OCIO_NAMESPACE::ConfigMergingParameters::addEnvironmentVar ( const char *  name,
const char *  defaultValue 
)

Override a context variable in the merged config.

void OCIO_NAMESPACE::ConfigMergingParameters::addSearchPath ( const char *  path)
static ConfigMergingParametersRcPtr OCIO_NAMESPACE::ConfigMergingParameters::Create ( )
static
ConfigMergingParametersRcPtr OCIO_NAMESPACE::ConfigMergingParameters::createEditableCopy ( ) const
const char* OCIO_NAMESPACE::ConfigMergingParameters::getActiveDisplays ( ) const
const char* OCIO_NAMESPACE::ConfigMergingParameters::getActiveViews ( ) const
const char* OCIO_NAMESPACE::ConfigMergingParameters::getBaseConfigName ( ) const
const char* OCIO_NAMESPACE::ConfigMergingParameters::getBaseFamilyPrefix ( ) const
MergeStrategies OCIO_NAMESPACE::ConfigMergingParameters::getColorspaces ( ) const
ConfigMergingParameters::MergeStrategies OCIO_NAMESPACE::ConfigMergingParameters::getDefaultStrategy ( ) const
const char* OCIO_NAMESPACE::ConfigMergingParameters::getDescription ( ) const
MergeStrategies OCIO_NAMESPACE::ConfigMergingParameters::getDisplayViews ( ) const
const char* OCIO_NAMESPACE::ConfigMergingParameters::getEnvironmentVar ( int  index) const
const char* OCIO_NAMESPACE::ConfigMergingParameters::getEnvironmentVarValue ( int  index) const
MergeStrategies OCIO_NAMESPACE::ConfigMergingParameters::getFileRules ( ) const
const char* OCIO_NAMESPACE::ConfigMergingParameters::getInactiveColorSpaces ( ) const
const char* OCIO_NAMESPACE::ConfigMergingParameters::getInputConfigName ( ) const
const char* OCIO_NAMESPACE::ConfigMergingParameters::getInputFamilyPrefix ( ) const
MergeStrategies OCIO_NAMESPACE::ConfigMergingParameters::getLooks ( ) const
const char* OCIO_NAMESPACE::ConfigMergingParameters::getName ( ) const
MergeStrategies OCIO_NAMESPACE::ConfigMergingParameters::getNamedTransforms ( ) const
int OCIO_NAMESPACE::ConfigMergingParameters::getNumEnvironmentVars ( ) const

Get the number of context variable overrides.

const char* OCIO_NAMESPACE::ConfigMergingParameters::getOutputName ( ) const
MergeStrategies OCIO_NAMESPACE::ConfigMergingParameters::getRoles ( ) const
const char* OCIO_NAMESPACE::ConfigMergingParameters::getSearchPath ( ) const
MergeStrategies OCIO_NAMESPACE::ConfigMergingParameters::getViewTransforms ( ) const
bool OCIO_NAMESPACE::ConfigMergingParameters::isAdjustInputReferenceSpace ( ) const
bool OCIO_NAMESPACE::ConfigMergingParameters::isAvoidDuplicates ( ) const
bool OCIO_NAMESPACE::ConfigMergingParameters::isErrorOnConflict ( ) const
bool OCIO_NAMESPACE::ConfigMergingParameters::isInputFirst ( ) const
ConfigMergingParameters& OCIO_NAMESPACE::ConfigMergingParameters::operator= ( const ConfigMergingParameters &  )
delete
void OCIO_NAMESPACE::ConfigMergingParameters::setActiveDisplays ( const char *  displays)

Override the active_displays of the merged config.

void OCIO_NAMESPACE::ConfigMergingParameters::setActiveViews ( const char *  views)

Override the active_views of the merged config.

void OCIO_NAMESPACE::ConfigMergingParameters::setAdjustInputReferenceSpace ( bool  enabled)

If true, the reference spaces of the base and input config are compared and color spaces from the input config will be adjusted to use the reference space of the base. If the interchange roles are not set, heuristics will be used to try and determine the reference space. Default = true.

void OCIO_NAMESPACE::ConfigMergingParameters::setAvoidDuplicates ( bool  enabled)

If true, a color space from the input config is compared against those of the base config. If it is mathematically equivalent, it is not added. Instead, its name and aliases are added to the original color space. Default = true.

void OCIO_NAMESPACE::ConfigMergingParameters::setBaseConfigName ( const char *  baseConfig)

Set the file name of the base config. This is used along with the search path of the ConfigMerger object.

void OCIO_NAMESPACE::ConfigMergingParameters::setBaseFamilyPrefix ( const char *  prefix)

Set a prefix to add to the family of base config items. (It must use '/' as the separator and will be replaced by the actual family separator of the config.)

void OCIO_NAMESPACE::ConfigMergingParameters::setColorspaces ( MergeStrategies  strategy)

Set the merge strategy for the color spaces section. This includes colorspaces, display_colorspaces, environment, search_path, family_separator, and inactive_colorspaces.

void OCIO_NAMESPACE::ConfigMergingParameters::setDefaultStrategy ( const ConfigMergingParameters::MergeStrategies  strategy)

Set the default strategy. This will be used if the strategy for a given config section is not set, and will be used for basic attributes such as the config description. Default = STRATEGY_PREFER_INPUT.

void OCIO_NAMESPACE::ConfigMergingParameters::setDescription ( const char *  mergedConfigDesc)

Override the description of the merged config.

void OCIO_NAMESPACE::ConfigMergingParameters::setDisplayViews ( MergeStrategies  strategy)

Set the merge strategy for the displays/views section. This includes shared_views, displays, viewing_rules, virtual_display, active_display, and active_views.

void OCIO_NAMESPACE::ConfigMergingParameters::setErrorOnConflict ( bool  enabled)

If true, throw an exception rather than log a warning when a conflict is detected. Default = false.

void OCIO_NAMESPACE::ConfigMergingParameters::setFileRules ( MergeStrategies  strategy)

Set the merge strategy for the file_rules section.

void OCIO_NAMESPACE::ConfigMergingParameters::setInactiveColorSpaces ( const char *  colorspaces)

Override the inactive_colorspaces of the merged config.

void OCIO_NAMESPACE::ConfigMergingParameters::setInputConfigName ( const char *  inputConfig)

Set the file name of the input config. This is used along with the search path of the ConfigMerger object.

void OCIO_NAMESPACE::ConfigMergingParameters::setInputFamilyPrefix ( const char *  prefix)

Set a prefix to add to the family of input config items. (It must use '/' as the separator and will be replaced by the actual family separator of the config.)

void OCIO_NAMESPACE::ConfigMergingParameters::setInputFirst ( bool  enabled)

If true, items from the input config will be higher in the file than those of the base config. Default = true.

void OCIO_NAMESPACE::ConfigMergingParameters::setLooks ( MergeStrategies  strategy)

Set the merge strategy for the looks section.

void OCIO_NAMESPACE::ConfigMergingParameters::setName ( const char *  mergedConfigName)

Override the name of the merged config.

void OCIO_NAMESPACE::ConfigMergingParameters::setNamedTransforms ( MergeStrategies  strategy)

Set the merge strategy for the named_transforms section.

void OCIO_NAMESPACE::ConfigMergingParameters::setOutputName ( const char *  outputName)

Set a name to use for this merger. This may be used as the input or base config name in subsequent mergers.

void OCIO_NAMESPACE::ConfigMergingParameters::setRoles ( MergeStrategies  strategy)

Set the merge strategy for the roles section.

void OCIO_NAMESPACE::ConfigMergingParameters::setSearchPath ( const char *  path)

Override the search_path of the merged config.

void OCIO_NAMESPACE::ConfigMergingParameters::setViewTransforms ( MergeStrategies  strategy)

Set the merge strategy for the view_transforms section. This includes the view_transforms and default_view_transform.


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