X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fwireframe%2Fwireframe-visual.h;h=9edeca8e256285f116052054fa592b0fb2c3f906;hb=dfebb1e3da197e21bd7f4424ab65884b98f42fea;hp=19cbc4676947c8146e8401c79df156a79edf7c12;hpb=be7711b99f7e5db0b712194636745045d4da1154;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/wireframe/wireframe-visual.h b/dali-toolkit/internal/visuals/wireframe/wireframe-visual.h index 19cbc46..9edeca8 100644 --- a/dali-toolkit/internal/visuals/wireframe/wireframe-visual.h +++ b/dali-toolkit/internal/visuals/wireframe/wireframe-visual.h @@ -47,9 +47,34 @@ public: * @brief Create a new wireframe visual. * * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object + * @param[in] properties A Property::Map containing settings for this visual * @return A smart-pointer to the newly allocated visual. */ - static WireframeVisualPtr New( VisualFactoryCache& factoryCache ); + static WireframeVisualPtr New( VisualFactoryCache& factoryCache, const Property::Map& properties ); + + /** + * @brief Create a new wireframe visual with an encapsulated actual visual. + * + * For debugging purpose, the rendering of the encapsulated visual is replaced with wireframe + * + * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object + * @param[in] actualVisual The encapsulated actual visual. + * @return A smart-pointer to the newly allocated visual. + */ + static WireframeVisualPtr New( VisualFactoryCache& factoryCache, Visual::BasePtr actualVisual ); + + /** + * @brief Create a new wireframe visual with an encapsulated actual visual. + * + * For debugging purpose, the rendering of the encapsulated visual is replaced with wireframe + * + * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object + * @param[in] actualVisual The encapsulated actual visual. + * @param[in] properties A Property::Map containing settings for this visual + * @return A smart-pointer to the newly allocated visual. + */ + static WireframeVisualPtr New( VisualFactoryCache& factoryCache, Visual::BasePtr actualVisual, const Property::Map& properties ); + protected: @@ -57,38 +82,46 @@ protected: * @brief Constructor. * * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object + * @param[in] actualVisual The encapsulated actual visual. */ - WireframeVisual( VisualFactoryCache& factoryCache ); + WireframeVisual( VisualFactoryCache& factoryCache, Visual::BasePtr actualVisual ); /** * @brief A reference counted object may only be deleted by calling Unreference(). */ virtual ~WireframeVisual(); +protected: // from Visual::Base + /** - * @copydoc Visual::Base::DoSetProperties() + * @copydoc Visual::Base::GetHeightForWidth() */ - virtual void DoSetProperties( const Property::Map& propertyMap ); + virtual float GetHeightForWidth( float width ); /** - * @copydoc Visual::Base::DoSetOnStage + * @copydoc Visual::Base::GetNaturalSize() */ - virtual void DoSetOnStage( Actor& actor ); + virtual void GetNaturalSize( Vector2& naturalSize ); /** - * @copydoc Visual::Base::CreatePropertyMap + * @copydoc Visual::Base::CreatePropertyMap() */ virtual void DoCreatePropertyMap( Property::Map& map ) const; /** - * @copydoc Visual::Base::DoSetProperty + * @copydoc Visual::Base::CreateInstancePropertyMap + */ + virtual void DoCreateInstancePropertyMap( Property::Map& map ) const; + + /** + * @copydoc Visual::Base::DoSetProperties() */ - virtual void DoSetProperty( Dali::Property::Index index, const Dali::Property::Value& propertyValue ); + virtual void DoSetProperties( const Property::Map& propertyMap ); /** - * @copydoc Visual::Base::DoGetProperty + * @copydoc Visual::Base::DoSetOnStage */ - virtual Dali::Property::Value DoGetProperty( Dali::Property::Index index ); + virtual void DoSetOnStage( Actor& actor ); /** * @copydoc Visual::Base::OnSetTransform @@ -107,14 +140,16 @@ private: */ void InitializeRenderer(); -private: - // Undefined WireframeVisual( const WireframeVisual& visual); // Undefined WireframeVisual& operator=( const WireframeVisual& visual ); +private: + + Visual::BasePtr mActualVisual; + }; } // namespace Internal