2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/internal/event/actors/camera-actor-impl.h>
25 #include <dali/public-api/common/stage.h>
26 #include <dali/public-api/object/type-registry.h>
27 #include <dali/internal/event/actor-attachments/camera-attachment-impl.h>
28 #include <dali/internal/event/common/property-index-ranges.h>
29 #include <dali/internal/event/common/stage-impl.h>
30 #include <dali/internal/event/render-tasks/render-task-impl.h>
31 #include <dali/internal/event/render-tasks/render-task-list-impl.h>
32 #include <dali/internal/event/common/projection.h>
33 #include <dali/integration-api/debug.h>
38 const Property::Index CameraActor::TYPE = Internal::DEFAULT_ACTOR_PROPERTY_MAX_COUNT;
39 const Property::Index CameraActor::PROJECTION_MODE = Internal::DEFAULT_ACTOR_PROPERTY_MAX_COUNT + 1;
40 const Property::Index CameraActor::FIELD_OF_VIEW = Internal::DEFAULT_ACTOR_PROPERTY_MAX_COUNT + 2;
41 const Property::Index CameraActor::ASPECT_RATIO = Internal::DEFAULT_ACTOR_PROPERTY_MAX_COUNT + 3;
42 const Property::Index CameraActor::NEAR_PLANE_DISTANCE = Internal::DEFAULT_ACTOR_PROPERTY_MAX_COUNT + 4;
43 const Property::Index CameraActor::FAR_PLANE_DISTANCE = Internal::DEFAULT_ACTOR_PROPERTY_MAX_COUNT + 5;
44 const Property::Index CameraActor::LEFT_PLANE_DISTANCE = Internal::DEFAULT_ACTOR_PROPERTY_MAX_COUNT + 6;
45 const Property::Index CameraActor::RIGHT_PLANE_DISTANCE = Internal::DEFAULT_ACTOR_PROPERTY_MAX_COUNT + 7;
46 const Property::Index CameraActor::TOP_PLANE_DISTANCE = Internal::DEFAULT_ACTOR_PROPERTY_MAX_COUNT + 8;
47 const Property::Index CameraActor::BOTTOM_PLANE_DISTANCE = Internal::DEFAULT_ACTOR_PROPERTY_MAX_COUNT + 9;
48 const Property::Index CameraActor::TARGET_POSITION = Internal::DEFAULT_ACTOR_PROPERTY_MAX_COUNT + 10;
49 const Property::Index CameraActor::PROJECTION_MATRIX = Internal::DEFAULT_ACTOR_PROPERTY_MAX_COUNT + 11;
50 const Property::Index CameraActor::VIEW_MATRIX = Internal::DEFAULT_ACTOR_PROPERTY_MAX_COUNT + 12;
51 const Property::Index CameraActor::INVERT_Y_AXIS = Internal::DEFAULT_ACTOR_PROPERTY_MAX_COUNT + 13;
59 // calculate the far plane distance for a 16bit depth buffer with 4 bits per unit precision
60 void CalculateClippingAndZ( float width, float height, float& nearClippingPlane, float& farClippingPlane, float& cameraZ )
62 nearClippingPlane = std::max( width, height );
63 farClippingPlane = nearClippingPlane + static_cast<float>( 0xFFFF >> 4 );
64 cameraZ = 2.0f * nearClippingPlane;
69 return Dali::CameraActor::New();
72 TypeRegistration mType( typeid(Dali::CameraActor), typeid(Dali::Actor), Create );
74 const char* DEFAULT_CAMERA_ACTOR_PROPERTY_NAMES[] =
80 "near-plane-distance",
82 "left-plane-distance",
83 "right-plane-distance",
85 "bottom-plane-distance",
91 const int DEFAULT_CAMERA_ACTOR_PROPERTY_COUNT = sizeof( DEFAULT_CAMERA_ACTOR_PROPERTY_NAMES ) / sizeof( DEFAULT_CAMERA_ACTOR_PROPERTY_NAMES[0] );
93 const Property::Type DEFAULT_CAMERA_ACTOR_PROPERTY_TYPES[DEFAULT_CAMERA_ACTOR_PROPERTY_COUNT] =
95 Property::STRING, // "type",
96 Property::STRING, // "projection-mode",
97 Property::FLOAT, // "field-of-view",
98 Property::FLOAT, // "aspect-ratio",
99 Property::FLOAT, // "near-plane-distance",
100 Property::FLOAT, // "far-plane-distance",
101 Property::FLOAT, // "left-plane-distance",
102 Property::FLOAT, // "right-plane-distance",
103 Property::FLOAT, // "top-plane-distance",
104 Property::FLOAT, // "bottom-plane-distance",
105 Property::VECTOR3, // "target-position",
106 Property::MATRIX, // "projection-matrix",
107 Property::MATRIX, // "view-matrix",
108 Property::BOOLEAN, // "invert-y-axis",
112 * Builds the picking ray in the world reference system from an orthographic camera
113 * The ray origin is the screen coordinate in the near plane translated to a parallel
114 * plane at the camera origin. The ray direction is the direction the camera is facing
115 * (i.e. Z=-1 in view space).
117 void BuildOrthoPickingRay( const Matrix& viewMatrix,
118 const Matrix& projectionMatrix,
119 const Viewport& viewport,
124 float nearPlaneDistance )
126 // inv( modelMatrix ) inv( viewMatrix ) inv( projectionMatrix ) normalize
127 // <----------------- <----------------- <-------------- <-------------
128 // Local World Camera Normalized Screen
129 // reference reference reference clip coordinates
130 // system system system coordinates
131 // -----------------> -----------------> --------------> ------------->
132 // modelMatrix viewMatrix projectionMatrix viewport
134 // Transforms the touch point from the screen reference system to the world reference system.
135 Matrix invViewProjection( false ); // Don't initialize.
136 Matrix::Multiply( invViewProjection, viewMatrix, projectionMatrix );
137 if( !invViewProjection.Invert() )
139 DALI_ASSERT_DEBUG( false );
142 Vector4 near( screenX - viewport.x, viewport.height - (screenY - viewport.y), 0.f, 1.f );
143 if( !Unproject( near, invViewProjection, viewport.width, viewport.height, rayOrigin ) )
145 DALI_ASSERT_DEBUG( false );
148 Matrix invView = viewMatrix;
149 if( !invView.Invert() )
151 DALI_ASSERT_DEBUG( false );
154 Vector4 cameraOrigin = invView * Vector4( 0.f, 0.f, 0.f, 1.f );
155 Vector4 nearPlaneOrigin = invView * Vector4( 0.0f, 0.0f, -nearPlaneDistance, 1.0f);
157 // Vector pointing from the camera to the near plane
158 rayDir = cameraOrigin - nearPlaneOrigin;
166 CameraActorPtr CameraActor::New( const Size& size )
168 CameraActorPtr actor(new CameraActor());
170 // Second-phase construction
174 actor->SetName("DefaultCamera");
176 // Create the attachment
177 actor->mCameraAttachment = CameraAttachment::New( *actor->mNode );
179 actor->Attach(*actor->mCameraAttachment);
181 actor->SetPerspectiveProjection( size );
183 // By default Actors face in the positive Z direction in world space
184 // CameraActors should face in the negative Z direction, towards the other actors
185 actor->SetRotation( Quaternion( Math::PI, Vector3::YAXIS ) );
190 void CameraActor::OnInitialize()
194 CameraActor::CameraActor()
195 : Actor( Actor::BASIC )
199 CameraActor::~CameraActor()
203 void CameraActor::SetType( Dali::Camera::Type type )
205 mCameraAttachment->SetType(type);
208 Dali::Camera::Type CameraActor::GetType() const
210 return mCameraAttachment->GetType();
213 void CameraActor::SetProjectionMode( Dali::Camera::ProjectionMode mode )
215 mCameraAttachment->SetProjectionMode(mode);
218 Dali::Camera::ProjectionMode CameraActor::GetProjectionMode() const
220 return mCameraAttachment->GetProjectionMode();
223 void CameraActor::SetFieldOfView( float fieldOfView )
225 mCameraAttachment->SetFieldOfView(fieldOfView);
228 float CameraActor::GetFieldOfView( ) const
230 return mCameraAttachment->GetFieldOfView();
233 void CameraActor::SetAspectRatio( float aspectRatio )
235 mCameraAttachment->SetAspectRatio(aspectRatio);
238 float CameraActor::GetAspectRatio( ) const
240 return mCameraAttachment->GetAspectRatio();
243 void CameraActor::SetNearClippingPlane( float nearClippingPlane )
245 mCameraAttachment->SetNearClippingPlane(nearClippingPlane);
248 float CameraActor::GetNearClippingPlane( ) const
250 return mCameraAttachment->GetNearClippingPlane();
253 void CameraActor::SetFarClippingPlane( float farClippingPlane )
255 mCameraAttachment->SetFarClippingPlane(farClippingPlane);
258 float CameraActor::GetFarClippingPlane( ) const
260 return mCameraAttachment->GetFarClippingPlane();
263 void CameraActor::SetTargetPosition(const Vector3& target)
265 mCameraAttachment->SetTargetPosition(target);
268 Vector3 CameraActor::GetTargetPosition() const
270 return mCameraAttachment->GetTargetPosition();
273 void CameraActor::SetInvertYAxis(bool invertYAxis)
275 mCameraAttachment->SetInvertYAxis(invertYAxis);
278 bool CameraActor::GetInvertYAxis() const
280 return mCameraAttachment->GetInvertYAxis();
283 void CameraActor::SetPerspectiveProjection( const Size& size, const Vector2& stereoBias /* = Vector2::ZERO */ )
285 float width = size.width;
286 float height = size.height;
288 if( Size::ZERO == size )
290 if( Stage::IsInstalled() )
292 const Size& stageSize = mStage->GetSize();
294 width = stageSize.width;
295 height = stageSize.height;
299 if( ( width < Math::MACHINE_EPSILON_1000 ) || ( height < Math::MACHINE_EPSILON_1000 ) )
301 // On the stage initialization this method is called but the size has not been set.
302 // There is no point to set any value if width or height is zero.
306 float nearClippingPlane;
307 float farClippingPlane;
309 CalculateClippingAndZ( width, height, nearClippingPlane, farClippingPlane, cameraZ );
311 // calculate the position of the camera to have the desired aspect ratio
312 const float fieldOfView = 2.0f * std::atan( height * 0.5f / cameraZ );
314 // unless it is too small, we want at least as much space to the back as we have torwards the front
315 const float minClippingFarPlane = 2.f * nearClippingPlane;
316 if ( farClippingPlane < minClippingFarPlane )
318 farClippingPlane = minClippingFarPlane;
321 const float aspectRatio = width / height;
323 SetProjectionMode(Dali::Camera::PERSPECTIVE_PROJECTION);
324 SetFieldOfView( fieldOfView );
325 SetNearClippingPlane( nearClippingPlane );
326 SetFarClippingPlane( farClippingPlane );
327 SetAspectRatio( aspectRatio );
328 mCameraAttachment->SetStereoBias( stereoBias );
333 void CameraActor::SetOrthographicProjection( const Vector2& size )
335 // Choose near, far and Z parameters to match the SetPerspectiveProjection above.
336 float nearClippingPlane;
337 float farClippingPlane;
339 CalculateClippingAndZ( size.width, size.height, nearClippingPlane, farClippingPlane, cameraZ );
340 SetOrthographicProjection( -size.x*0.5f, size.x*0.5f, size.y*0.5f, -size.y*0.5f,
341 nearClippingPlane, farClippingPlane );
345 void CameraActor::SetOrthographicProjection( float left, float right, float top, float bottom, float near, float far )
347 mCameraAttachment->SetLeftClippingPlane(left);
348 mCameraAttachment->SetRightClippingPlane(right);
349 mCameraAttachment->SetTopClippingPlane(top);
350 mCameraAttachment->SetBottomClippingPlane(bottom);
351 SetNearClippingPlane( near );
352 SetFarClippingPlane( far );
353 SetProjectionMode(Dali::Camera::ORTHOGRAPHIC_PROJECTION);
356 bool CameraActor::BuildPickingRay( const Vector2& screenCoordinates,
357 const Viewport& viewport,
359 Vector4& rayDirection )
362 if( GetProjectionMode() == Dali::Camera::PERSPECTIVE_PROJECTION )
364 // Build a picking ray in the world reference system.
365 // ray starts from the camera world position
366 rayOrigin = mNode->GetWorldPosition( mStage->GetEventBufferIndex() );
369 // Transform the touch point from the screen coordinate system to the world coordinates system.
370 Vector4 near( screenCoordinates.x - viewport.x, viewport.height - (screenCoordinates.y - viewport.y), 0.f, 1.f );
371 if( !Unproject( near, mCameraAttachment->GetInverseViewProjectionMatrix(), viewport.width, viewport.height, near ) )
373 // unproject failed so no picking ray possible
377 // Compute the ray's director vector.
378 rayDirection.x = near.x - rayOrigin.x;
379 rayDirection.y = near.y - rayOrigin.y;
380 rayDirection.z = near.z - rayOrigin.z;
381 rayDirection.Normalize();
382 rayDirection.w = 1.f;
386 float nearPlaneDistance = GetNearClippingPlane();
387 BuildOrthoPickingRay( GetViewMatrix(),
388 GetProjectionMatrix(),
389 viewport, screenCoordinates.x,
399 const Matrix& CameraActor::GetViewMatrix() const
403 return mCameraAttachment->GetViewMatrix();
407 return Matrix::IDENTITY;
411 const Matrix& CameraActor::GetProjectionMatrix() const
415 return mCameraAttachment->GetProjectionMatrix();
419 return Matrix::IDENTITY;
423 unsigned int CameraActor::GetDefaultPropertyCount() const
425 return Actor::GetDefaultPropertyCount() + DEFAULT_CAMERA_ACTOR_PROPERTY_COUNT;
428 void CameraActor::GetDefaultPropertyIndices( Property::IndexContainer& indices ) const
430 Actor::GetDefaultPropertyIndices( indices ); // Actor class properties
432 indices.reserve( indices.size() + DEFAULT_CAMERA_ACTOR_PROPERTY_COUNT );
434 int index = DEFAULT_ACTOR_PROPERTY_MAX_COUNT;
435 for ( int i = 0; i < DEFAULT_CAMERA_ACTOR_PROPERTY_COUNT; ++i, ++index )
437 indices.push_back( index );
441 bool CameraActor::IsDefaultPropertyWritable( Property::Index index ) const
443 if(index < DEFAULT_ACTOR_PROPERTY_MAX_COUNT)
445 return Actor::IsDefaultPropertyWritable(index);
449 if( Dali::CameraActor::PROJECTION_MATRIX == index || Dali::CameraActor::VIEW_MATRIX == index )
460 bool CameraActor::IsDefaultPropertyAnimatable( Property::Index index ) const
462 bool animatable = false; // Our properties are not animatable.
464 if(index < DEFAULT_ACTOR_PROPERTY_MAX_COUNT )
466 animatable = Actor::IsDefaultPropertyAnimatable(index);
471 bool CameraActor::IsDefaultPropertyAConstraintInput( Property::Index index ) const
473 bool animatable = true; // Our properties can be used as inputs to constraints.
475 if( index < DEFAULT_ACTOR_PROPERTY_MAX_COUNT )
477 animatable = Actor::IsDefaultPropertyAConstraintInput(index);
482 Property::Type CameraActor::GetDefaultPropertyType( Property::Index index ) const
484 if(index < DEFAULT_ACTOR_PROPERTY_MAX_COUNT)
486 return Actor::GetDefaultPropertyType(index);
490 index -= DEFAULT_ACTOR_PROPERTY_MAX_COUNT;
492 if ( ( index >= 0 ) && ( index < DEFAULT_CAMERA_ACTOR_PROPERTY_COUNT ) )
494 return DEFAULT_CAMERA_ACTOR_PROPERTY_TYPES[index];
498 // index out-of-bounds
499 return Property::NONE;
504 const char* CameraActor::GetDefaultPropertyName( Property::Index index ) const
506 if(index < DEFAULT_ACTOR_PROPERTY_MAX_COUNT)
508 return Actor::GetDefaultPropertyName(index);
512 index -= DEFAULT_ACTOR_PROPERTY_MAX_COUNT;
514 if ( ( index >= 0 ) && ( index < DEFAULT_CAMERA_ACTOR_PROPERTY_COUNT ) )
516 return DEFAULT_CAMERA_ACTOR_PROPERTY_NAMES[index];
522 Property::Index CameraActor::GetDefaultPropertyIndex(const std::string& name) const
524 Property::Index index = Property::INVALID_INDEX;
526 // Look for name in current class' default properties
527 for( int i = 0; i < DEFAULT_CAMERA_ACTOR_PROPERTY_COUNT; ++i )
529 if( 0 == strcmp( name.c_str(), DEFAULT_CAMERA_ACTOR_PROPERTY_NAMES[ i ] ) ) // dont want to convert rhs to string
531 index = i + DEFAULT_ACTOR_PROPERTY_MAX_COUNT;
536 // If not found, check in base class
537 if( Property::INVALID_INDEX == index )
539 index = Actor::GetDefaultPropertyIndex( name );
545 void CameraActor::SetDefaultProperty( Property::Index index, const Property::Value& propertyValue )
547 if(index < DEFAULT_ACTOR_PROPERTY_MAX_COUNT)
549 Actor::SetDefaultProperty(index, propertyValue);
553 DALI_ASSERT_DEBUG(mCameraAttachment && "where is the camera?");
556 case Dali::CameraActor::TYPE:
558 std::string s(propertyValue.Get<std::string>());
559 if(s == "LOOK_AT_TARGET")
561 mCameraAttachment->SetType(Dali::Camera::LOOK_AT_TARGET);
563 else if(s == "FREE_LOOK")
565 mCameraAttachment->SetType(Dali::Camera::FREE_LOOK);
569 DALI_LOG_WARNING("Unknown camera type\n");
573 case Dali::CameraActor::PROJECTION_MODE:
575 std::string s(propertyValue.Get<std::string>());
576 if(s == "PERSPECTIVE_PROJECTION")
578 mCameraAttachment->SetProjectionMode(Dali::Camera::PERSPECTIVE_PROJECTION);
580 else if(s == "ORTHOGRAPHIC_PROJECTION")
582 mCameraAttachment->SetProjectionMode(Dali::Camera::ORTHOGRAPHIC_PROJECTION);
586 DALI_LOG_WARNING("Unknown projection mode\n");
590 case Dali::CameraActor::FIELD_OF_VIEW:
592 mCameraAttachment->SetFieldOfView(propertyValue.Get<float>());
595 case Dali::CameraActor::ASPECT_RATIO:
597 mCameraAttachment->SetAspectRatio(propertyValue.Get<float>());
600 case Dali::CameraActor::LEFT_PLANE_DISTANCE:
602 mCameraAttachment->SetLeftClippingPlane(propertyValue.Get<float>());
605 case Dali::CameraActor::RIGHT_PLANE_DISTANCE:
607 mCameraAttachment->SetRightClippingPlane(propertyValue.Get<float>());
610 case Dali::CameraActor::TOP_PLANE_DISTANCE:
612 mCameraAttachment->SetTopClippingPlane(propertyValue.Get<float>());
615 case Dali::CameraActor::BOTTOM_PLANE_DISTANCE:
617 mCameraAttachment->SetBottomClippingPlane(propertyValue.Get<float>());
620 case Dali::CameraActor::NEAR_PLANE_DISTANCE:
622 mCameraAttachment->SetNearClippingPlane(propertyValue.Get<float>());
625 case Dali::CameraActor::FAR_PLANE_DISTANCE:
627 mCameraAttachment->SetFarClippingPlane(propertyValue.Get<float>());
630 case Dali::CameraActor::TARGET_POSITION:
632 mCameraAttachment->SetTargetPosition(propertyValue.Get<Vector3>());
635 case Dali::CameraActor::PROJECTION_MATRIX:
637 DALI_LOG_WARNING("projection-matrix property is not animatable \n");
640 case Dali::CameraActor::VIEW_MATRIX:
642 DALI_LOG_WARNING("view-matrix property is not animatable \n");
645 case Dali::CameraActor::INVERT_Y_AXIS:
647 mCameraAttachment->SetInvertYAxis(propertyValue.Get<bool>());
652 DALI_LOG_WARNING("Unknown property (%d)\n", index);
660 Property::Value CameraActor::GetDefaultProperty( Property::Index index ) const
663 if(index < DEFAULT_ACTOR_PROPERTY_MAX_COUNT)
665 ret = Actor::GetDefaultProperty(index);
669 DALI_ASSERT_DEBUG(mCameraAttachment && "where is the camera?");
673 case Dali::CameraActor::TYPE:
675 if(mCameraAttachment->GetType() == Dali::Camera::LOOK_AT_TARGET)
677 ret = "LOOK_AT_TARGET";
679 else if(mCameraAttachment->GetType() == Dali::Camera::FREE_LOOK)
686 DALI_ASSERT_DEBUG("Unknown camera type\n");
692 case Dali::CameraActor::PROJECTION_MODE:
694 if(mCameraAttachment->GetProjectionMode() == Dali::Camera::PERSPECTIVE_PROJECTION)
696 ret = "PERSPECTIVE_PROJECTION";
698 else if(mCameraAttachment->GetProjectionMode() == Dali::Camera::ORTHOGRAPHIC_PROJECTION)
700 ret = "ORTHOGRAPHIC_PROJECTION";
705 DALI_ASSERT_DEBUG("Unknown projection mode\n");
709 case Dali::CameraActor::FIELD_OF_VIEW:
711 ret = mCameraAttachment->GetFieldOfView();
714 case Dali::CameraActor::ASPECT_RATIO:
716 ret = mCameraAttachment->GetAspectRatio();
719 case Dali::CameraActor::LEFT_PLANE_DISTANCE:
721 ret = mCameraAttachment->GetLeftClippingPlane();
724 case Dali::CameraActor::RIGHT_PLANE_DISTANCE:
726 ret = mCameraAttachment->GetRightClippingPlane();
729 case Dali::CameraActor::TOP_PLANE_DISTANCE:
731 ret = mCameraAttachment->GetTopClippingPlane();
734 case Dali::CameraActor::BOTTOM_PLANE_DISTANCE:
736 ret = mCameraAttachment->GetBottomClippingPlane();
739 case Dali::CameraActor::NEAR_PLANE_DISTANCE:
741 ret = mCameraAttachment->GetNearClippingPlane();
744 case Dali::CameraActor::FAR_PLANE_DISTANCE:
746 ret = mCameraAttachment->GetFarClippingPlane();
749 case Dali::CameraActor::TARGET_POSITION:
751 ret = mCameraAttachment->GetTargetPosition();
754 case Dali::CameraActor::PROJECTION_MATRIX:
756 ret = mCameraAttachment->GetProjectionMatrix();
759 case Dali::CameraActor::VIEW_MATRIX:
761 ret = mCameraAttachment->GetViewMatrix();
764 case Dali::CameraActor::INVERT_Y_AXIS:
766 ret = mCameraAttachment->GetInvertYAxis();
771 DALI_LOG_WARNING("Unknown property (%d)\n", index);
780 const SceneGraph::PropertyBase* CameraActor::GetSceneObjectAnimatableProperty( Property::Index index ) const
782 DALI_ASSERT_ALWAYS( IsPropertyAnimatable(index) && "Property is not animatable" );
784 const SceneGraph::PropertyBase* property( NULL );
786 // This method should only return a property of an object connected to the scene-graph
792 // let actor handle animatable properties, we have no animatable properties
793 if( index < DEFAULT_ACTOR_PROPERTY_MAX_COUNT )
795 property = Actor::GetSceneObjectAnimatableProperty(index);
801 const PropertyInputImpl* CameraActor::GetSceneObjectInputProperty( Property::Index index ) const
803 const PropertyInputImpl* property( NULL );
805 // This method should only return a property of an object connected to the scene-graph
811 // if its an actor default property or a custom property (actor already handles custom properties)
812 if( ( index < DEFAULT_ACTOR_PROPERTY_MAX_COUNT ) || ( index >= DEFAULT_PROPERTY_MAX_COUNT ) )
814 property = Actor::GetSceneObjectInputProperty(index);
820 case Dali::CameraActor::PROJECTION_MATRIX:
822 property = mCameraAttachment->GetProjectionMatrixProperty();
825 case Dali::CameraActor::VIEW_MATRIX:
827 property = mCameraAttachment->GetViewMatrixProperty();
831 DALI_LOG_WARNING("Not an input property (%d)\n", index);
840 } // namespace Internal