Revert "[3.0] Rename DebugVisual to WireframeVisual" 45/97745/1
authordongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 02:45:05 +0000 (11:45 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 02:45:08 +0000 (11:45 +0900)
This reverts commit b354da3127a34527e3b78eb46ed0d8f6baf33012.

Change-Id: I17c0ebf21ef31418f90b541d8cf8160bf636e48e

16 files changed:
automated-tests/src/dali-toolkit/CMakeLists.txt
automated-tests/src/dali-toolkit/utc-Dali-DebugVisual.cpp [moved from automated-tests/src/dali-toolkit/utc-Dali-DebugRendering.cpp with 92% similarity]
automated-tests/src/dali-toolkit/utc-Dali-Visual.cpp
dali-toolkit/internal/file.list
dali-toolkit/internal/visuals/debug/debug-visual.cpp [moved from dali-toolkit/internal/visuals/wireframe/wireframe-visual.cpp with 85% similarity]
dali-toolkit/internal/visuals/debug/debug-visual.h [moved from dali-toolkit/internal/visuals/wireframe/wireframe-visual.h with 78% similarity]
dali-toolkit/internal/visuals/visual-factory-cache.cpp
dali-toolkit/internal/visuals/visual-factory-cache.h
dali-toolkit/internal/visuals/visual-factory-impl.cpp
dali-toolkit/public-api/visuals/visual-properties.h
docs/content/images/debug-visual/debug-blocks.png [moved from docs/content/images/debug-rendering/debug-blocks.png with 100% similarity]
docs/content/images/visuals/wireframe-visual.png [deleted file]
docs/content/main.md
docs/content/shared-javascript-and-cpp-documentation/debug-rendering.md [deleted file]
docs/content/shared-javascript-and-cpp-documentation/debug-visual.md [new file with mode: 0644]
docs/content/shared-javascript-and-cpp-documentation/visuals.md

index 42bf106..0db0538 100644 (file)
@@ -50,7 +50,7 @@ SET(TC_SOURCES
    utc-Dali-Model3dView.cpp
    utc-Dali-Visual.cpp
    utc-Dali-VisualFactory.cpp
-   utc-Dali-DebugRendering.cpp
+   utc-Dali-DebugVisual.cpp
    utc-Dali-ImageAtlas.cpp
    utc-Dali-VideoView.cpp
 )
@@ -42,7 +42,7 @@ bool IsDebugVisual( Visual::Base& visual )
   Property::Value* typeValue = propertyMap.Find( Visual::Property::TYPE,  Property::INTEGER );
   if ( typeValue )
   {
-    isDebugVisualType = ( typeValue->Get<int>() == Visual::WIREFRAME ); // Debug Rendering uses the WireframeVisual
+    isDebugVisualType = ( typeValue->Get<int>() == Visual::DEBUG );
   }
 
   Actor actor = Actor::New();
@@ -54,21 +54,21 @@ bool IsDebugVisual( Visual::Base& visual )
 }
 }
 
-void dali_debug_rendering_startup(void)
+void dali_debug_renderer_startup(void)
 {
   test_return_value = TET_UNDEF;
 }
 
-void dali_debug_rendering_cleanup(void)
+void dali_debug_renderer_cleanup(void)
 {
   test_return_value = TET_PASS;
 }
 
-int UtcDaliDebugRenderingGetVisual1(void)
+int UtcDaliDebugVisualGetVisual1(void)
 {
   EnvironmentVariable::SetTestingEnvironmentVariable(true);
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliDebugRenderingGetVisual1:  Request visual with a Property::Map" );
+  tet_infoline( "UtcDaliDebugVisualGetVisual1:  Request visual with a Property::Map" );
 
   VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
@@ -130,11 +130,11 @@ int UtcDaliDebugRenderingGetVisual1(void)
   END_TEST;
 }
 
-int UtcDaliDebugRenderingGetVisual2(void)
+int UtcDaliDebugVisualGetVisual2(void)
 {
   EnvironmentVariable::SetTestingEnvironmentVariable(true);
   ToolkitTestApplication application;
-  tet_infoline( "UtcDaliDebugRenderingGetVisual2: Request visual with various parameters" );
+  tet_infoline( "UtcDaliDebugVisualGetVisual2: Request visual with various parameters" );
 
   VisualFactory factory = VisualFactory::Get();
   DALI_TEST_CHECK( factory );
index f603472..b6080c3 100644 (file)
@@ -777,211 +777,3 @@ int UtcDaliVisualGetPropertyMap9(void)
 
   END_TEST;
 }
-
-int UtcDaliVisualAnimateBorderVisual01(void)
-{
-  ToolkitTestApplication application;
-  tet_infoline( "UtcDaliAnimateBorderVisual Color" );
-
-  VisualFactory factory = VisualFactory::Get();
-  Property::Map propertyMap;
-  propertyMap.Insert(Visual::Property::TYPE,  Visual::BORDER);
-  propertyMap.Insert(BorderVisual::Property::COLOR,  Color::BLUE);
-  propertyMap.Insert(BorderVisual::Property::SIZE,  5.f);
-  Visual::Base borderVisual = factory.CreateVisual( propertyMap );
-
-  Actor actor = Actor::New();
-  actor.SetSize(2000, 2000);
-  actor.SetParentOrigin(ParentOrigin::CENTER);
-  Stage::GetCurrent().Add(actor);
-  borderVisual.SetOnStage( actor );
-
-  DALI_TEST_EQUALS( actor.GetRendererCount(), 1u, TEST_LOCATION);
-
-  Renderer renderer = actor.GetRendererAt(0);
-  Property::Index index = renderer.GetPropertyIndex( BorderVisual::Property::COLOR );
-
-  Animation animation = Animation::New(4.0f);
-  animation.AnimateTo( Property(renderer, index), Color::WHITE );
-  animation.Play();
-
-  application.SendNotification();
-  application.Render(0);
-  application.Render(2000u); // halfway point between blue and white
-
-  Vector4 color = renderer.GetProperty<Vector4>( index );
-  Vector4 testColor = (Color::BLUE + Color::WHITE)*0.5f;
-  DALI_TEST_EQUALS( color, testColor, TEST_LOCATION );
-  DALI_TEST_EQUALS( application.GetGlAbstraction().CheckUniformValue<Vector4>("borderColor", testColor ), true, TEST_LOCATION );
-
-  application.Render(2000u); // halfway point between blue and white
-
-  color = renderer.GetProperty<Vector4>( index );
-  DALI_TEST_EQUALS( color, Color::WHITE, TEST_LOCATION );
-  DALI_TEST_EQUALS( application.GetGlAbstraction().CheckUniformValue<Vector4>("borderColor", Color::WHITE ), true, TEST_LOCATION );
-
-  END_TEST;
-}
-
-
-int UtcDaliVisualAnimateBorderVisual02(void)
-{
-  ToolkitTestApplication application;
-  tet_infoline( "UtcDaliAnimateBorderVisual Size" );
-
-  VisualFactory factory = VisualFactory::Get();
-  Property::Map propertyMap;
-  propertyMap.Insert(Visual::Property::TYPE,  Visual::BORDER);
-  propertyMap.Insert(BorderVisual::Property::COLOR,  Color::BLUE);
-  propertyMap.Insert(BorderVisual::Property::SIZE,  5.f);
-  Visual::Base borderVisual = factory.CreateVisual( propertyMap );
-
-  Actor actor = Actor::New();
-  actor.SetSize(2000, 2000);
-  actor.SetParentOrigin(ParentOrigin::CENTER);
-  Stage::GetCurrent().Add(actor);
-  borderVisual.SetOnStage( actor );
-
-  DALI_TEST_EQUALS( actor.GetRendererCount(), 1u, TEST_LOCATION);
-
-  Renderer renderer = actor.GetRendererAt(0);
-  Property::Index index = renderer.GetPropertyIndex( BorderVisual::Property::SIZE );
-
-  Animation animation = Animation::New(4.0f);
-  animation.AnimateTo( Property(renderer, index), 9.0f );
-  animation.Play();
-
-  application.SendNotification();
-  application.Render(0);
-  application.Render(2000u); // halfway point
-
-  float size = renderer.GetProperty<float>( index );
-  DALI_TEST_EQUALS( size, 7.0f, 0.0001f, TEST_LOCATION );
-  DALI_TEST_EQUALS( application.GetGlAbstraction().CheckUniformValue<float>("borderSize", 7.0f ), true, TEST_LOCATION );
-
-  application.Render(2000u); // halfway point between blue and white
-
-  size = renderer.GetProperty<float>( index );
-  DALI_TEST_EQUALS( size, 9.0f, 0.0001f, TEST_LOCATION );
-  DALI_TEST_EQUALS( application.GetGlAbstraction().CheckUniformValue<float>("borderSize", 9.0f ), true, TEST_LOCATION );
-
-  END_TEST;
-}
-
-int UtcDaliVisualAnimateColorVisual(void)
-{
-  ToolkitTestApplication application;
-  tet_infoline( "UtcDaliAnimateColorVisual mixColor" );
-
-  VisualFactory factory = VisualFactory::Get();
-  Property::Map propertyMap;
-  propertyMap.Insert(Visual::Property::TYPE,  Visual::COLOR);
-  propertyMap.Insert(ColorVisual::Property::MIX_COLOR, Color::BLUE);
-  Visual::Base borderVisual = factory.CreateVisual( propertyMap );
-
-  Actor actor = Actor::New();
-  actor.SetSize(2000, 2000);
-  actor.SetParentOrigin(ParentOrigin::CENTER);
-  Stage::GetCurrent().Add(actor);
-  borderVisual.SetOnStage( actor );
-
-  DALI_TEST_EQUALS( actor.GetRendererCount(), 1u, TEST_LOCATION);
-
-  Renderer renderer = actor.GetRendererAt(0);
-  Property::Index index = renderer.GetPropertyIndex( ColorVisual::Property::MIX_COLOR );
-
-  Animation animation = Animation::New(4.0f);
-  animation.AnimateTo( Property(renderer, index), Color::WHITE );
-  animation.Play();
-
-  application.SendNotification();
-  application.Render(0);
-  application.Render(2000u); // halfway point
-
-  Vector4 color = renderer.GetProperty<Vector4>( index );
-  Vector4 testColor = (Color::BLUE + Color::WHITE)*0.5f;
-  DALI_TEST_EQUALS( color, testColor, TEST_LOCATION );
-
-  DALI_TEST_EQUALS( application.GetGlAbstraction().CheckUniformValue<Vector4>("mixColor", testColor ), true, TEST_LOCATION );
-
-  application.Render(2000u); // halfway point between blue and white
-
-  color = renderer.GetProperty<Vector4>( index );
-  DALI_TEST_EQUALS( color, Color::WHITE, TEST_LOCATION );
-
-  DALI_TEST_EQUALS( application.GetGlAbstraction().CheckUniformValue<Vector4>("mixColor", Color::WHITE ), true, TEST_LOCATION );
-
-
-  END_TEST;
-}
-
-
-int UtcDaliVisualAnimatePrimitiveVisual(void)
-{
-  ToolkitTestApplication application;
-  tet_infoline( "UtcDaliAnimatePrimitiveVisual color" );
-
-  VisualFactory factory = VisualFactory::Get();
-  Property::Map propertyMap;
-  propertyMap.Insert(Visual::Property::TYPE,  Visual::COLOR);
-  propertyMap.Insert(ColorVisual::Property::MIX_COLOR, Color::BLUE);
-  Visual::Base borderVisual = factory.CreateVisual( propertyMap );
-
-  Actor actor = Actor::New();
-  actor.SetSize(2000, 2000);
-  actor.SetParentOrigin(ParentOrigin::CENTER);
-  actor.SetColor(Color::BLACK);
-  Stage::GetCurrent().Add(actor);
-  borderVisual.SetOnStage( actor );
-
-  DALI_TEST_EQUALS( actor.GetRendererCount(), 1u, TEST_LOCATION);
-
-  Renderer renderer = actor.GetRendererAt(0);
-  Property::Index index = renderer.GetPropertyIndex( PrimitiveVisual::Property::COLOR );
-
-  // The property isn't registered on the renderer, it's instead registered on the shader.
-  DALI_TEST_EQUALS( index, Property::INVALID_INDEX, TEST_LOCATION );
-
-  Animation animation = Animation::New(4.0f);
-  animation.AnimateTo( Property(actor, Actor::Property::COLOR), Color::WHITE );
-  animation.Play();
-
-  application.SendNotification();
-  application.Render(0);
-  application.Render(2000u); // halfway point
-
-  // Actor color overrides renderer color.
-  DALI_TEST_EQUALS( application.GetGlAbstraction().CheckUniformValue<Vector4>("uColor", Vector4(0.5f, 0.5f, 0.5f, 1.0f )), true, TEST_LOCATION );
-
-  application.Render(2000u); // halfway point between blue and white
-
-  DALI_TEST_EQUALS( actor.GetCurrentColor(), Color::WHITE, TEST_LOCATION );
-  DALI_TEST_EQUALS( application.GetGlAbstraction().CheckUniformValue<Vector4>("uColor", Color::WHITE ), true, TEST_LOCATION );
-
-
-  END_TEST;
-}
-
-int UtcDaliVisualWireframeVisual(void)
-{
-  ToolkitTestApplication application;
-
-  VisualFactory factory = VisualFactory::Get();
-  Property::Map propertyMap;
-  propertyMap.Insert( Visual::Property::TYPE, Visual::WIREFRAME );
-
-  // Create the visual.
-  Visual::Base visual = factory.CreateVisual( propertyMap );
-
-  DALI_TEST_CHECK( visual );
-
-  Property::Map resultMap;
-  visual.CreatePropertyMap( resultMap );
-
-  // Check the property values from the returned map from visual
-  Property::Value* value = resultMap.Find( Visual::Property::TYPE, Property::INTEGER );
-  DALI_TEST_CHECK( value );
-  DALI_TEST_CHECK( value->Get<int>() == Visual::WIREFRAME );
-  END_TEST;
-}
-
index 78940ad..2c22b61 100644 (file)
@@ -18,17 +18,17 @@ toolkit_src_files = \
    $(toolkit_src_dir)/visuals/visual-string-constants.cpp \
    $(toolkit_src_dir)/visuals/border/border-visual.cpp \
    $(toolkit_src_dir)/visuals/color/color-visual.cpp \
+   $(toolkit_src_dir)/visuals/debug/debug-visual.cpp \
+   $(toolkit_src_dir)/visuals/image/image-visual.cpp \
+   $(toolkit_src_dir)/visuals/npatch/npatch-visual.cpp \
    $(toolkit_src_dir)/visuals/gradient/gradient.cpp \
    $(toolkit_src_dir)/visuals/gradient/linear-gradient.cpp \
    $(toolkit_src_dir)/visuals/gradient/radial-gradient.cpp \
    $(toolkit_src_dir)/visuals/gradient/gradient-visual.cpp \
-   $(toolkit_src_dir)/visuals/image/image-visual.cpp \
-   $(toolkit_src_dir)/visuals/mesh/mesh-visual.cpp \
-   $(toolkit_src_dir)/visuals/npatch/npatch-visual.cpp \
-   $(toolkit_src_dir)/visuals/primitive/primitive-visual.cpp \
    $(toolkit_src_dir)/visuals/svg/svg-rasterize-thread.cpp \
    $(toolkit_src_dir)/visuals/svg/svg-visual.cpp \
-   $(toolkit_src_dir)/visuals/wireframe/wireframe-visual.cpp \
+   $(toolkit_src_dir)/visuals/mesh/mesh-visual.cpp \
+   $(toolkit_src_dir)/visuals/primitive/primitive-visual.cpp \
    $(toolkit_src_dir)/controls/alignment/alignment-impl.cpp \
    $(toolkit_src_dir)/controls/bloom-view/bloom-view-impl.cpp \
    $(toolkit_src_dir)/controls/bubble-effect/bubble-emitter-impl.cpp \
@@ -17,7 +17,7 @@
 
 
 // CLASS HEADER
-#include "wireframe-visual.h"
+#include "debug-visual.h"
 
 // INTERNAL INCLUDES
 #include <dali-toolkit/public-api/visuals/visual-properties.h>
@@ -65,39 +65,39 @@ void main()\n
 }
 
 
-WireframeVisual::WireframeVisual( VisualFactoryCache& factoryCache )
+DebugVisual::DebugVisual( VisualFactoryCache& factoryCache )
 : Visual::Base( factoryCache )
 {
 }
 
-WireframeVisual::~WireframeVisual()
+DebugVisual::~DebugVisual()
 {}
 
-void WireframeVisual::DoSetOnStage( Actor& actor )
+void DebugVisual::DoSetOnStage( Actor& actor )
 {
   InitializeRenderer();
 }
 
-void WireframeVisual::DoCreatePropertyMap( Property::Map& map ) const
+void DebugVisual::DoCreatePropertyMap( Property::Map& map ) const
 {
   map.Clear();
-  map.Insert( Toolkit::Visual::Property::TYPE, Toolkit::Visual::WIREFRAME );
+  map.Insert( Toolkit::Visual::Property::TYPE, Toolkit::Visual::DEBUG );
 }
 
-void WireframeVisual::InitializeRenderer()
+void DebugVisual::InitializeRenderer()
 {
-  mImpl->mRenderer = mFactoryCache.GetWireframeRenderer();
+  mImpl->mRenderer = mFactoryCache.GetDebugRenderer();
   if( !mImpl->mRenderer )
   {
     Geometry geometry = CreateQuadWireframeGeometry();
     Shader shader = Shader::New( VERTEX_SHADER, FRAGMENT_SHADER );
 
     mImpl->mRenderer = Renderer::New( geometry, shader);
-    mFactoryCache.CacheWireframeRenderer( mImpl->mRenderer );
+    mFactoryCache.CacheDebugRenderer( mImpl->mRenderer );
   }
 }
 
-Geometry WireframeVisual::CreateQuadWireframeGeometry()
+Geometry DebugVisual::CreateQuadWireframeGeometry()
 {
   const float halfWidth = 0.5f;
   const float halfHeight = 0.5f;
@@ -1,8 +1,8 @@
-#ifndef DALI_TOOLKIT_INTERNAL_WIREFRAME_VISUAL_H
-#define DALI_TOOLKIT_INTERNAL_WIREFRAME_VISUAL_H
+#ifndef DALI_TOOLKIT_INTERNAL_DEBUG_VISUAL_H
+#define DALI_TOOLKIT_INTERNAL_DEBUG_VISUAL_H
 
 /*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -31,10 +31,10 @@ namespace Internal
 {
 
 /**
- * The visual which renders a wireframe outline to the control's quad.
+ * The visual which renders a wireframe outline to the control's quad for debugging
  *
  */
-class WireframeVisual: public Visual::Base
+class DebugVisual: public Visual::Base
 {
 public:
 
@@ -43,12 +43,12 @@ public:
    *
    * @param[in] factoryCache A pointer pointing to the VisualFactoryCache object
    */
-  WireframeVisual( VisualFactoryCache& factoryCache );
+  DebugVisual( VisualFactoryCache& factoryCache );
 
   /**
    * @brief A reference counted object may only be deleted by calling Unreference().
    */
-  virtual ~WireframeVisual();
+  virtual ~DebugVisual();
 
 protected:
 
@@ -78,10 +78,10 @@ private:
 private:
 
   // Undefined
-  WireframeVisual( const WireframeVisual& visual);
+  DebugVisual( const DebugVisual& debugVisual);
 
   // Undefined
-  WireframeVisual& operator=( const WireframeVisual& visual );
+  DebugVisual& operator=( const DebugVisual& debugVisual );
 
 };
 
@@ -91,4 +91,4 @@ private:
 
 } // namespace Dali
 
-#endif // DALI_TOOLKIT_INTERNAL_WIREFRAME_VISUAL_H
+#endif /* DALI_TOOLKIT_INTERNAL_DEBUG_VISUAL_H */
index b3f8ab6..aef0fc8 100644 (file)
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -143,14 +143,14 @@ bool VisualFactoryCache::CleanRendererCache( const std::string& key )
   return false;
 }
 
-void VisualFactoryCache::CacheWireframeRenderer( Renderer& renderer )
+void VisualFactoryCache::CacheDebugRenderer( Renderer& renderer )
 {
-  mWireframeRenderer = renderer;
+  mDebugRenderer = renderer;
 }
 
-Renderer VisualFactoryCache::GetWireframeRenderer()
+Renderer VisualFactoryCache::GetDebugRenderer()
 {
-  return mWireframeRenderer;
+  return mDebugRenderer;
 }
 
 Geometry VisualFactoryCache::CreateQuadGeometry()
index 232495d..488be15 100644 (file)
@@ -152,14 +152,14 @@ public:
   bool CleanRendererCache( const std::string& key );
 
   /**
-   * @brief Cache the wireframe renderer
+   * @brief Cache the debug renderer
    */
-  void CacheWireframeRenderer( Renderer& renderer );
+  void CacheDebugRenderer( Renderer& renderer );
 
   /**
-   * @brief Request the wireframe renderer;
+   * @brief Request the debug renderer;
    */
-  Renderer GetWireframeRenderer();
+  Renderer GetDebugRenderer();
 
   /**
    * Get the SVG rasterization thread.
@@ -220,7 +220,7 @@ private:
   HashVector mRendererHashes;
   CachedRenderers mRenderers;
 
-  Renderer mWireframeRenderer;
+  Renderer mDebugRenderer;
 
   SvgRasterizeThread*  mSvgRasterizeThread;
 };
index 71152d9..799fe6d 100644 (file)
 #include <dali-toolkit/public-api/visuals/visual-properties.h>
 #include <dali-toolkit/internal/visuals/border/border-visual.h>
 #include <dali-toolkit/internal/visuals/color/color-visual.h>
+#include <dali-toolkit/internal/visuals/debug/debug-visual.h>
 #include <dali-toolkit/internal/visuals/gradient/gradient-visual.h>
+#include <dali-toolkit/internal/visuals/npatch/npatch-visual.h>
 #include <dali-toolkit/internal/visuals/image/image-visual.h>
+#include <dali-toolkit/internal/visuals/svg/svg-visual.h>
 #include <dali-toolkit/internal/visuals/mesh/mesh-visual.h>
-#include <dali-toolkit/internal/visuals/npatch/npatch-visual.h>
 #include <dali-toolkit/internal/visuals/primitive/primitive-visual.h>
-#include <dali-toolkit/internal/visuals/svg/svg-visual.h>
-#include <dali-toolkit/internal/visuals/wireframe/wireframe-visual.h>
 #include <dali-toolkit/internal/visuals/visual-factory-cache.h>
 #include <dali-toolkit/internal/visuals/visual-string-constants.h>
+#include <dali-toolkit/internal/visuals/image-atlas-manager.h>
 
 namespace
 {
 const char * const BROKEN_VISUAL_IMAGE_URL( DALI_IMAGE_DIR "broken.png");
 }
+
 namespace Dali
 {
 
@@ -65,7 +66,7 @@ DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, GRADIENT )
 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, IMAGE )
 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, MESH )
 DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, PRIMITIVE )
-DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, WIREFRAME )
+DALI_ENUM_TO_STRING_WITH_SCOPE( Toolkit::Visual, DEBUG )
 DALI_ENUM_TO_STRING_TABLE_END( VISUAL_TYPE )
 
 const char * const VISUAL_TYPE( "visualType" );
@@ -99,10 +100,10 @@ Toolkit::Visual::Base VisualFactory::CreateVisual( const Property::Map& property
     mFactoryCache = new VisualFactoryCache();
   }
 
-  // Return a new WireframeVisual if we have debug enabled
+  // Return a new DebugVisual if we have debug enabled
   if( mDebugEnabled )
   {
-    return Toolkit::Visual::Base( new WireframeVisual( *( mFactoryCache.Get() ) ) );
+    return Toolkit::Visual::Base( new DebugVisual( *( mFactoryCache.Get() ) ) );
   }
 
   Visual::Base* visualPtr = NULL;
@@ -173,9 +174,9 @@ Toolkit::Visual::Base VisualFactory::CreateVisual( const Property::Map& property
       break;
     }
 
-    case Toolkit::Visual::WIREFRAME:
+    case Toolkit::Visual::DEBUG:
     {
-      visualPtr = new WireframeVisual( *( mFactoryCache.Get() ) );
+      visualPtr = new DebugVisual( *( mFactoryCache.Get() ) );
       break;
     }
   }
@@ -202,7 +203,7 @@ Toolkit::Visual::Base VisualFactory::CreateVisual( const Image& image )
 
   if( mDebugEnabled )
   {
-    return Toolkit::Visual::Base( new WireframeVisual( *( mFactoryCache.Get() ) ) );
+    return Toolkit::Visual::Base( new DebugVisual( *( mFactoryCache.Get() ) ) );
   }
 
   NinePatchImage npatchImage = NinePatchImage::DownCast( image );
@@ -233,7 +234,7 @@ Toolkit::Visual::Base VisualFactory::CreateVisual( const std::string& url, Image
 
   if( mDebugEnabled )
   {
-    return Toolkit::Visual::Base( new WireframeVisual( *( mFactoryCache.Get() ) ) );
+    return Toolkit::Visual::Base( new DebugVisual( *( mFactoryCache.Get() ) ) );
   }
 
   if( NinePatchImage::IsNinePatchUrl( url ) )
index 8b2272d..4952ebb 100644 (file)
@@ -42,7 +42,7 @@ enum Type
   IMAGE, ///< Renders an image into the control's quad. @SINCE_1_1.45
   MESH, ///< Renders a mesh using an "obj" file, optionally with textures provided by an "mtl" file. @SINCE_1_1.45
   PRIMITIVE, ///< Renders a simple 3D shape, such as a cube or sphere. @SINCE_1_1.45
-  WIREFRAME, ///< Renders a simple wire-frame outlining a quad. @SINCE_1_1.45
+  DEBUG, ///< Renders a simple wire-frame outlining a quad. @SINCE_1_1.45
 };
 
 namespace Property
diff --git a/docs/content/images/visuals/wireframe-visual.png b/docs/content/images/visuals/wireframe-visual.png
deleted file mode 100644 (file)
index b22bd94..0000000
Binary files a/docs/content/images/visuals/wireframe-visual.png and /dev/null differ
index f6eeb25..e2ff92e 100644 (file)
@@ -77,7 +77,7 @@
  + Environment Variables
  + [Resource Tracking](@ref resourcetracking)
  + Logging
- + [Visual Debug Rendering](@ref debugrendering)
+ + [Debug Visual](@ref debugvisual)
  + [Stagehand - DALi Visual Debugger](@ref stagehand)
 
 ### Viewing Modes
diff --git a/docs/content/shared-javascript-and-cpp-documentation/debug-rendering.md b/docs/content/shared-javascript-and-cpp-documentation/debug-rendering.md
deleted file mode 100644 (file)
index f71eec2..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<!--
-/**-->
-
-# Debug rendering {#debugrendering}
-
-Setting DALI_DEBUG_RENDERING environment variable will enable the visual debugging.
-
-Then, every concrete visual ( ColorVisual, BorderVisual, ImageVisual, GradientVisual, etc. ) is replaced with a wireframe visual.
-The wireframe visual renders a simple quad wireframe, so that the control layout and scene structure is clearly displayed.
-
-## Example:
-~~~{.bash}
-sh-4.1$ DALI_DEBUG_RENDERING=1 /usr/apps/com.samsung.dali-demo/bin/blocks.example
-~~~
-
-![ ](../assets/img/debug-rendering/debug-blocks.png)
-![ ](debug-blocks.png)
-
-
diff --git a/docs/content/shared-javascript-and-cpp-documentation/debug-visual.md b/docs/content/shared-javascript-and-cpp-documentation/debug-visual.md
new file mode 100644 (file)
index 0000000..588f046
--- /dev/null
@@ -0,0 +1,21 @@
+<!--
+/**-->
+
+# Debug Visual {#debugvisual}
+
+## Enable debug rendering
+
+Setting DALI_DEBUG_RENDERING environment variable will enable the visual debugging.
+
+Then, every concrete visual ( ColorVisual, BorderVisual, ImageVisual, GradientVisual, etc. ) is replaced with a DebugVisual object.
+Debug visual renders a simple quad wireframe, so that the control layout and scene structure is clearly displayed.
+
+### Example:
+~~~{.bash}
+sh-4.1$ DALI_DEBUG_RENDERING=1 /usr/apps/com.samsung.dali-demo/bin/blocks.example
+~~~
+
+![ ](../assets/img/debug-visual/debug-blocks.png)
+![ ](debug-blocks.png)
+
+
index 728f080..95a40c3 100644 (file)
@@ -16,7 +16,6 @@ DALi provides the following visuals:
  + [Border](@ref border-visual)
  + [Mesh](@ref mesh-visual)
  + [Primitive](@ref primitive-visual)
- + [Wireframe](@ref wireframe-visual)
  
 Controls can provide properties that allow users to specify the visual type ( visualType ).
 Setting visual properties are done via a property map.
@@ -607,42 +606,6 @@ map[ PrimitiveVisual::Property::BEVEL_PERCENTAGE ] = 0.4f;
 
 control.SetProperty( Control::Property::BACKGROUND, map );
 ~~~
-___________________________________________________________________________________________________
-
-## Wireframe Visual {#wireframe-visual}
-
-Renders a wireframe around a control's quad.
-Is mainly used for debugging and is the visual that replaces all other visuals when [Visual Debug Rendering](@ref debugrendering) is turned on.
-![ ](../assets/img/visuals/wireframe-visual.png)
-![ ](visuals/wireframe-visual.png)
-
-### Properties
-
-**VisualType:** Dali::Toolkit::Visual::WIREFRAME, "WIREFRAME"
-
-### Usage
-
-~~~{.cpp}
-// C++
-Dali::Toolkit::Control control = Dali::Toolkit::Control::New();
-
-Dali::Property::Map map;
-map[ Visual::Property::TYPE ] = Dali::Toolkit::Visual::WIREFRAME;
-
-control.SetProperty( Control::Property::BACKGROUND, map );
-~~~
-
-~~~{.js}
-// JavaScript
-var control = new dali.Control( "Control" );
-
-control.background =
-{
-  visualType : "WIREFRAME"
-};
-~~~
-
 
 @class _Guide_Control_Visuals