#include <IMG_Metadata.h>
 | 
| enum   | Scope {  
  Scope::MD_Read = 0x01, 
Scope::MD_Write = 0x02, 
Scope::MD_RGBA = 0x04, 
Scope::MD_ReadWrite = MD_Read|MD_Write, 
 
  Scope::MD_ReadRGBA = MD_Read|MD_RGBA, 
Scope::MD_Default = MD_Write
 
 } | 
|   | 
| enum   | Storage {  
  Storage::MD_Unknown = -1, 
Storage::MD_Bool, 
Storage::MD_Int8, 
Storage::MD_Int16, 
 
  Storage::MD_Int32, 
Storage::MD_Int64, 
Storage::MD_UInt8, 
Storage::MD_UInt16, 
 
  Storage::MD_UInt32, 
Storage::MD_UInt64, 
Storage::MD_Real16, 
Storage::MD_Real32, 
 
  Storage::MD_Real64, 
Storage::MD_String
 
 } | 
|   | 
| enum   | TypeInfo {  
  TypeInfo::MD_None, 
TypeInfo::MD_Color, 
TypeInfo::MD_Point, 
TypeInfo::MD_Vector, 
 
  TypeInfo::MD_Normal, 
TypeInfo::MD_Quaternion, 
TypeInfo::MD_Matrix, 
TypeInfo::MD_Box, 
 
  TypeInfo::MD_Memory, 
TypeInfo::MD_Time, 
TypeInfo::MD_Timecode, 
TypeInfo::MD_Rational, 
 
  TypeInfo::MD_Keycode
 
 } | 
|   | 
 | 
|   | IMG_MetadataItem ()=default | 
|   | 
|   | IMG_MetadataItem (const UT_JSONValue &value, Storage store=Storage::MD_Unknown, TypeInfo type=TypeInfo::MD_None) | 
|   | 
|   | IMG_MetadataItem (const UT_OptionEntry &value, Storage store=Storage::MD_Unknown, TypeInfo type=TypeInfo::MD_None) | 
|   | 
| UT_JSONValue  | encode () const  | 
|   | Encode into a UT_JSONValue as a dict.  More...
  | 
|   | 
| bool  | decode (const UT_JSONValue &dict) | 
|   | Decode from a UT_JSONValue dictionary.  More...
  | 
|   | 
| void  | setFromTypedString (const UT_StringHolder &typed_key, const char *value, UT_StringHolder &new_key) | 
|   | 
| UT_StringHolder  | toString (bool pretty_print) const  | 
|   | 
| void  | clear () | 
|   | 
| UT_JSONValue::Type  | jsonType () const  | 
|   | 
| bool  | intStorage () const  | 
|   | 
| bool  | floatStorage () const  | 
|   | 
| bool  | stringStorage () const  | 
|   | 
| bool  | save (UT_JSONWriter &os) const  | 
|   | Save the value to a JSON writer.  More...
  | 
|   | 
| void  | dump () const  | 
|   | Debug print.  More...
  | 
|   | 
 | 
| void  | setLabel (const UT_StringHolder &label) | 
|   | 
| void  | setMenu (const UT_StringArray &tokens, const UT_StringArray &labels, bool strict) | 
|   | 
| void  | setRange (fpreal64 min, bool strict_min, fpreal64 max, bool strict_max) | 
|   | 
| void  | setScope (Scope scope) | 
|   | 
 | 
| bool  | getLabel (UT_StringHolder &label) const  | 
|   | 
| bool  | hasMenu () const  | 
|   | 
| bool  | getMenu (UT_StringArray &tokens, UT_StringArray &labels, bool &strict) const  | 
|   | 
| bool  | hasRange () const  | 
|   | 
| bool  | getRange (fpreal64 &min, bool &strict_min, fpreal64 &max, bool &strict_max) const  | 
|   | 
| Scope  | getScope () const  | 
|   | 
| int  | menuSize () const  | 
|   | 
| int  | menuIndex (const UT_StringRef &token) const  | 
|   | 
| UT_StringHolder  | menuToken (int index) const  | 
|   | 
| UT_StringHolder  | menuLabel (int index) const  | 
|   | 
| UT_StringHolder  | menuLabel (const UT_StringRef &token) const  | 
|   | 
Definition at line 21 of file IMG_Metadata.h.
 
| Enumerator | 
|---|
| MD_Read  | 
 | 
| MD_Write  | 
 | 
| MD_RGBA  | 
 | 
| MD_ReadWrite  | 
 | 
| MD_ReadRGBA  | 
 | 
| MD_Default  | 
 | 
Definition at line 23 of file IMG_Metadata.h.
 
 
| Enumerator | 
|---|
| MD_Unknown  | 
 | 
| MD_Bool  | 
 | 
| MD_Int8  | 
 | 
| MD_Int16  | 
 | 
| MD_Int32  | 
 | 
| MD_Int64  | 
 | 
| MD_UInt8  | 
 | 
| MD_UInt16  | 
 | 
| MD_UInt32  | 
 | 
| MD_UInt64  | 
 | 
| MD_Real16  | 
 | 
| MD_Real32  | 
 | 
| MD_Real64  | 
 | 
| MD_String  | 
 | 
Definition at line 47 of file IMG_Metadata.h.
 
 
| Enumerator | 
|---|
| MD_None  | 
 | 
| MD_Color  | 
 | 
| MD_Point  | 
 | 
| MD_Vector  | 
 | 
| MD_Normal  | 
 | 
| MD_Quaternion  | 
 | 
| MD_Matrix  | 
 | 
| MD_Box  | 
 | 
| MD_Memory  | 
 | 
| MD_Time  | 
 | 
| MD_Timecode  | 
 | 
| MD_Rational  | 
 | 
| MD_Keycode  | 
 | 
Definition at line 92 of file IMG_Metadata.h.
 
 
  
  
      
        
          | IMG_MetadataItem::IMG_MetadataItem  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
default   | 
  
 
 
  
  
      
        
          | void IMG_MetadataItem::clear  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
      
        
          | void IMG_MetadataItem::dump  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
  
  
      
        
          | bool IMG_MetadataItem::floatStorage  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
Query UI elements - returns true of the UI element is defined 
 
 
Query UI elements - returns true of the UI element is defined 
 
 
      
        
          | bool IMG_MetadataItem::getRange  | 
          ( | 
          fpreal64 &  | 
          min,  | 
        
        
           | 
           | 
          bool &  | 
          strict_min,  | 
        
        
           | 
           | 
          fpreal64 &  | 
          max,  | 
        
        
           | 
           | 
          bool &  | 
          strict_max  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
Query UI elements - returns true of the UI element is defined 
 
 
      
        
          | Scope IMG_MetadataItem::getScope  | 
          ( | 
           | ) | 
           const | 
        
      
 
Query UI elements - returns true of the UI element is defined 
 
 
      
        
          | bool IMG_MetadataItem::hasMenu  | 
          ( | 
           | ) | 
           const | 
        
      
 
Query UI elements - returns true of the UI element is defined 
 
 
      
        
          | bool IMG_MetadataItem::hasRange  | 
          ( | 
           | ) | 
           const | 
        
      
 
Query UI elements - returns true of the UI element is defined 
 
 
  
  
      
        
          | bool IMG_MetadataItem::intStorage  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | static constexpr bool IMG_MetadataItem::isFloat  | 
          ( | 
          Storage  | 
          s | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
  
  
      
        
          | static constexpr bool IMG_MetadataItem::isInteger  | 
          ( | 
          Storage  | 
          s | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
  
  
      
        
          | static bool IMG_MetadataItem::isReadOnly  | 
          ( | 
          Scope  | 
          s | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
  
  
      
        
          | static constexpr bool IMG_MetadataItem::isString  | 
          ( | 
          Storage  | 
          s | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
  
  
      
        
          | static bool IMG_MetadataItem::isTypedString  | 
          ( | 
          const UT_StringRef &  | 
          old_key | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Check to see whether a string is a "typed" string. 
 
 
  
  
      
        
          | static bool IMG_MetadataItem::isWriteOnly  | 
          ( | 
          Scope  | 
          s | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
 
Get the JSON value type. This uses the storage type first, but then will fall back to the type of myValue. 
 
 
Query UI elements - returns true of the UI element is defined 
 
 
Query UI elements - returns true of the UI element is defined 
 
 
Query UI elements - returns true of the UI element is defined 
 
 
      
        
          | int IMG_MetadataItem::menuSize  | 
          ( | 
           | ) | 
           const | 
        
      
 
Query UI elements - returns true of the UI element is defined 
 
 
Query UI elements - returns true of the UI element is defined 
 
 
Save the value to a JSON writer. 
 
 
  
  
      
        
          | static const char* IMG_MetadataItem::scope  | 
          ( | 
          Scope  | 
          s | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | static Scope IMG_MetadataItem::scope  | 
          ( | 
          const char *  | 
          s | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
Set value from an encoded "typed" string (see IMG_Metadata for more info) The new_key will be the key name stripped of the type information 
 
 
      
        
          | void IMG_MetadataItem::setScope  | 
          ( | 
          Scope  | 
          scope | ) | 
           | 
        
      
 
 
  
  
      
        
          | static const char* IMG_MetadataItem::storage  | 
          ( | 
          Storage  | 
          s | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | static Storage IMG_MetadataItem::storage  | 
          ( | 
          const char *  | 
          s | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | bool IMG_MetadataItem::stringStorage  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
Convert metadata to a string value. When pretty_print is true: 
- If there's a menu, the corresponding label will be returned
 
- If there's type information, it will be used (i.e. printing a time or memory) 
 
 
 
  
  
      
        
          | static const char* IMG_MetadataItem::typeInfo  | 
          ( | 
          TypeInfo  | 
          t | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | static TypeInfo IMG_MetadataItem::typeInfo  | 
          ( | 
          const char *  | 
          t | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
      
        
          | Storage IMG_MetadataItem::myStorage | 
        
      
 
 
The documentation for this struct was generated from the following file: