OpenSceneGraph 2.8.4
|
Attribute for overriding the type of a property with a custom type. More...
Public Member Functions | |
PropertyTypeAttribute (const Type &type) | |
const Type & | getPropertyType () const |
Attribute for overriding the type of a property with a custom type.
If you add this attribute to a PropertyInfo object, then all subsequent calls to getValue()/getArrayItem()/getIndexedValue() will perform a conversion from the actual property's type to the custom type specified through this attribute. Similarly, all methods in PropertyInfo that alter the property's value will accept a value of the custom type instead of the actual type. In this case the conversion is implicit and occurs later within the accessor methods.
osgIntrospection::PropertyTypeAttribute::PropertyTypeAttribute | ( | const Type & | type | ) | [inline] |
const Type& osgIntrospection::PropertyTypeAttribute::getPropertyType | ( | ) | const [inline] |
Referenced by osgIntrospection::PropertyInfo::getPropertyType().
![]() | Generated at Sun Jan 8 2012 13:16:35 for the OpenSceneGraph by doxygen 1.7.4. |