X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Factors%2Fcamera-actor-impl.h;h=faeb53fa639d639970a4c02fcc38a478ee4b3b82;hb=d353bae63798f48237dc24c078c2e8cb2aa0bc62;hp=056945dfe59d95adfb0d7e179d2faf89bd834bbf;hpb=3633ecb1b2b3958dfcac82018e5b7622e62f0f66;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/actors/camera-actor-impl.h b/dali/internal/event/actors/camera-actor-impl.h index 056945d..faeb53f 100644 --- a/dali/internal/event/actors/camera-actor-impl.h +++ b/dali/internal/event/actors/camera-actor-impl.h @@ -1,8 +1,8 @@ -#ifndef __DALI_INTERNAL_CAMERA_ACTOR_H__ -#define __DALI_INTERNAL_CAMERA_ACTOR_H__ +#ifndef DALI_INTERNAL_CAMERA_ACTOR_H +#define DALI_INTERNAL_CAMERA_ACTOR_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -53,6 +53,15 @@ public: static CameraActorPtr New( const Size& size ); /** + * Sets the reflection plane for the camera + * + * @param[in] plane Plane parameters + * + * @note plane.xyz are normal vector of the plane. + */ + void SetReflectByPlane( const Vector4& plane ); + + /** * @copydoc Dali::CameraActor::SetTargetPosition */ void SetTarget( const Vector3& targetPosition ); @@ -154,9 +163,8 @@ public: /** * @copydoc Dali::CameraActor::SetPerspectiveProjection() - * @param[in] stereoBias The frustum horizontal and vertical offset for stereoscopic cameras */ - void SetPerspectiveProjection( const Size& size, const Vector2& stereoBias = Vector2::ZERO ); + void SetPerspectiveProjection( const Size& size ); /** * @copydoc Dali::CameraActor::SetOrthographicProjection(const Vector2& size); @@ -196,62 +204,29 @@ public: */ const SceneGraph::Camera* GetCamera() const; -public: // properties - - /** - * copydoc Dali::Internal::Object - */ - virtual unsigned int GetDefaultPropertyCount() const; - /** - * @copydoc Dali::Internal::Object::GetDefaultPropertyIndices() + * Rotate the projection. + * It is used in case that the target buffer direction is different from the window direction. + * @param [in] rotationAngle The rotation angle */ - virtual void GetDefaultPropertyIndices( Property::IndexContainer& indices ) const; + void RotateProjection( int rotationAngle ); - /** - * copydoc Dali::Internal::Object - */ - virtual bool IsDefaultPropertyAnimatable( Property::Index index ) const; - - /** - * @copydoc Dali::Internal::Object::IsDefaultPropertyAConstraintInput() - */ - virtual bool IsDefaultPropertyAConstraintInput( Property::Index index ) const; - - /** - * copydoc Dali::Internal::Object - */ - virtual Property::Type GetDefaultPropertyType( Property::Index index ) const; - - /** - * copydoc Dali::Internal::Object - */ - virtual const char* GetDefaultPropertyName( Property::Index index ) const; - - /** - * @copydoc Dali::Internal::Object::GetDefaultPropertyIndex() - */ - virtual Property::Index GetDefaultPropertyIndex(const std::string& name) const; +public: // properties /** - * copydoc Dali::Internal::Object + * copydoc Dali::Internal::Object::SetDefaultProperty() */ virtual void SetDefaultProperty( Property::Index index, const Property::Value& propertyValue ); /** - * copydoc Dali::Internal::Object + * copydoc Dali::Internal::Object::GetDefaultProperty() */ virtual Property::Value GetDefaultProperty( Property::Index index ) const; /** - * copydoc Dali::Internal::Object + * copydoc Dali::Internal::Object::GetDefaultPropertyCurrentValue() */ - virtual bool IsDefaultPropertyWritable( Property::Index index ) const ; - - /** - * @copydoc Dali::Internal::Object::GetSceneObjectAnimatableProperty() - */ - virtual const SceneGraph::PropertyBase* GetSceneObjectAnimatableProperty( Property::Index index ) const; + virtual Property::Value GetDefaultPropertyCurrentValue( Property::Index index ) const; /** * @copydoc Dali::Internal::Object::GetSceneObjectInputProperty() @@ -262,19 +237,32 @@ private: /** * Constructor; see also CameraActor::New() + * @param node the scene graph node */ - CameraActor(); + CameraActor( const SceneGraph::Node& node ); /** * A reference counted object may only be deleted by calling Unreference() */ virtual ~CameraActor(); + + /** + * @copydoc Dali::Internal::Actor::OnInitialize() + */ + void OnInitialize() override; + + /** + * @copydoc Dali::Internal::Actor::OnStageConnectionInternal() + */ + void OnStageConnectionInternal() override; + private: // Data const SceneGraph::Camera* mSceneObject; ///< Not owned Vector3 mTarget; + Vector2 mCanvasSize; Dali::Camera::Type mType; Dali::Camera::ProjectionMode mProjectionMode; float mFieldOfView; @@ -313,4 +301,4 @@ inline const Internal::CameraActor& GetImplementation(const Dali::CameraActor& c } // namespace Dali -#endif // __DALI_INTERNAL_CAMERA_ACTOR_H__ +#endif // DALI_INTERNAL_CAMERA_ACTOR_H