/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/ |
H A D | rs_particle_noise_field.h | 30 Vector2f fieldSize_; 31 Vector2f fieldCenter_; 37 explicit ParticleNoiseField(const int fieldStrength, const ShapeType& fieldShape, const Vector2f& fieldSize, in ParticleNoiseField() 38 const Vector2f& fieldCenter, uint16_t fieldFeather, float noiseScale, float noiseFrequency, in ParticleNoiseField() 48 Vector2f ApplyField(const Vector2f& position, float deltaTime); 49 Vector2f ApplyCurlNoise(const Vector2f& position); 62 const Vector2f& point, const ShapeType& fieldShape, const Vector2f [all...] |
H A D | rs_render_particle.h | 94 Vector2f position_; 95 Vector2f emitSize_; 101 Vector2f imageSize_; 107 EmitterConfig(const int& emitRate, const ShapeType& emitShape, const Vector2f& position, const Vector2f& emitSize, in EmitterConfig() 109 const std::shared_ptr<RSImage>& image, const Vector2f& imageSize) in EmitterConfig() 129 std::optional<Vector2f> position_; 130 std::optional<Vector2f> emitSize_; 135 const std::optional<Vector2f>& position = std::nullopt, in EmitterUpdater() 136 const std::optional<Vector2f> in EmitterUpdater() [all...] |
H A D | rs_render_path_animation.h | 80 void SetPathValue(const Vector2f& value, float tangent); 87 void GetPosTanValue(float fraction, Vector2f& position, float& tangent); 89 void UpdateVector2fPathValue(Vector2f& value); 90 void UpdateVector4fPathValue(Vector4f& value, const Vector2f& position);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | rosen_modifier_property.h | 28 std::shared_ptr<Rosen::RSAnimatableProperty<Rosen::Vector2f>>& property, const Rosen::Vector2f& value); 32 std::shared_ptr<Rosen::RSAnimatableProperty<Rosen::Vector2f>>& property, const Rosen::Vector2f& value); 40 std::shared_ptr<Rosen::RSAnimatableProperty<Rosen::Vector2f>>& property, const Rosen::Vector2f& value); 44 std::shared_ptr<Rosen::RSAnimatableProperty<Rosen::Vector2f>>& property, const Rosen::Vector2f& value); 52 std::shared_ptr<Rosen::RSAnimatableProperty<Rosen::Vector2f>>& property, const Rosen::Vector2f [all...] |
H A D | rosen_modifier_property.cpp | 34 std::shared_ptr<Rosen::RSAnimatableProperty<Rosen::Vector2f>>& property, const Rosen::Vector2f& value) in AddOrChangeScaleModifier() 46 std::shared_ptr<Rosen::RSAnimatableProperty<Rosen::Vector2f>>& property, const Rosen::Vector2f& value) in AddOrChangeSkewModifier() 58 std::shared_ptr<Rosen::RSAnimatableProperty<Rosen::Vector2f>>& property, const Rosen::Vector2f& value) in AddOrChangePivotModifier() 82 std::shared_ptr<Rosen::RSAnimatableProperty<Rosen::Vector2f>>& property, const Rosen::Vector2f& value) in AddOrChangePerspectiveModifier() 94 std::shared_ptr<Rosen::RSAnimatableProperty<Rosen::Vector2f>>& property, const Rosen::Vector2f in AddOrChangeTranslateModifier() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/ |
H A D | rs_render_particle_test.cpp | 51 Vector2f position = Vector2f(0.f, 0.f); in SetUp() 52 Vector2f emitSize = Vector2f(10.f, 10.f); in SetUp() 58 Vector2f imageSize = Vector2f(1.f, 1.f); in SetUp() 129 Vector2f position = Vector2f(0.f, 0.f); in HWTEST_F() 130 Vector2f emitSize = Vector2f(1 in HWTEST_F() [all...] |
H A D | rs_render_path_animation_test.cpp | 76 const Vector2f PATH_ANIMATION_DEFAULT_VALUE = Vector2f(0.f, 0.f); 77 const Vector2f PATH_ANIMATION_START_VALUE = Vector2f(0.f, 0.f); 78 const Vector2f PATH_ANIMATION_END_VALUE = Vector2f(500.f, 500.f); 100 auto property = std::make_shared<RSRenderAnimatableProperty<Vector2f>>(PATH_ANIMATION_DEFAULT_VALUE); in HWTEST_F() 101 auto property1 = std::make_shared<RSRenderAnimatableProperty<Vector2f>>(PATH_ANIMATION_START_VALUE); in HWTEST_F() 102 auto property2 = std::make_shared<RSRenderAnimatableProperty<Vector2f>>(PATH_ANIMATION_END_VALUE); in HWTEST_F() 124 auto property = std::make_shared<RSRenderAnimatableProperty<Vector2f>>(PATH_ANIMATION_DEFAULT_VALU in HWTEST_F() [all...] |
H A D | rs_render_particle_animation_test.cpp | 58 Vector2f position = Vector2f(0.f, 0.f); in SetUp() 59 Vector2f emitSize = Vector2f(10.f, 20.f); // 10.f is width, 20.f is height in SetUp() 65 Vector2f imageSize = Vector2f(1.f, 1.f); in SetUp() 73 Vector2f position1 = Vector2f(100.f, 100.f); in SetUp() 74 Vector2f emitSize1 = Vector2f(20 in SetUp() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/animation/ |
H A D | rs_animation_test_utils.h | 58 const Vector2f PATH_ANIMATION_DEFAULT_VALUE = Vector2f(0.f, 0.f);
59 const Vector2f PATH_ANIMATION_START_VALUE = Vector2f(0.f, 0.f);
60 const Vector2f PATH_ANIMATION_END_VALUE = Vector2f(500.f, 500.f);
61 const Vector2f ANIMATION_NORMAL_SCALE = Vector2f(1.f, 1.f);
62 const Vector2f ANIMATION_TENTH_SCALE = Vector2f(0. [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/ |
H A D | rs_motion_blur_filter.h | 30 Vector2f scaleAnchor = Vector2f(0.f, 0.f); 32 explicit MotionBlurParam(float r, Vector2f& s) : radius(r), scaleAnchor(s) {} in MotionBlurParam() 65 std::shared_ptr<Drawing::ShaderEffect> srcImageShader, Vector2f& scaleAnchor, Vector2f& scaleSize, 66 Vector2f& rectOffset, float radius) const; 68 void CaculateRect(Vector2f& rectOffset, Vector2f& scaleSize, Vector2f& scaleAnchorCoord) const;
|
H A D | rs_particles_drawable.h | 35 Drawing::RSXform MakeRSXform(Vector2f ofs, Vector2f position, float spin, float scale); 37 const std::shared_ptr<RSRenderParticle>& particle, Vector2f position, float opacity, float scale); 39 Vector2f position, float opacity, float scale); 41 Vector2f position, float opacity, float scale);
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/modifier/ |
H A D | rs_showing_properties_freezer.cpp | 76 std::optional<Vector2f> RSShowingPropertiesFreezer::GetPivot() const in GetPivot() 78 return GetPropertyImpl<Vector2f, RSModifierType::PIVOT>(); in GetPivot() 111 std::optional<Vector2f> RSShowingPropertiesFreezer::GetTranslate() const in GetTranslate() 113 return GetPropertyImpl<Vector2f, RSModifierType::TRANSLATE>(); in GetTranslate() 121 std::optional<Vector2f> RSShowingPropertiesFreezer::GetScale() const in GetScale() 123 return GetPropertyImpl<Vector2f, RSModifierType::SCALE>(); in GetScale() 126 std::optional<Vector2f> RSShowingPropertiesFreezer::GetSkew() const in GetSkew() 128 return GetPropertyImpl<Vector2f, RSModifierType::SKEW>(); in GetSkew() 131 std::optional<Vector2f> RSShowingPropertiesFreezer::GetPersp() const in GetPersp() 133 return GetPropertyImpl<Vector2f, RSModifierTyp in GetPersp() [all...] |
H A D | rs_modifier_extractor.h | 36 Vector2f GetPivot() const; 43 Vector2f GetTranslate() const; 45 Vector2f GetScale() const; 46 Vector2f GetSkew() const; 47 Vector2f GetPersp() const; 104 Vector2f GetAttractionDstPointValue() const;
|
H A D | rs_modifier_extractor.cpp | 79 Vector2f RSModifierExtractor::GetPivot() const in GetPivot() 81 GET_PROPERTY_FROM_MODIFIERS_EQRETURN(Vector2f, PIVOT, Vector2f(0.5f, 0.5f), =); in GetPivot() 114 Vector2f RSModifierExtractor::GetTranslate() const in GetTranslate() 116 GET_PROPERTY_FROM_MODIFIERS(Vector2f, TRANSLATE, Vector2f(0.f, 0.f), +=); in GetTranslate() 124 Vector2f RSModifierExtractor::GetScale() const in GetScale() 126 GET_PROPERTY_FROM_MODIFIERS(Vector2f, SCALE, Vector2f(1.f, 1.f), *=); in GetScale() 129 Vector2f RSModifierExtracto [all...] |
H A D | rs_showing_properties_freezer.h | 35 std::optional<Vector2f> GetPivot() const; 42 std::optional<Vector2f> GetTranslate() const; 44 std::optional<Vector2f> GetScale() const; 45 std::optional<Vector2f> GetSkew() const; 46 std::optional<Vector2f> GetPersp() const; 77 std::optional<Vector2f> GetAttractionDstPointValue() const;
|
H A D | rs_property_modifier.cpp | 77 auto value = std::static_pointer_cast<RSProperty<Vector2f>>(property_)->Get(); in Apply() 83 auto value = std::static_pointer_cast<RSProperty<Vector2f>>(property_)->Get(); in Apply() 89 auto value = std::static_pointer_cast<RSProperty<Vector2f>>(property_)->Get(); in Apply() 134 auto value = std::static_pointer_cast<RSProperty<Vector2f>>(property_)->Get(); in Apply() 135 value *= Vector2f(geometry->GetScaleX(), geometry->GetScaleY()); in Apply() 141 auto value = std::static_pointer_cast<RSProperty<Vector2f>>(property_)->Get(); in Apply() 142 value += Vector2f(geometry->GetSkewX(), geometry->GetSkewY()); in Apply() 148 auto value = std::static_pointer_cast<RSProperty<Vector2f>>(property_)->Get(); in Apply() 149 value += Vector2f(geometry->GetPerspX(), geometry->GetPerspY()); in Apply() 155 auto value = std::static_pointer_cast<RSProperty<Vector2f>>(property in Apply() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_particle_noise_field.cpp | 24 const Vector2f& point, const ShapeType& fieldShape, const Vector2f& fieldCenter, float width, float height) in IsPointInField() 39 const Vector2f& position, const Vector2f& direction, const Vector2f& center, const Vector2f& size) in CalculateDistanceToRectangleEdge() 93 Vector2f ParticleNoiseField::ApplyField(const Vector2f& position, float deltaTime) in ApplyField() 100 Vector2f direction = position - fieldCenter_; in ApplyField() 113 Vector2f forc in ApplyField() [all...] |
H A D | rs_render_transition_effect.cpp | 174 std::make_shared<RSRenderAnimatableProperty<Vector2f>>(Vector2f { 0, 0 }, GenerateTransitionPropertyId()); in CreateModifier() 183 Vector2f startValue(1.0f, 1.0f); in UpdateFraction() 184 Vector2f endValue(scaleX_, scaleY_); in UpdateFraction() 192 std::make_shared<RSRenderAnimatableProperty<Vector2f>>(Vector2f { 0, 0 }, GenerateTransitionPropertyId()); in CreateModifier() 201 Vector2f startValue(0.0f, 0.0f); in UpdateFraction() 202 Vector2f endValue(translateX_, translateY_); in UpdateFraction()
|
/foundation/graphic/graphic_2d/graphic_test/graphic_test/rs_display_effect/property_display/ |
H A D | geom_translation_test.cpp | 43 testNode->SetPivot(Vector2f(0, 0)); in GRAPHIC_TEST() 44 testNode->SetTranslate(Vector2f(transList[i], transList[i])); in GRAPHIC_TEST() 57 testNode->SetPivot(Vector2f(0, 0)); in GRAPHIC_TEST() 58 testNode->SetTranslate(Vector2f(transList[i], transList[i])); in GRAPHIC_TEST()
|
H A D | geom_pivotandrotation_test.cpp | 46 testNode->SetPivot(Vector2f(0, 0)); in GRAPHIC_TEST() 63 testNode->SetPivot(Vector2f(0.5, 0.5)); in GRAPHIC_TEST() 80 testNode->SetPivot(Vector2f(1, 1)); in GRAPHIC_TEST() 97 testNode->SetPivot(Vector2f(0, 0)); in GRAPHIC_TEST() 114 testNode->SetPivot(Vector2f(0.5, 0.5)); in GRAPHIC_TEST() 131 testNode->SetPivot(Vector2f(1, 1)); in GRAPHIC_TEST() 143 testNode->SetPivot(Vector2f(0.5, 0.5)); in GRAPHIC_TEST()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/modifier/ |
H A D | rs_property_modifier_test.cpp | 33 const Vector2f INITIAL_VALUE_SIZE_2F = Vector2f(60.f, 30.f); 34 const Vector2f INITIAL_VALUE_POSITION_2F = Vector2f(50.f, 50.f); 35 const Vector2f INITIAL_VALUE_PIVOT_2F = Vector2f(70.f, 80.f); 36 const Vector2f INITIAL_VALUE_SCALE_2F = Vector2f(2.f, 2.f); 37 const Vector2f INITIAL_VALUE_SKEW_2F = Vector2f(3 [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/ |
H A D | render_service_client_gesture_interrupt_animation_demo.cpp | 74 void SetTranslate(Vector2f translate) in SetTranslate() 77 translate_ = std::make_shared<RSAnimatableProperty<Vector2f>>(translate); in SetTranslate() 84 Vector2f GetTranslate() const in GetTranslate() 96 translate_->SetUpdateCallback([&](Vector2f vec) { currentTranslateValue_ = vec; }); in SetTranslateCallBack() 100 Vector2f currentTranslateValue_ = Vector2f(0.0f, 0.0f); 103 std::shared_ptr<RSAnimatableProperty<Vector2f>> translate_; 170 vector<Vector2f> handPoint(pointsNum); in main() 187 Vector2f finalTrans = handPoint[pointsNum - 1] + velocity * 0.5; in main()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_motion_blur_filter_test.cpp | 49 Vector2f anchor = {0.f, 0.f}; in HWTEST_F() 69 Vector2f anchor = {0.f, 0.f}; in HWTEST_F() 84 Vector2f anchor = {0.f, 0.f}; in HWTEST_F() 103 Vector2f s = { 1.f, 1.f }; in HWTEST_F() 129 Vector2f scaleAnchor = { 1.f, 1.f }; in HWTEST_F() 130 Vector2f scaleSize = { 1.f, 1.f }; in HWTEST_F() 131 Vector2f rectOffset = { 1.f, 1.f }; // for test in HWTEST_F() 146 Vector2f rectOffset = { 1.f, 1.f }; in HWTEST_F() 147 Vector2f scaleSize = { 1.f, 1.f }; in HWTEST_F() 148 Vector2f scaleAnchorCoor in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/ |
H A D | rs_properties.h | 69 void SetBoundsSize(Vector2f size); 72 void SetBoundsPosition(Vector2f position); 76 Vector2f GetBoundsSize() const; 79 Vector2f GetBoundsPosition() const; 84 void SetFrameSize(Vector2f size); 87 void SetFramePosition(Vector2f position); 91 Vector2f GetFrameSize() const; 94 Vector2f GetFramePosition() const; 100 void SetSandBox(const std::optional<Vector2f>& parentPosition); 101 std::optional<Vector2f> GetSandBo [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/test/unittest/animation/ |
H A D | rs_animation_test.cpp | 369 Vector2f value(0.f, 0.f); in HWTEST_F() 370 RSAnimatableProperty<Vector2f> property(value); in HWTEST_F() 371 std::unique_ptr<RSPathAnimation<Vector2f>> animation = in HWTEST_F() 372 std::make_unique<RSPathAnimation<Vector2f>>(property, rsPath); in HWTEST_F() 411 Vector2f startValue = Vector2f(0, 0); in HWTEST_F() 412 Vector2f endValue = Vector2f(100, 100); in HWTEST_F() 413 Vector2f value(0.f, 0.f); in HWTEST_F() 414 RSAnimatableProperty<Vector2f> propert in HWTEST_F() [all...] |