Home
last modified time | relevance | path

Searched refs:weights (Results 1 - 18 of 18) sorted by relevance

/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_gauge_ffi.cpp123 LOGE("gauge colors not match weights"); in FfiOHOSAceFrameworkGaugeSetColors()
137 std::vector<float> weights; in FfiOHOSAceFrameworkGaugeSetColorsV2() local
141 LOGE("gauge colors not match weights"); in FfiOHOSAceFrameworkGaugeSetColorsV2()
154 GaugeModel::GetInstance()->SetGradientColors(colors, weights, type); in FfiOHOSAceFrameworkGaugeSetColorsV2()
161 GaugeModel::GetInstance()->SetGradientColors(colors, weights, type); in FfiOHOSAceFrameworkGaugeSetColorsV2()
168 std::vector<float> weights; in FfiOHOSAceFrameworkGaugeSetLinearGradientColors() local
172 LOGE("gauge colors not match weights"); in FfiOHOSAceFrameworkGaugeSetLinearGradientColors()
184 weights.emplace_back(vecWeight[i]); in FfiOHOSAceFrameworkGaugeSetLinearGradientColors()
197 GaugeModel::GetInstance()->SetGradientColors(colors, weights, type); in FfiOHOSAceFrameworkGaugeSetLinearGradientColors()
209 GaugeModel::GetInstance()->SetGradientColors(colors, weights, typ in FfiOHOSAceFrameworkGaugeSetLinearGradientColors()
[all...]
H A Dcj_gauge_ffi.h44 CJ_EXPORT void FfiOHOSAceFrameworkGaugeSetColors(VectorUInt32Ptr colors, VectorFloat32Ptr weights);
45 CJ_EXPORT void FfiOHOSAceFrameworkGaugeSetColorsV2(VectorUInt32Ptr colors, VectorFloat32Ptr weights);
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_gauge.cpp153 std::vector<float> weights; in SetColors() local
170 weights.push_back(weight); in SetColors()
172 weights.push_back(0.0f); in SetColors()
175 GaugeModel::GetInstance()->SetColors(colors, weights); in SetColors()
187 std::vector<float> weights; in SetGradientColors() local
209 weights.push_back(weight); in SetGradientColors()
216 GaugeModel::GetInstance()->SetGradientColors(colors, weights, type); in SetGradientColors()
221 GaugeModel::GetInstance()->SetGradientColors(colors, weights, type); in SetGradientColors()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dgauge_modifier.cpp167 std::vector<ArkUI_Float32> weights(length); in SetColors()
170 weights.at(i) = weight[i]; in SetColors()
172 GaugeModelNG::SetColors(frameNode, inputColor, weights); in SetColors()
180 std::vector<ArkUI_Float32> weights; in ResetColors() local
181 GaugeModelNG::SetColors(frameNode, inputColor, weights); in ResetColors()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/
H A Dmorphing_system.cpp211 const auto& weights = mc.morphWeights; in Morph() local
212 activeTargets.reserve(weights.size()); in Morph()
213 for (size_t ti = 0; ti < weights.size(); ti++) { in Morph()
214 if (weights[ti] > 0.0f) { in Morph()
215 activeTargets.push_back({ static_cast<uint32_t>(ti), weights[ti] }); in Morph()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_gauge_bridge.cpp96 std::vector<float>& weights, NG::GaugeType& type, ArkUINodeHandle nativeNode) in SetGradientColorsObject()
118 std::vector<float>& weights, NG::GaugeType& type, ArkUINodeHandle nativeNode) in SetGradientColorsArray()
140 gradient.weight = &(*weights.begin()); in SetGradientColorsArray()
143 GetArkUINodeModifiers()->getGaugeModifier()->setGradientColors(nativeNode, &gradient, weights.size()); in SetGradientColorsArray()
154 std::vector<float> weights; in SetGradientColors() local
156 SetGradientColorsObject(vm, info, colors, weights, type, nativeNode); in SetGradientColors()
183 weights.push_back(weight); in SetGradientColors()
190 SetGradientColorsArray(vm, info, colors, weights, type, nativeNode); in SetGradientColors()
216 auto weights = std::make_unique<float[]>(length); in SetColors() local
236 weights[ in SetColors()
95 SetGradientColorsObject(const EcmaVM* vm, const Local<JSValueRef>& info, std::vector<NG::ColorStopArray>& colors, std::vector<float>& weights, NG::GaugeType& type, ArkUINodeHandle nativeNode) SetGradientColorsObject() argument
117 SetGradientColorsArray(const EcmaVM* vm, const Local<JSValueRef>& info, std::vector<NG::ColorStopArray>& colors, std::vector<float>& weights, NG::GaugeType& type, ArkUINodeHandle nativeNode) SetGradientColorsArray() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/progress/
H A Dprogress_component.h170 void SetSectionsStyle(const std::vector<Color>& colors, const std::vector<double>& weights) in SetSectionsStyle() argument
172 track_->SetSectionsStyle(colors, weights); in SetSectionsStyle()
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dgauge_composed_element.cpp119 auto weights = renderProgress->GetProgressComponent()->GetTrack()->GetSectionsWeights(); in GetColors() local
123 jsonObject->Put("1", weights[i]); in GetColors()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/
H A Dgauge_modifier.cpp228 std::vector<float> weights; in PaintDraw() local
230 weights = paintProperty->GetValuesValue(); in PaintDraw()
232 weights.push_back(1); in PaintDraw()
240 if (colors.size() == 0 || colors.size() != weights.size()) { in PaintDraw()
245 for (auto& weight : weights) { in PaintDraw()
258 currentStart += weights[index]; in PaintDraw()
259 if (ShouldHighLight(totalWeight - currentStart, weights[index], ratio * totalWeight)) { in PaintDraw()
264 data.sweepDegree = (weights[index] / totalWeight) * sweepDegree; in PaintDraw()
270 data.sweepDegree = (weights[highLightIndex] / totalWeight) * sweepDegree; in PaintDraw()
564 std::vector<float> weights; in PaintMultiSegmentGradientCircular() local
609 PaintMultiSegmentGradientCircularShadow(RSCanvas& canvas, RenderRingInfo& data, RefPtr<GaugePaintProperty>& paintProperty, std::vector<ColorStopArray>& colors, std::vector<float>& weights) PaintMultiSegmentGradientCircularShadow() argument
[all...]
H A Dgauge_modifier.h120 std::vector<float>& weights);
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dpost_proc_slr.cpp60 SLRWeightMat weights = std::make_shared<SLRWeightVec>(n, std::vector<float>(2 * a, 0)); in GetWeights() local
74 (*weights)[i][k - eta + a - 1] = factor; in GetWeights()
80 rowSum[i] += (*weights)[i][j]; in GetWeights()
86 (*weights)[i][j] /= rowSum[i]; in GetWeights()
89 return weights; in GetWeights()
/foundation/arkui/ace_engine/frameworks/core/components/track/
H A Dtrack_component.h280 void SetSectionsStyle(const std::vector<Color>& colors, const std::vector<double>& weights) in SetSectionsStyle() argument
283 weights_ = weights; in SetSectionsStyle()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_importer.cpp551 GLTF2::GLTFLoadDataResult& tangents, GLTF2::GLTFLoadDataResult& joints, GLTF2::GLTFLoadDataResult& weights, in LoadPrimitiveAttributeData()
589 weights = move(loadDataResult); in LoadPrimitiveAttributeData()
842 const IMeshBuilder::DataBuffer weights = fillDataBuffer(weight); in ProcessPrimitives() local
843 result.meshBuilder->SetJointData(primitiveIndex, joints, weights, positions); in ProcessPrimitives()
2086 // Apparently the node/mesh weight list is a concatenation of all primitives targets weights.... in CreateMorphComponents()
2087 vector<float> weights; in CreateMorphComponents() local
2088 weights.reserve(weightCount); in CreateMorphComponents()
2089 if (!node->weights.empty()) { in CreateMorphComponents()
2091 weights.insert(weights in CreateMorphComponents()
549 LoadPrimitiveAttributeData(const GLTF2::MeshPrimitive& primitive, GLTF2::GLTFLoadDataResult& positions, GLTF2::GLTFLoadDataResult& normals, array_view<GLTF2::GLTFLoadDataResult> texcoords, GLTF2::GLTFLoadDataResult& tangents, GLTF2::GLTFLoadDataResult& joints, GLTF2::GLTFLoadDataResult& weights, GLTF2::GLTFLoadDataResult& colors, const uint32_t& flags) LoadPrimitiveAttributeData() argument
[all...]
H A Dgltf2_data_structures.h630 // Array of weights to be applied to the Morph Targets.
631 BASE_NS::vector<float> weights; member
712 BASE_NS::vector<float> weights; member
H A Dgltf2_loader.cpp1604 vector<float> weights;
1605 const auto parseWeights = [&weights](LoadResult& loadResult, const json::value& weight) -> bool {
1607 weights.push_back(weight.as_number<float>());
1612 if (!ForEachInArray(loadResult, jsonData, "weights", parseWeights)) {
1636 mesh->weights = move(weights);
2036 const auto parseCompressed = [&data, &weights = node.weights](
2039 return ParseOptionalNumberArray(loadResult, weights, compressedJson, "weights", vecto
[all...]
H A Dgltf2_exporter.cpp947 // NOTE: exportMesh->weights in ExportGltfMeshes()
1861 if (!mesh->weights.empty()) { in ExportMeshes()
1862 jsonMesh["weights"] = mesh->weights; in ExportMeshes()
1933 if (!node->weights.empty()) { in ExportNodes()
1934 jsonNodeObject["weights"] = node->weights; in ExportNodes()
2485 // NOTE: weights, defaults are not exported in RecursivelyExportNode()
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/shaders/common/
H A Drender_blur_common.h304 float weights[5] = { 0.5, 0.125, 0.125, 0.125, 0.125 }; // 0.5: weight, 0.125: weight in DownscaleRGBADof() local
320 color += samples[i] * weights[i]; in DownscaleRGBADof()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dmesh_builder.cpp1260 // Process joint weights. in SetJointData()
2084 const auto* weights = weightData.buffer.data(); in CalculateJointBounds() local
2094 fWeights[j] = weightFormat.toIntermediate(weights + j * weightFormat.componentByteSize); in CalculateJointBounds()
2096 weights += weightData.stride; in CalculateJointBounds()
2121 weights = weightData.buffer.data(); in CalculateJointBounds()
2134 fWeights[j] = weightFormat.toIntermediate(weights + j * weightFormat.componentByteSize); in CalculateJointBounds()
2136 weights += weightData.stride; in CalculateJointBounds()

Completed in 23 milliseconds