2 * Copyright (c) 2017 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.
18 #include <dali/internal/sensor/common/tilt-sensor-impl.h>
29 TiltSensor::TiltSensor() = default;
31 TiltSensor::~TiltSensor() = default;
33 bool TiltSensor::Start()
38 void TiltSensor::Stop()
43 bool TiltSensor::IsStarted() const
48 float TiltSensor::GetRoll() const
53 float TiltSensor::GetPitch() const
58 Quaternion TiltSensor::GetRotation() const
60 return Quaternion::IDENTITY;
64 TiltSensor::TiltedSignalType& TiltSensor::TiltedSignal()
66 static TiltSensor::TiltedSignalType signal;
71 void TiltSensor::SetUpdateFrequency(float frequencyHertz)
76 float TiltSensor::GetUpdateFrequency() const
81 void TiltSensor::SetRotationThreshold(Radian rotationThreshold)
87 * @copydoc Dali::TiltSensor::GetRotationThreshold()
89 Radian TiltSensor::GetRotationThreshold() const
95 * Connects a callback function with the object's signals.
96 * @param[in] object The object providing the signal.
97 * @param[in] tracker Used to disconnect the signal.
98 * @param[in] signalName The signal to connect to.
99 * @param[in] functor A newly allocated FunctorDelegate.
100 * @return True if the signal was connected.
101 * @post If a signal was connected, ownership of functor was passed to CallbackBase. Otherwise the caller is responsible for deleting the unused functor.
103 bool TiltSensor::DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor )
108 } // namespace Adaptor
110 } // namespace Internal