Dali 3D User Interface Engine
Classes | Namespaces | Functions | Variables
utc-Dali-CubeTransitionEffect.cpp File Reference
#include <iostream>
#include <stdlib.h>
#include <dali-toolkit-test-suite-utils.h>
#include <dali-toolkit/dali-toolkit.h>
#include <dali-toolkit/devel-api/transition-effects/cube-transition-effect.h>
#include <dali-toolkit/devel-api/transition-effects/cube-transition-cross-effect.h>
#include <dali-toolkit/devel-api/transition-effects/cube-transition-fold-effect.h>
#include <dali-toolkit/devel-api/transition-effects/cube-transition-wave-effect.h>
#include <dali/public-api/images/buffer-image.h>
Include dependency graph for utc-Dali-CubeTransitionEffect.cpp:

Go to the source code of this file.

Classes

class  anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::TransitionCompletedCallback
 

Namespaces

namespace  anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}
 

Functions

const Vector2 anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_DISPLACEMENT1 (-5.f, 5.f)
 
const Vector2 anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_DISPLACEMENT2 (5.f, 5.f)
 
const Vector4 anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::FULL_BRIGHTNESS (1.f, 1.f, 1.f, 1.f)
 
static void anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::TestCallback (BaseHandle handle)
 
void anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::Wait (ToolkitTestApplication &application, float durationToPass)
 Simulate time passed by, waiting for certain process to finish. More...
 
void cube_transition_effect_startup (void)
 
void cube_transition_effect_cleanup (void)
 
int UtcDaliCubeTransitionWaveEffectNew (void)
 
int UtcDaliCubeTransitionCrossEffectNew (void)
 
int UtcDaliCubeTransitionFoldEffectNew (void)
 
int UtcDaliCubeTransitionEffectSetGetTransitionDuration (void)
 
int UtcDaliCubeTransitionEffectSetGetCubeDisplacement (void)
 
int UtcDaliCubeTransitionEffectGetRoot (void)
 
int UtcDaliCubeTransitionEffectIsTransitioning (void)
 
int UtcDaliCubeTransitionEffectSetCurrentImage (void)
 
int UtcDaliCubeTransitionEffectSetTargetImage (void)
 
int UtcDaliCubeTransitionWaveEffectStartTransition (void)
 
int UtcDaliCubeTransitionCrossEffectStartTransition (void)
 
int UtcDaliCubeTransitionFoldEffectStartTransition (void)
 
int UtcDaliCubeTransitionEffectSignalTransitionCompleted (void)
 
int UtcDaliCubeTransitionEffectPauseResumeTransition (void)
 
int UtcDaliCubeTransitionWaveEffectStopTransition (void)
 
int UtcDaliCubeTransitionCrossEffectStopTransition (void)
 
int UtcDaliCubeTransitionFoldEffectStopTransition (void)
 

Variables

const unsigned int anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::NUM_ROWS = 16
 
const unsigned int anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::NUM_COLUMNS = 10
 
const Vector2 anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::VIEW_AREA_SIZE (480.0f, 800.0f)
 
const float anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::TRANSITION_DURATION = 0.5f
 
const float anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::CUBE_DISPLACEMENT = 55.f
 
const Vector2 anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_POSITION1 (VIEW_AREA_SIZE.x *0.75f, VIEW_AREA_SIZE.y *0.25f)
 
const Vector2 anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_POSITION2 (VIEW_AREA_SIZE.x *0.25f, VIEW_AREA_SIZE.y *0.75f)
 
const Vector4 anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::HALF_BRIGHTNESS (0.5f, 0.5f, 0.5f, 1.f)
 
const int anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::RENDER_FRAME_INTERVAL = 16
 
static const float anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::FLT_EPISILON = 0.0001f
 
static const float anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::EPISILON = 0.05f
 
const float anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::TRANSITION_BEFORE_END_DURATION = TRANSITION_DURATION - 0.05f
 
static bool anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::gObjectCreatedCallBackCalled
 

Function Documentation

void cube_transition_effect_cleanup ( void  )

Definition at line 116 of file utc-Dali-CubeTransitionEffect.cpp.

References test_return_value, and TET_PASS.

void cube_transition_effect_startup ( void  )

Definition at line 111 of file utc-Dali-CubeTransitionEffect.cpp.

References test_return_value, and TET_UNDEF.

int UtcDaliCubeTransitionCrossEffectNew ( void  )
int UtcDaliCubeTransitionCrossEffectStartTransition ( void  )

Definition at line 480 of file utc-Dali-CubeTransitionEffect.cpp.

References Dali::Stage::Add(), Dali::ANGLE_90, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::CUBE_DISPLACEMENT, DALI_TEST_EQUALS(), END_TEST, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::EPISILON, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::FULL_BRIGHTNESS(), Dali::Actor::GetChildAt(), Dali::Stage::GetCurrent(), Dali::Actor::GetCurrentColor(), Dali::Actor::GetCurrentOrientation(), Dali::TestApplication::GetGlAbstraction(), GL_FRAMEBUFFER_COMPLETE, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::HALF_BRIGHTNESS, Dali::ResourceImage::New(), Dali::WeightObject::New(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::NUM_COLUMNS, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::NUM_ROWS, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_DISPLACEMENT1(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_DISPLACEMENT2(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_POSITION1, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_POSITION2, Dali::TestApplication::Render(), Dali::TestApplication::SendNotification(), Dali::TestGlAbstraction::SetCheckFramebufferStatusResult(), Dali::Toolkit::CubeTransitionEffect::SetCubeDisplacement(), Dali::Toolkit::CubeTransitionEffect::SetCurrentImage(), Dali::Actor::SetSize(), Dali::Toolkit::CubeTransitionEffect::SetTargetImage(), Dali::Toolkit::CubeTransitionEffect::SetTransitionDuration(), Dali::Toolkit::CubeTransitionEffect::StartTransition(), TEST_LOCATION, tet_infoline(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::TRANSITION_BEFORE_END_DURATION, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::TRANSITION_DURATION, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::VIEW_AREA_SIZE, anonymous_namespace{utc-Dali-PropertyNotification.cpp}::Wait(), Dali::Vector3::XAXIS, and Dali::Vector3::YAXIS.

Here is the call graph for this function:

int UtcDaliCubeTransitionCrossEffectStopTransition ( void  )

Definition at line 861 of file utc-Dali-CubeTransitionEffect.cpp.

References Dali::Stage::Add(), Dali::ANGLE_0, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::CUBE_DISPLACEMENT, DALI_TEST_EQUALS(), END_TEST, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::FLT_EPISILON, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::FULL_BRIGHTNESS(), Dali::Actor::GetChildAt(), Dali::Stage::GetCurrent(), Dali::Actor::GetCurrentColor(), Dali::Actor::GetCurrentOrientation(), Dali::TestApplication::GetGlAbstraction(), GL_FRAMEBUFFER_COMPLETE, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::HALF_BRIGHTNESS, Dali::BufferImage::New(), Dali::WeightObject::New(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::NUM_COLUMNS, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::NUM_ROWS, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_DISPLACEMENT1(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_DISPLACEMENT2(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_POSITION1, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_POSITION2, Dali::TestApplication::Render(), anonymous_namespace{utc-Dali-RenderTask.cpp}::RENDER_FRAME_INTERVAL, Dali::TestApplication::SendNotification(), Dali::TestGlAbstraction::SetCheckFramebufferStatusResult(), Dali::Toolkit::CubeTransitionEffect::SetCubeDisplacement(), Dali::Toolkit::CubeTransitionEffect::SetCurrentImage(), Dali::Actor::SetSize(), Dali::Toolkit::CubeTransitionEffect::SetTargetImage(), Dali::Toolkit::CubeTransitionEffect::SetTransitionDuration(), Dali::Toolkit::CubeTransitionEffect::StartTransition(), Dali::Toolkit::CubeTransitionEffect::StopTransition(), TEST_LOCATION, tet_infoline(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::TRANSITION_DURATION, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::VIEW_AREA_SIZE, anonymous_namespace{utc-Dali-PropertyNotification.cpp}::Wait(), Dali::Vector3::XAXIS, Dali::Vector3::YAXIS, and Dali::Vector3::ZERO.

Here is the call graph for this function:

int UtcDaliCubeTransitionEffectGetRoot ( void  )
int UtcDaliCubeTransitionEffectIsTransitioning ( void  )
int UtcDaliCubeTransitionEffectPauseResumeTransition ( void  )
int UtcDaliCubeTransitionEffectSetCurrentImage ( void  )
int UtcDaliCubeTransitionEffectSetGetCubeDisplacement ( void  )
int UtcDaliCubeTransitionEffectSetGetTransitionDuration ( void  )
int UtcDaliCubeTransitionEffectSetTargetImage ( void  )
int UtcDaliCubeTransitionEffectSignalTransitionCompleted ( void  )
int UtcDaliCubeTransitionFoldEffectNew ( void  )
int UtcDaliCubeTransitionFoldEffectStartTransition ( void  )

Definition at line 540 of file utc-Dali-CubeTransitionEffect.cpp.

References Dali::Stage::Add(), Dali::ANGLE_90, DALI_TEST_EQUALS(), END_TEST, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::EPISILON, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::FULL_BRIGHTNESS(), Dali::Actor::GetChildAt(), Dali::Stage::GetCurrent(), Dali::Actor::GetCurrentColor(), Dali::Actor::GetCurrentOrientation(), Dali::TestApplication::GetGlAbstraction(), GL_FRAMEBUFFER_COMPLETE, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::HALF_BRIGHTNESS, Dali::BufferImage::New(), Dali::WeightObject::New(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::NUM_COLUMNS, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::NUM_ROWS, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_DISPLACEMENT1(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_DISPLACEMENT2(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_POSITION1, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_POSITION2, Dali::TestApplication::Render(), Dali::TestApplication::SendNotification(), Dali::TestGlAbstraction::SetCheckFramebufferStatusResult(), Dali::Toolkit::CubeTransitionEffect::SetCurrentImage(), Dali::Actor::SetSize(), Dali::Toolkit::CubeTransitionEffect::SetTargetImage(), Dali::Toolkit::CubeTransitionEffect::SetTransitionDuration(), Dali::Toolkit::CubeTransitionEffect::StartTransition(), TEST_LOCATION, tet_infoline(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::TRANSITION_BEFORE_END_DURATION, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::TRANSITION_DURATION, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::VIEW_AREA_SIZE, anonymous_namespace{utc-Dali-PropertyNotification.cpp}::Wait(), and Dali::Vector3::YAXIS.

Here is the call graph for this function:

int UtcDaliCubeTransitionFoldEffectStopTransition ( void  )

Definition at line 932 of file utc-Dali-CubeTransitionEffect.cpp.

References Dali::Stage::Add(), Dali::ANGLE_0, DALI_TEST_EQUALS(), END_TEST, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::FLT_EPISILON, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::FULL_BRIGHTNESS(), Dali::Actor::GetChildAt(), Dali::Stage::GetCurrent(), Dali::Actor::GetCurrentColor(), Dali::Actor::GetCurrentOrientation(), Dali::TestApplication::GetGlAbstraction(), GL_FRAMEBUFFER_COMPLETE, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::HALF_BRIGHTNESS, Dali::BufferImage::New(), Dali::WeightObject::New(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::NUM_COLUMNS, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::NUM_ROWS, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_DISPLACEMENT1(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_DISPLACEMENT2(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_POSITION1, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_POSITION2, Dali::TestApplication::Render(), anonymous_namespace{utc-Dali-RenderTask.cpp}::RENDER_FRAME_INTERVAL, Dali::TestApplication::SendNotification(), Dali::TestGlAbstraction::SetCheckFramebufferStatusResult(), Dali::Toolkit::CubeTransitionEffect::SetCurrentImage(), Dali::Actor::SetSize(), Dali::Toolkit::CubeTransitionEffect::SetTargetImage(), Dali::Toolkit::CubeTransitionEffect::SetTransitionDuration(), Dali::Toolkit::CubeTransitionEffect::StartTransition(), Dali::Toolkit::CubeTransitionEffect::StopTransition(), TEST_LOCATION, tet_infoline(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::TRANSITION_DURATION, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::VIEW_AREA_SIZE, anonymous_namespace{utc-Dali-PropertyNotification.cpp}::Wait(), Dali::Vector3::XAXIS, and Dali::Vector3::YAXIS.

Here is the call graph for this function:

int UtcDaliCubeTransitionWaveEffectNew ( void  )
int UtcDaliCubeTransitionWaveEffectStartTransition ( void  )

Definition at line 427 of file utc-Dali-CubeTransitionEffect.cpp.

References Dali::Stage::Add(), Dali::ANGLE_90, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::CUBE_DISPLACEMENT, DALI_TEST_EQUALS(), END_TEST, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::EPISILON, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::FULL_BRIGHTNESS(), Dali::Actor::GetChildAt(), Dali::Stage::GetCurrent(), Dali::Actor::GetCurrentColor(), Dali::Actor::GetCurrentOrientation(), Dali::TestApplication::GetGlAbstraction(), GL_FRAMEBUFFER_COMPLETE, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::HALF_BRIGHTNESS, Dali::ResourceImage::New(), Dali::WeightObject::New(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::NUM_COLUMNS, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::NUM_ROWS, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_DISPLACEMENT1(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_DISPLACEMENT2(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_POSITION1, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_POSITION2, Dali::TestApplication::Render(), Dali::TestApplication::SendNotification(), Dali::TestGlAbstraction::SetCheckFramebufferStatusResult(), Dali::Toolkit::CubeTransitionEffect::SetCubeDisplacement(), Dali::Toolkit::CubeTransitionEffect::SetCurrentImage(), Dali::Actor::SetSize(), Dali::Toolkit::CubeTransitionEffect::SetTargetImage(), Dali::Toolkit::CubeTransitionEffect::SetTransitionDuration(), Dali::Toolkit::CubeTransitionEffect::StartTransition(), TEST_LOCATION, tet_infoline(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::TRANSITION_BEFORE_END_DURATION, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::TRANSITION_DURATION, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::VIEW_AREA_SIZE, anonymous_namespace{utc-Dali-PropertyNotification.cpp}::Wait(), and Dali::Vector3::YAXIS.

Here is the call graph for this function:

int UtcDaliCubeTransitionWaveEffectStopTransition ( void  )

Definition at line 795 of file utc-Dali-CubeTransitionEffect.cpp.

References Dali::Stage::Add(), Dali::ANGLE_0, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::CUBE_DISPLACEMENT, DALI_TEST_EQUALS(), END_TEST, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::FLT_EPISILON, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::FULL_BRIGHTNESS(), Dali::Actor::GetChildAt(), Dali::Stage::GetCurrent(), Dali::Actor::GetCurrentColor(), Dali::Actor::GetCurrentOrientation(), Dali::TestApplication::GetGlAbstraction(), GL_FRAMEBUFFER_COMPLETE, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::HALF_BRIGHTNESS, Dali::BufferImage::New(), Dali::WeightObject::New(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::NUM_COLUMNS, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::NUM_ROWS, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_DISPLACEMENT1(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_DISPLACEMENT2(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_POSITION1, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::PAN_POSITION2, Dali::TestApplication::Render(), anonymous_namespace{utc-Dali-RenderTask.cpp}::RENDER_FRAME_INTERVAL, Dali::TestApplication::SendNotification(), Dali::TestGlAbstraction::SetCheckFramebufferStatusResult(), Dali::Toolkit::CubeTransitionEffect::SetCubeDisplacement(), Dali::Toolkit::CubeTransitionEffect::SetCurrentImage(), Dali::Actor::SetSize(), Dali::Toolkit::CubeTransitionEffect::SetTargetImage(), Dali::Toolkit::CubeTransitionEffect::SetTransitionDuration(), Dali::Toolkit::CubeTransitionEffect::StartTransition(), Dali::Toolkit::CubeTransitionEffect::StopTransition(), TEST_LOCATION, tet_infoline(), anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::TRANSITION_DURATION, anonymous_namespace{utc-Dali-CubeTransitionEffect.cpp}::VIEW_AREA_SIZE, anonymous_namespace{utc-Dali-PropertyNotification.cpp}::Wait(), and Dali::Vector3::ZERO.

Here is the call graph for this function:

Dali Docs Home
Read more about Dali