#include <mlPropertyContainerWrapper.h>
Inherits QObject.
Inherited by MLBaseGraphItemWrapper, and MLSkeletonWrapper.
A class that wraps PropertyContainer objects for use in scripting. 
Properties are a general approach to attach various data to the objects in a graph. Note that these are no Qt properties and must always be accessed with getProperty() or other methods of this class. 
 
◆ copyProperties
  
  
      
        
          | virtual void MLPropertyContainerWrapper::copyProperties  | 
          ( | 
          QObject * |           wrapper | ) | 
           | 
         
       
   | 
  
virtualslot   | 
  
 
Copies all properties from the given object. 
 
 
◆ createPropertyDouble
  
  
      
        
          | size_t MLPropertyContainerWrapper::createPropertyDouble  | 
          ( | 
          const QString & |           name,  | 
         
        
           | 
           | 
          double |           defaultValue ) | 
         
       
   | 
  
inlineslot   | 
  
 
Creates a new property with the given name and default value, returns the index of this property. 
This does not set the property on the given object, this just reserves a slot on the property manager. 
 
 
◆ createPropertyInt32
  
  
      
        
          | size_t MLPropertyContainerWrapper::createPropertyInt32  | 
          ( | 
          const QString & |           name,  | 
         
        
           | 
           | 
          long |           defaultValue ) | 
         
       
   | 
  
inlineslot   | 
  
 
Same as above for signed 32-bit integer value. 
 
 
◆ createPropertyUInt8
  
  
      
        
          | size_t MLPropertyContainerWrapper::createPropertyUInt8  | 
          ( | 
          const QString & |           name,  | 
         
        
           | 
           | 
          long |           defaultValue ) | 
         
       
   | 
  
inlineslot   | 
  
 
Same as above for unsigned 8-bit integer value. 
 
 
◆ createPropertyVector3
  
  
      
        
          | size_t MLPropertyContainerWrapper::createPropertyVector3  | 
          ( | 
          const QString & |           name,  | 
         
        
           | 
           | 
          QVariantList |           pos ) | 
         
       
   | 
  
inlineslot   | 
  
 
Same as above for 3D position (given as [x, y, z]). 
 
 
◆ getProperties
  
  
      
        
          | QVariantMap MLPropertyContainerWrapper::getProperties  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Returns all properties of this object. 
 
 
◆ getProperty [1/2]
  
  
      
        
          | QVariant MLPropertyContainerWrapper::getProperty  | 
          ( | 
          const QString & |           name | ) | 
           | 
         
       
   | 
  
inlineslot   | 
  
 
 
◆ getProperty [2/2]
  
  
      
        
          | QVariant MLPropertyContainerWrapper::getProperty  | 
          ( | 
          size_t |           index | ) | 
           | 
         
       
   | 
  
inlineslot   | 
  
 
Returns the value of the property value with the given index. 
 
 
◆ getPropertyIndex
  
  
      
        
          | size_t MLPropertyContainerWrapper::getPropertyIndex  | 
          ( | 
          const QString & |           name | ) | 
           | 
         
       
   | 
  
inlineslot   | 
  
 
Returns the index of the property with given name. 
The index is constant across objects of the same type, and can be used to speed up the access across many object. 
 
 
◆ removeProperty
  
  
      
        
          | void MLPropertyContainerWrapper::removeProperty  | 
          ( | 
          const QString & |           name | ) | 
           | 
         
       
   | 
  
inlineslot   | 
  
 
Removes a property with the given name name. 
 
 
◆ setProperty [1/2]
  
  
      
        
          | void MLPropertyContainerWrapper::setProperty  | 
          ( | 
          const QString & |           name,  | 
         
        
           | 
           | 
          QVariant |           value ) | 
         
       
   | 
  
inlineslot   | 
  
 
 
◆ setProperty [2/2]
  
  
      
        
          | void MLPropertyContainerWrapper::setProperty  | 
          ( | 
          size_t |           index,  | 
         
        
           | 
           | 
          QVariant |           value ) | 
         
       
   | 
  
inlineslot   | 
  
 
Sets the value of the property value with the given index. 
 
 
◆ properties
  
  
      
        
          | QVariantMap MLPropertyContainerWrapper::properties | 
         
       
   | 
  
read   | 
  
 
The properties of this object (read-only).