Colormapping (lx-colormapping.hpp)

From The Foundry MODO SDK wiki
Jump to: navigation, search


ColorMapping

This module provides interfaces for handling color conversion and selecting color profiles.

Defining Entries

ColorMapping, specifies an object used for color conversion between linear and a particular colorspace.

(1) SDK: LXu_COLORMAPPING, etc. defines
 #define LXu_COLORMAPPING        "40D65C4F-D394-40E2-A71A-B174E971F462"
 #define LXa_COLORMAPPING        "colormapping" 
 #define CMS_GPU_LUT3D_EDGE_SIZE 32

(2) SDK: ColorMapping::Setup
         LXxMETHOD( LxResult,
 Setup) (
         LXtObjectID                     self,
         int                             toLinear);

(3) SDK: ColorMapping::ToLinear
         LXxMETHOD( LxResult,
 ToLinear) (
         LXtObjectID                     self,
         const LXtFVector        sourceValues,
         LXtFVector                      linearValues,
         unsigned int            length);

(4) SDK: ColorMapping::FromLinear
         LXxMETHOD( LxResult,
 FromLinear) (
         LXtObjectID                     self,
         const LXtFVector        linearValues,
         LXtFVector                      targetValues,
         unsigned int            length);

(5) SDK: ColorMapping::ToLinearFast
         LXxMETHOD( LxResult,
 ToLinearFast) (
         LXtObjectID                     self,
         float*                          buf,
         unsigned int            length);

(6) SDK: ColorMapping::FromLinearFast
         LXxMETHOD( LxResult,
 FromLinearFast) (
         LXtObjectID                     self,
         float*                          buf,
         unsigned int            length);

(7) SDK: ColorMapping::GetLUTImage
         LXxMETHOD( LxResult,
 GetLUTImage) (
         LXtObjectID                     self,
         float                      **ptr);

(8) SDK: ColorMapping::GetShaderSource
         LXxMETHOD( LxResult,
 GetShaderSource) (
         LXtObjectID                     self,
         char                       **ptr);

(9) SDK: ColorMapping::GetName
         LXxMETHOD( const char*,
 GetName) (
         LXtObjectID                     self);

Empty ColorMapping Python user class.

(10) PY: empty ColorMapping user class
 pass

ILxColorMappingService

The color mapping service allows color mapping items to be enumerated and created.

(11) SDK: LXu_COLORMAPPINGSERVICE, etc. defines
 #define LXu_COLORMAPPINGSERVICE "c3e44fbc-45c6-47b5-aaee-f0cc002dd474"
 #define LXa_COLORMAPPINGSERVICE "colormappingservice"
 // don't need export or local for services, as it's done automatically

(12) SDK: ColorMappingService::MakeColorMapping
         LXxMETHOD( LxResult,
 MakeColorMapping) (
         LXtObjectID              self,
         const char              *colorspaceName,
         int                      toLinear,
         void                   **ppvObj);

(13) SDK: ColorMappingService::ConfigCount
         LXxMETHOD( int,
 ConfigCount) (
         LXtObjectID                     self);

(14) SDK: ColorMappingService::ConfigName
         LXxMETHOD( LxResult,
 ConfigName) (
         LXtObjectID                     self,
         int                                     index,
         const char                      **configName);

(15) SDK: ColorMappingService::ConfigFullPath
         LXxMETHOD( LxResult,
 ConfigFullPath) (
         LXtObjectID                     self,
         int                                     index,
         const char                      **configPath);

(16) SDK: ColorMappingService::RegisterColorspaceForConfig
         LXxMETHOD( LxResult,
 RegisterColorspaceForConfig) (
         LXtObjectID                     self,
         const char                      *configName,
         const char                      *colorspaceName);

Get the color mapping used for displaying colors in the interface.

(17) SDK: ColorMappingService::GetDisplayColorMapping
         LXxMETHOD( LxResult,
 GetDisplayColorMapping) (
         LXtObjectID                     self,
         void                            **ppvObj);

Get the color mapping used for numeric values in the interface.

(18) SDK: ColorMappingService::GetNumericColorMapping
         LXxMETHOD( LxResult,
 GetNumericColorMapping) (
         LXtObjectID                     self,
         void                            **ppvObj);

Empty ColorMapping service user classes.

(19) SDK: empty ColorMappingService User Class

(20) PY: empty Service.ColorMapping user class
 pass