DD::Image::LUTInfo Class Reference

Inherited by DD::Image::ReaderImpl, and DD::Image::WriterImpl.

List of all members.

Public Member Functions

 LUTInfo (Op *pOp)
void registerForCallbacks ()
 This must be called after the Reader/Writer is constructed.
void unregisterForCallbacks ()
LUTMapper * mapper () const
std::string getBuiltinLUTName (LUTMapper *lutMapper, LUT *lut, std::string &mappedStringOut)
void updateColorspaceDefaultValue (Knob *k, Enumeration_KnobI *e, LUT *lut, LUTMapper *lutMapper, std::string &outDefaultLutName)
virtual std::string updateColorspaceDefaultValue ()
 util function for calling updateColorspaceDefaultValue()
std::string stripCascadingPrefix (const std::string &) const
 strip off cascading menus prefix
virtual LUTdefaultLut () const =0
 must return the LUT pointer used by the LUTInfo derived class

Protected Attributes

std::string _overrideColorspaceName

Detailed Description

Private, hidden implementation for sharing inforamtion about LUTs with Read and Write Ops and Nuke


Member Function Documentation

void LUTInfo::unregisterForCallbacks ( )

This must be called before the Reader/Writer is destructed and only if you want to unregister the callbacks earlier

References DD::Image::Knob::isCallbackRegistered(), and DD::Image::Knob::removeCallback().

std::string LUTInfo::getBuiltinLUTName ( LUTMapper *  lutMapper,
LUT lut,
std::string &  mappedStringOut 
)

Get the name of the given builtin LUT. Will also use the provided writer (if any) to find the equivalent OCIO mapped name

References DD::Image::LUT::builtin_names, and DD::Image::LUT::GetBuiltinLUT().

Referenced by updateColorspaceDefaultValue().

void LUTInfo::updateColorspaceDefaultValue ( Knob k,
Enumeration_KnobI e,
LUT lut,
LUTMapper *  lutMapper,
std::string &  outDefaultLutName 
)