Inherited by DD::Image::Radio_KnobI.
Public Member Functions | |
virtual void | menu (const std::vector< std::string > &e)=0 |
virtual const std::vector< std::string > & | menu () const =0 |
virtual int | getSelectedItemIndex () const =0 |
virtual std::string | getSelectedItemString () const =0 |
virtual std::string | getItemValueString (int itemIndex) const =0 |
virtual const char * | getError () const |
Abstract base class for Enumeration Knob-specific methods.
|
pure virtual |
set the menu items on the knob to the given list. if you want this to persist you must use the SAVE_MENU flag on this knob.
Referenced by DD::Image::LUTInfo::updateColorspaceDefaultValue(), and DD::Image::InternalOCIOOp::updateOCIOKnobValues().
|
pure virtual |
get the list of menu items on the knob
|
pure virtual |
get the index of the currently selected item
Referenced by DD::Image::LUTInfo::updateColorspaceDefaultValue(), and DD::Image::InternalOCIOOp::updateOCIOKnobValues().
|
pure virtual |
get the currently selected menu item
|
pure virtual |
The selected menu item can contain tab-separated content to signify a different display string to the internal menu item option. This will return the internal menu item option only.
Referenced by DD::Image::InternalOCIOOp::updateOCIOKnobValues().
|
inlinevirtual |
The following function can be used to check the error state on Enumeration knobs. If we have the EXACT_MATCH_ONLY flag set, any attempt to set an enumeration knob by name to an invalid value will result in the knob being in an Error state. This function can be used to get the error value (i.e. the value that was attempted to set. Returns NULL if no error.
Referenced by DD::Image::Write::_validate(), DD::Image::Read::_validate(), and DD::Image::LUTInfo::updateColorspaceDefaultValue().
©2021 The Foundry Visionmongers, Ltd. All Rights Reserved. |