using Dali::Internal::SceneGraph::UpdateManager;
using Dali::Internal::SceneGraph::AnimatableProperty;
-namespace
-{
-const std::string INVALID_PROPERTY_NAME;
-}
-
namespace Dali
{
return new CustomObject();
}
-bool CustomObject::IsSceneObjectRemovable() const
-{
- return false;
-}
-
const SceneGraph::PropertyOwner* CustomObject::GetSceneObject() const
{
return mUpdateObject;
const PropertyBase* CustomObject::GetSceneObjectAnimatableProperty( Property::Index index ) const
{
- const PropertyBase* property( NULL );
-
- CustomPropertyLookup::const_iterator entry = GetCustomPropertyLookup().find( index );
-
- DALI_ASSERT_ALWAYS( GetCustomPropertyLookup().end() != entry && "index is invalid" );
-
- property = dynamic_cast<const PropertyBase*>( entry->second.GetSceneGraphProperty() );
-
- return property;
+ CustomProperty* custom = FindCustomProperty( index );
+ DALI_ASSERT_ALWAYS( custom && "Property index is invalid" );
+ return custom->GetSceneGraphProperty();
}
const PropertyInputImpl* CustomObject::GetSceneObjectInputProperty( Property::Index index ) const
{
}
-const std::string& CustomObject::GetDefaultPropertyName( Property::Index index ) const
+const char* CustomObject::GetDefaultPropertyName( Property::Index index ) const
{
- return INVALID_PROPERTY_NAME;
+ return NULL;
}
Property::Index CustomObject::GetDefaultPropertyIndex(const std::string& name) const