virtual void GetLayerInfo( Property::Map& map ) const = 0;
/**
+ * @brief Gets the start frame and the end frame number of the composition marker.
+ *
+ * @param[in] marker The composition marker of the file
+ * @param[out] startFrame The start frame number of the specified marker
+ * @param[out] endFrame The end frame number of the specified marker
+ * @return True if the marker is found in the file, false otherwise.
+ *
+ * @note https://helpx.adobe.com/after-effects/using/layer-markers-composition-markers.html
+ * Markers exported from AfterEffect are used to describe a segment of an animation {comment/tag , startFrame, endFrame}
+ * Marker can be use to devide a resource in to separate animations by tagging the segment with comment string,
+ * start frame and duration of that segment.
+ */
+ virtual bool GetMarkerInfo( const std::string& marker, uint32_t& startFrame, uint32_t& endFrame ) const = 0;
+
+ /**
* @brief Connect to this signal to be notified when the texture upload is completed.
*
* @return The signal to connect to.
GetImplementation( *this ).GetLayerInfo( map );
}
+bool VectorAnimationRenderer::GetMarkerInfo( const std::string& marker, uint32_t& startFrame, uint32_t& endFrame ) const
+{
+ return GetImplementation( *this ).GetMarkerInfo( marker, startFrame, endFrame );
+}
+
VectorAnimationRenderer::UploadCompletedSignalType& VectorAnimationRenderer::UploadCompletedSignal()
{
return GetImplementation( *this ).UploadCompletedSignal();
*/
void GetLayerInfo( Property::Map& map ) const;
+ /**
+ * @brief Gets the start frame and the end frame number of the composition marker.
+ *
+ * @param[in] marker The composition marker of the file
+ * @param[out] startFrame The start frame number of the specified marker
+ * @param[out] endFrame The end frame number of the specified marker
+ * @return True if the marker is found in the file, false otherwise.
+ *
+ * @note https://helpx.adobe.com/after-effects/using/layer-markers-composition-markers.html
+ * Markers exported from AfterEffect are used to describe a segment of an animation {comment/tag , startFrame, endFrame}
+ * Marker can be use to devide a resource in to separate animations by tagging the segment with comment string,
+ * start frame and duration of that segment.
+ */
+ bool GetMarkerInfo( const std::string& marker, uint32_t& startFrame, uint32_t& endFrame ) const;
+
public: // Signals
/**
mPlugin.GetLayerInfo( map );
}
+bool VectorAnimationRenderer::GetMarkerInfo( const std::string& marker, uint32_t& startFrame, uint32_t& endFrame ) const
+{
+ return mPlugin.GetMarkerInfo( marker, startFrame, endFrame );
+}
+
Dali::VectorAnimationRenderer::UploadCompletedSignalType& VectorAnimationRenderer::UploadCompletedSignal()
{
return mPlugin.UploadCompletedSignal();
void GetLayerInfo( Property::Map& map ) const;
/**
+ * @copydoc Dali::VectorAnimationRenderer::GetMarkerInfo()
+ */
+ bool GetMarkerInfo( const std::string& marker, uint32_t& startFrame, uint32_t& endFrame ) const;
+
+ /**
* @copydoc Dali::VectorAnimationRenderer::UploadCompletedSignal()
*/
Dali::VectorAnimationRenderer::UploadCompletedSignalType& UploadCompletedSignal();
}
}
+bool VectorAnimationRendererPluginProxy::GetMarkerInfo( const std::string& marker, uint32_t& startFrame, uint32_t& endFrame ) const
+{
+ if( mPlugin )
+ {
+ return mPlugin->GetMarkerInfo( marker, startFrame, endFrame );
+ }
+ return false;
+}
+
VectorAnimationRendererPlugin::UploadCompletedSignalType& VectorAnimationRendererPluginProxy::UploadCompletedSignal()
{
if( mPlugin )
void GetLayerInfo( Property::Map& map ) const;
/**
+ * @copydoc Dali::VectorAnimationRendererPlugin::GetMarkerInfo()
+ */
+ bool GetMarkerInfo( const std::string& marker, uint32_t& startFrame, uint32_t& endFrame ) const;
+
+ /**
* @copydoc Dali::VectorAnimationRendererPlugin::UploadCompletedSignal()
*/
VectorAnimationRendererPlugin::UploadCompletedSignalType& UploadCompletedSignal();