X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fmesh%2Fmesh-visual.h;h=852d7efbad0805a860d13f9c42f743ff141c882b;hp=3cc1d669736ba09b410f946b12032a9ce6b02b3c;hb=HEAD;hpb=c052b6678e2c6d8a65545dbbe4531ea7057c1999 diff --git a/dali-toolkit/internal/visuals/mesh/mesh-visual.h b/dali-toolkit/internal/visuals/mesh/mesh-visual.h index 3cc1d66..d4765e9 100644 --- a/dali-toolkit/internal/visuals/mesh/mesh-visual.h +++ b/dali-toolkit/internal/visuals/mesh/mesh-visual.h @@ -19,26 +19,23 @@ */ // EXTERNAL INCLUDES -#include -#include #include +#include +#include // INTERNAL INCLUDES -#include -#include #include +#include +#include namespace Dali { - namespace Toolkit { - namespace Internal { - class MeshVisual; -typedef IntrusivePtr< MeshVisual > MeshVisualPtr; +typedef IntrusivePtr MeshVisualPtr; /** * The visual which renders a 3D object to the control's quad @@ -55,10 +52,9 @@ typedef IntrusivePtr< MeshVisual > MeshVisualPtr; * | useSoftNormals | BOOLEAN | If true, average normals at points for smooth textures. Default true. | * | lightPosition | VECTOR3 | The position (on stage) of the light | */ -class MeshVisual: public Visual::Base +class MeshVisual : public Visual::Base { public: - /** * @brief Create a new mesh visual. * @@ -66,28 +62,26 @@ public: * @param[in] properties A Property::Map containing settings for this visual * @return A smart-pointer to the newly allocated visual. */ - static MeshVisualPtr New( VisualFactoryCache& factoryCache, const Property::Map& properties ); - -public: // from Visual + static MeshVisualPtr New(VisualFactoryCache& factoryCache, const Property::Map& properties); +public: // from Visual /** * @copydoc Visual::Base::CreatePropertyMap */ - void DoCreatePropertyMap( Property::Map& map ) const override; + void DoCreatePropertyMap(Property::Map& map) const override; /** * @copydoc Visual::Base::CreateInstancePropertyMap */ - void DoCreateInstancePropertyMap( Property::Map& map ) const override; + void DoCreateInstancePropertyMap(Property::Map& map) const override; protected: - /** * @brief Constructor. * * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object */ - MeshVisual( VisualFactoryCache& factoryCache ); + MeshVisual(VisualFactoryCache& factoryCache); /** * @brief A reference counted object may only be deleted by calling Unreference(). @@ -102,7 +96,7 @@ protected: /** * @copydoc Visual::Base::DoSetProperties */ - void DoSetProperties( const Property::Map& propertyMap ) override; + void DoSetProperties(const Property::Map& propertyMap) override; /** * @copydoc Visual::Base::OnSetTransform @@ -112,10 +106,9 @@ protected: /** * @copydoc Visual::Base::DoSetOnScene */ - void DoSetOnScene( Actor& actor ) override; + void DoSetOnScene(Actor& actor) override; private: - /** * @brief Provide an empty geometry for the visual to use. * @details For use in error cases where the initialisation has failed for varying reasons. @@ -161,18 +154,16 @@ private: * @param[in] index The index key of the value * @param[in] value The value */ - void DoSetProperty( Property::Index index, const Property::Value& value ); + void DoSetProperty(Property::Index index, const Property::Value& value); private: - // Undefined - MeshVisual( const MeshVisual& meshVisual ); + MeshVisual(const MeshVisual& meshVisual); // Undefined - MeshVisual& operator=( const MeshVisual& meshVisual ); + MeshVisual& operator=(const MeshVisual& meshVisual); private: - std::string mObjectUrl; std::string mMaterialUrl; @@ -181,15 +172,15 @@ private: std::string mGlossTextureUrl; std::string mTexturesPath; - Shader mShader; - Geometry mGeometry; + Shader mShader; + Geometry mGeometry; TextureSet mTextureSet; ObjLoader mObjLoader; - Vector3 mSceneCenter; - Vector3 mSceneSize; + Vector3 mSceneCenter; + Vector3 mSceneSize; - Vector3 mLightPosition; + Vector3 mLightPosition; Toolkit::MeshVisual::ShadingMode::Value mShadingMode; bool mUseTexture;