#define DALI_INTERNAL_CAMERA_ACTOR_H
/*
- * Copyright (c) 2017 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.
/**
* @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);
*/
const SceneGraph::Camera* GetCamera() const;
-public: // properties
-
- /**
- * copydoc Dali::Internal::Object
- */
- virtual unsigned int GetDefaultPropertyCount() const;
-
- /**
- * @copydoc Dali::Internal::Object::GetDefaultPropertyIndices()
- */
- virtual void GetDefaultPropertyIndices( Property::IndexContainer& indices ) const;
-
- /**
- * 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
+ * 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 Property::Type GetDefaultPropertyType( Property::Index index ) const;
+ void RotateProjection( int rotationAngle );
- /**
- * 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::SetDefaultProperty()
virtual Property::Value GetDefaultPropertyCurrentValue( Property::Index index ) const;
/**
- * copydoc Dali::Internal::Object
- */
- virtual bool IsDefaultPropertyWritable( Property::Index index ) const ;
-
- /**
- * @copydoc Dali::Internal::Object::GetSceneObjectAnimatableProperty()
- */
- virtual const SceneGraph::PropertyBase* GetSceneObjectAnimatableProperty( Property::Index index ) const;
-
- /**
* @copydoc Dali::Internal::Object::GetSceneObjectInputProperty()
*/
virtual const PropertyInputImpl* GetSceneObjectInputProperty( Property::Index index ) const;
/**
* 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()
/**
* @copydoc Dali::Internal::Actor::OnInitialize()
*/
- virtual void 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;