1 /* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef UIEFFECT_FILTER_FLY_OUT_PARA_H 16 #define UIEFFECT_FILTER_FLY_OUT_PARA_H 17 #include <iostream> 18 #include "filter_para.h" 19 #include "common/rs_vector2.h" 20 21 namespace OHOS { 22 namespace Rosen { 23 class FlyOutPara : public FilterPara { 24 public: FlyOutPara()25 FlyOutPara() 26 { 27 this->type_ = FilterPara::ParaType::FLY_OUT; 28 } 29 ~FlyOutPara() override = default; 30 SetDegree(float degree)31 void SetDegree(float degree) 32 { 33 degree_ = degree; 34 } 35 GetDegree()36 float GetDegree() const 37 { 38 return degree_; 39 } 40 SetFlyMode(uint32_t flyMode)41 void SetFlyMode(uint32_t flyMode) 42 { 43 flyMode_ = flyMode; 44 } 45 GetFlyMode()46 uint32_t GetFlyMode () const 47 { 48 return flyMode_; 49 } 50 51 private: 52 float degree_ = 0.0f; 53 uint32_t flyMode_ = 0; 54 }; 55 } // namespace Rosen 56 } // namespace OHOS 57 #endif // UIEFFECT_FILTER_FLY_OUT_PARA_H