OpenSceneGraph 2.8.3

osgIntrospection::PropertyTypeAttribute Class Reference

Attribute for overriding the type of a property with a custom type. More...

Inheritance diagram for osgIntrospection::PropertyTypeAttribute:

List of all members.

Public Member Functions

 PropertyTypeAttribute (const Type &type)
const TypegetPropertyType () const

Detailed Description

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.


Constructor & Destructor Documentation

osgIntrospection::PropertyTypeAttribute::PropertyTypeAttribute ( const Type type) [inline]

Member Function Documentation

const Type& osgIntrospection::PropertyTypeAttribute::getPropertyType ( ) const [inline]

The documentation for this class was generated from the following file:

osg logo
Generated at Tue Mar 22 2011 13:20:26 for the OpenSceneGraph by doxygen 1.7.3.