From ee21bc385d37d6e1e6dbafe284260cbc440de1cf Mon Sep 17 00:00:00 2001 From: Yoonsang Lee Date: Thu, 16 Jul 2015 13:02:11 +0900 Subject: [PATCH] [DALi][DOC-213] Move Coordinate System to overview Signed-off-by: Yoonsang Lee Change-Id: Id3414916bcde5204b1fb8cc5b402e1aa17e689a5 --- org.tizen.ui.guides/html/native/dali/actors_n.htm | 16 ++++------------ org.tizen.ui.guides/html/native/dali/dali_overview_n.htm | 11 ++++++++++- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/org.tizen.ui.guides/html/native/dali/actors_n.htm b/org.tizen.ui.guides/html/native/dali/actors_n.htm index b7a2dd7..edd92e0 100755 --- a/org.tizen.ui.guides/html/native/dali/actors_n.htm +++ b/org.tizen.ui.guides/html/native/dali/actors_n.htm @@ -25,7 +25,6 @@ @@ -56,13 +55,15 @@ Actor has several concrete types as follows:

Actors and Stage

-

Stage is a top-level object that represents the entire scene or screen. It is used for displaying a hierarchy of actors managed by the scene graph structure. An actor inherits a position relative to its parent, and can be moved in relation to this point.

+

Stage is a top-level object that represents the entire screen. It is used for displaying a hierarchy of actors managed by the scene graph structure. An actor inherits a position relative to its parent, and can be moved in relation to this point.

+ +The stage instance is a singleton object (the only instance of its class during the lifetime of the program), so you can get it using a static function.

To display the contents of an actor, it must be added to a stage. The following example shows how to connect a new actor to the stage:

@@ -70,15 +71,6 @@ Actor has several concrete types as follows: Stage::GetCurrent().Add(actor); -

Coordinate System

- -

The stage has a 2D size that matches the size of the application window. The default unit 1 is 1 pixel with default camera.

- -

DALi uses a left-handed coordinate system with the origin at the top-left corner, with positive X to right, positive Y going downwards, and positive Z going outside the screen. This is convenient when creating 2D views.

- -

Figure: DALi coordinate system

-

DALi coordinate system

-

Positioning Actors

An actor inherits its parent's position. The relative position between the actor & parent is determined by the following properties:

diff --git a/org.tizen.ui.guides/html/native/dali/dali_overview_n.htm b/org.tizen.ui.guides/html/native/dali/dali_overview_n.htm index 20a70b0..8ef6537 100755 --- a/org.tizen.ui.guides/html/native/dali/dali_overview_n.htm +++ b/org.tizen.ui.guides/html/native/dali/dali_overview_n.htm @@ -38,7 +38,7 @@

DALi Overview: Getting Started with DALi UI Programming

Dynamic Animation Library (DALi) internally defines a virtual 3D world (space) and maintains hierarchical objects in the 3D world. The hierarchical object tree is known as the scene graph. A node in the scene graph can have several children but often only a single parent, with the effect of a parent applied to all its child nodes; an operation performed on a group automatically propagates its effect to all of its members.

-

There are various types of nodes, such as image, text, and 3D object.

+

There are various types of nodes, such as image, text, and buttons.

DALi Fundamentals

@@ -56,6 +56,15 @@

Signal events are emitted when a certain action or event occurs. The application can connect using these signals. Standard C-style functions can be used to connect to these signals if no local data needs to be accessed, otherwise a class method can also be connected.

Applications can manually disconnect from signals when required. However, DALi also provides safe signal disconnection. This means that when the connecting object is deleted, the signal is automatically disconnected.

+

Coordinate System

+ +

The stage has a 2D size that matches the size of the application window. The default unit 1 is 1 pixel with default camera.

+ +

DALi uses a left-handed coordinate system with the origin at the top-left corner, with positive X to right, positive Y going downwards, and positive Z going outside the screen with default camera. This is convenient when creating 2D views.

+ +

Figure: DALi coordinate system

+

DALi coordinate system

+

DALi Internal Structure

DALi consists of the following modules:

-- 2.7.4