Home
last modified time | relevance | path

Searched refs:ParticleUpdator (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/
H A Drs_particle_params.h63 ParticleUpdator updator_;
67 …Range<T>& val, ParticleUpdator updator, Range<float> random, std::vector<Change<T>>& valChangeOver… in ParticleParaType()
77 ParticleParaType() : val_(), updator_(ParticleUpdator::NONE), random_() {} in ParticleParaType()
103 ParticleUpdator updator_;
111 … const ParticleUpdator& updator, const Range<float>& redRandom, const Range<float>& greenRandom, in ParticleColorParaType()
127 …: colorVal_(), distribution_(DistributionType::UNIFORM), updator_(ParticleUpdator::NONE), redRando… in ParticleColorParaType()
167 if (val.updator_ == ParticleUpdator::RANDOM) { in translateValToRender()
169 } else if (val.updator_ == ParticleUpdator::CURVE) { in translateValToRender()
196 if (color.updator_ == ParticleUpdator::RANDOM) { in translateColorToRender()
201 } else if (color.updator_ == ParticleUpdator::CURVE) { in translateColorToRender()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/
H A Drs_render_particle_effector_test.cpp82 ParticleUpdator colorUpdator = ParticleUpdator::RANDOM; in SetColor()
95 ParticleUpdator opacityUpdator = ParticleUpdator::CURVE; in SetOpacity()
117 ParticleUpdator scaleUpdator = ParticleUpdator::RANDOM; in SetUp()
205 ParticleUpdator randomUpdator = ParticleUpdator::RANDOM;
206 ParticleUpdator curveUpdator = ParticleUpdator::CURVE;
282 ParticleUpdator curveUpdator = ParticleUpdator::CURVE;
327 ParticleUpdator randomUpdator = ParticleUpdator::RANDOM;
377 ParticleUpdator curveUpdator = ParticleUpdator::CURVE;
H A Drs_render_particle_emitter_test.cpp77 ParticleUpdator colorUpdator = ParticleUpdator::RANDOM; in SetColor()
90 ParticleUpdator opacityUpdator = ParticleUpdator::CURVE; in SetOpacity()
112 ParticleUpdator randomUpdator = ParticleUpdator::RANDOM; in SetUp()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/
H A Drs_render_particle_effector.cpp112 if (colorUpdator == ParticleUpdator::RANDOM) { in UpdateColor()
123 } else if (colorUpdator == ParticleUpdator::CURVE) { in UpdateColor()
142 if (opacityUpdator == ParticleUpdator::RANDOM) { in UpdateOpacity()
153 } else if (opacityUpdator == ParticleUpdator::CURVE) { in UpdateOpacity()
171 if (scaleUpdator == ParticleUpdator::RANDOM) { in UpdateScale()
178 } else if (scaleUpdator == ParticleUpdator::CURVE) { in UpdateScale()
196 if (spinUpdator == ParticleUpdator::RANDOM) { in UpdateSpin()
199 } else if (spinUpdator == ParticleUpdator::CURVE) { in UpdateSpin()
218 if (acceAngleUpdator == ParticleUpdator::RANDOM) { in UpdateAccelerationAngle()
221 } else if (acceAngleUpdator == ParticleUpdator::CURVE) { in UpdateAccelerationAngle()
[all …]
H A Drs_render_particle_emitter.cpp38 if (opacityUpdater == ParticleUpdator::NONE && particleParams_->GetOpacityEndValue() <= 0.f) { in PreEmit()
41 …} else if (opacityUpdater == ParticleUpdator::RANDOM && particleParams_->GetOpacityEndValue() <= 0… in PreEmit()
46 if (scaleUpdater == ParticleUpdator::NONE && particleParams_->GetScaleEndValue() <= 0.f) { in PreEmit()
49 …} else if (scaleUpdater == ParticleUpdator::RANDOM && particleParams_->GetScaleEndValue() <= 0.f && in PreEmit()
H A Drs_render_particle.cpp131 const ParticleUpdator& ParticleRenderParams::GetAccelerationValueUpdator() in GetAccelerationValueUpdator()
136 const ParticleUpdator& ParticleRenderParams::GetAccelerationAngleUpdator() in GetAccelerationAngleUpdator()
176 const ParticleUpdator& ParticleRenderParams::GetColorUpdator() in GetColorUpdator()
231 const ParticleUpdator& ParticleRenderParams::GetOpacityUpdator() in GetOpacityUpdator()
256 const ParticleUpdator& ParticleRenderParams::GetScaleUpdator() in GetScaleUpdator()
281 const ParticleUpdator& ParticleRenderParams::GetSpinUpdator() in GetSpinUpdator()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/
H A Drs_render_particle.h34 enum class ParticleUpdator: uint32_t {NONE = 0, RANDOM, CURVE}; enum
77 ParticleUpdator updator_;
84 RenderParticleParaType() : val_(), updator_(ParticleUpdator::NONE), random_() {} in RenderParticleParaType()
180 ParticleUpdator updator_;
188 … const ParticleUpdator& updator, const Range<float>& redRandom, const Range<float>& greenRandom, in RenderParticleColorParaType()
246 const ParticleUpdator& GetAccelerationValueUpdator();
247 const ParticleUpdator& GetAccelerationAngleUpdator();
256 const ParticleUpdator& GetColorUpdator();
268 const ParticleUpdator& GetOpacityUpdator();
274 const ParticleUpdator& GetScaleUpdator();
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/animation/
H A Drs_render_particle_test.cpp1063 ParticleUpdator particleUpdator; in HWTEST_F()
1065 ASSERT_EQ(particleUpdator, ParticleUpdator::NONE); in HWTEST_F()
1076 ParticleUpdator particleUpdator; in HWTEST_F()
1078 ASSERT_EQ(particleUpdator, ParticleUpdator::NONE); in HWTEST_F()
1163 ParticleUpdator particleUpdator; in HWTEST_F()
1296 ParticleUpdator particleUpdator; in HWTEST_F()
1357 ParticleUpdator particleUpdator; in HWTEST_F()
1418 ParticleUpdator particleUpdator; in HWTEST_F()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/
H A Drs_marshalling_helper.cpp1059 if (val.updator_ == ParticleUpdator::RANDOM) { in Marshalling()
1061 } else if (val.updator_ == ParticleUpdator::CURVE) { in Marshalling()
1082 ParticleUpdator updator = ParticleUpdator::NONE; in Unmarshalling()
1088 if (updator == ParticleUpdator::RANDOM) { in Unmarshalling()
1090 } else if (updator == ParticleUpdator::CURVE) { in Unmarshalling()
1122 if (val.updator_ == ParticleUpdator::RANDOM) { in Marshalling()
1130 } else if (val.updator_ == ParticleUpdator::CURVE) { in Marshalling()
1152 ParticleUpdator updator = ParticleUpdator::NONE; in Unmarshalling()
1164 if (updator == ParticleUpdator::RANDOM) { in Unmarshalling()
1169 } else if (updator == ParticleUpdator::CURVE) { in Unmarshalling()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/
H A Drs_marshalling_helper_test.cpp598 …RenderParticleParaType<float> val(value, ParticleUpdator::RANDOM, random, std::move(valChangeOverL…
600 …RenderParticleParaType<float> val2(value, ParticleUpdator::CURVE, random, std::move(valChangeOverL…
638 …RenderParticleColorParaType val(colorVal, DistributionType::UNIFORM, ParticleUpdator::RANDOM, redR…
641 …RenderParticleColorParaType val2(colorVal, DistributionType::UNIFORM, ParticleUpdator::CURVE, redR…
/ohos5.0/foundation/multimodalinput/input/service/window_manager/src/
H A Dknuckle_drawing_manager.cpp343 … colorVal, Rosen::DistributionType::UNIFORM, Rosen::ParticleUpdator::NONE, Rosen::Range<float>(), in InitParticleEmitter()
349 opacityVal, Rosen::ParticleUpdator::NONE, Rosen::Range<float>(), opacityChangeOverLifes); in InitParticleEmitter()
360 scaleVal, Rosen::ParticleUpdator::CURVE, scaleChangeVelocity, scaleChangeOverLifes); in InitParticleEmitter()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsmarshallinghelper_fuzzer/
H A Drsmarshallinghelper_fuzzer.cpp109 …RenderParticleParaType<float> val2(value, ParticleUpdator::RANDOM, randomValue, std::move(valChang… in DoUnmarshalling()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drosen_render_context.cpp1503 … static_cast<OHOS::Rosen::DistributionType>(colorDistInt), OHOS::Rosen::ParticleUpdator::RANDOM, in ConvertParticleColorOption()
1522 static_cast<OHOS::Rosen::DistributionType>(colorDistInt), ParticleUpdator::CURVE, in ConvertParticleColorOption()
1536 … OHOS::Rosen::ParticleUpdator::NONE, OHOS::Rosen::Range<float>(), OHOS::Rosen::Range<float>(), in ConvertParticleDefaultColorOption()
1542 …OHOS::Rosen::DistributionType::UNIFORM, OHOS::Rosen::ParticleUpdator::NONE, OHOS::Rosen::Range<flo… in ConvertParticleDefaultColorOption()
1559 … return OHOS::Rosen::ParticleParaType<float>(rsInitRange, OHOS::Rosen::ParticleUpdator::RANDOM, in ConvertParticleFloatOption()
1575 … rsInitRange, OHOS::Rosen::ParticleUpdator::CURVE, rsInvalidRange, valChangeOverLife); in ConvertParticleFloatOption()
1586 …rsInitRange, OHOS::Rosen::ParticleUpdator::NONE, OHOS::Rosen::Range<float>(), invalidChangeInOverL… in ConvertParticleDefaultFloatOption()