colormapping (lx_colormapping.hpp)

From The Foundry MODO SDK wiki
Jump to: navigation, search
There are security restrictions on this page


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: Declarations
 #define LXu_COLORMAPPING        "40D65C4F-D394-40E2-A71A-B174E971F462"
 #define LXa_COLORMAPPING        "colormapping" 
 #define CMS_GPU_LUT3D_EDGE_SIZE 32

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

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

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

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

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

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

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

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

Empty ColorMapping Python user class.

(10) PY: ColorMapping method
 pass

ILxColorMappingService

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

(11) SDK: Declarations
 #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: ILxColorMappingService interface
   LXxMETHOD( LxResult,
 MakeColorMapping) (
   LXtObjectID           self,
   const char            *colorspaceName,
   int                           toLinear,
   void                          **ppvObj);

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

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

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

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

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

Empty ColorMapping service user classes.

(18) User Service Class: ColorMappingService method

(19) PY: ColorMappingService method
 pass