/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/api/ |
H A D | light.h | 30 class Light final : public META_NS::Internal::ObjectInterfaceAPI<Light, ClassId::Light> { in SCENE_BEGIN_NAMESPACE() 31 META_API(Light) in SCENE_BEGIN_NAMESPACE() 33 META_API_CACHE_INTERFACE(ILight, Light) in SCENE_BEGIN_NAMESPACE() 47 META_API_INTERFACE_PROPERTY_CACHED(Light, Color, BASE_NS::Color) in SCENE_BEGIN_NAMESPACE() 48 META_API_INTERFACE_PROPERTY_CACHED(Light, Intensity, float) in SCENE_BEGIN_NAMESPACE() 49 META_API_INTERFACE_PROPERTY_CACHED(Light, NearPlane, float) in SCENE_BEGIN_NAMESPACE() 50 META_API_INTERFACE_PROPERTY_CACHED(Light, ShadowEnabled, bool) in SCENE_BEGIN_NAMESPACE() 51 META_API_INTERFACE_PROPERTY_CACHED(Light, ShadowStrength, float) in SCENE_BEGIN_NAMESPACE() 56 META_API_INTERFACE_PROPERTY_CACHED(Light, Type, uint8_t) in SCENE_BEGIN_NAMESPACE() 65 explicit Light(const INode::Ptr& node) in SCENE_BEGIN_NAMESPACE() [all …]
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/light_v1_0/cpp_target/light/v1_0/ |
H A D | light_types.cpp.txt | 23 namespace Light { 88 …Light::V1_0::HdfLightFlashEffect *dataBlockPtr = reinterpret_cast<const OHOS::HDI::Light::V1_0::Hd… 109 …:HDI::Light::V1_0::RGBColor *dataBlockPtr = reinterpret_cast<const OHOS::HDI::Light::V1_0::RGBColo… 114 …if (memcpy_s(&dataBlock, sizeof(OHOS::HDI::Light::V1_0::RGBColor), dataBlockPtr, sizeof(OHOS::HDI:… 130 …HDI::Light::V1_0::WRGBColor *dataBlockPtr = reinterpret_cast<const OHOS::HDI::Light::V1_0::WRGBCol… 135 …if (memcpy_s(&dataBlock, sizeof(OHOS::HDI::Light::V1_0::WRGBColor), dataBlockPtr, sizeof(OHOS::HDI… 151 …:Light::V1_0::HdfLightColor *dataBlockPtr = reinterpret_cast<const OHOS::HDI::Light::V1_0::HdfLigh… 156 …if (memcpy_s(&dataBlock, sizeof(OHOS::HDI::Light::V1_0::HdfLightColor), dataBlockPtr, sizeof(OHOS:… 172 …Light::V1_0::HdfLightEffect *dataBlockPtr = reinterpret_cast<const OHOS::HDI::Light::V1_0::HdfLigh… 177 …if (memcpy_s(&dataBlock, sizeof(OHOS::HDI::Light::V1_0::HdfLightEffect), dataBlockPtr, sizeof(OHOS… [all …]
|
H A D | light_interface_stub.cpp.txt | 27 namespace Light { 55 sptr<OHOS::HDI::Light::V1_0::ILightInterface> OHOS::HDI::Light::V1_0::ILightInterface::Get(bool isS… 57 return OHOS::HDI::Light::V1_0::ILightInterface::Get("light_interface_service", isStub); 60 sptr<OHOS::HDI::Light::V1_0::ILightInterface> OHOS::HDI::Light::V1_0::ILightInterface::Get(const st… 71 return reinterpret_cast<OHOS::HDI::Light::V1_0::ILightInterface *>(impl); 75 OHOS::HDI::Light::V1_0::LightInterfaceStub::LightInterfaceStub(const sptr<OHOS::HDI::Light::V1_0::I… 80 OHOS::HDI::Light::V1_0::LightInterfaceStub::~LightInterfaceStub() 142 std::vector<OHOS::HDI::Light::V1_0::HdfLightInfo> info; 191 OHOS::HDI::Light::V1_0::HdfLightEffect effect; 224 std::vector<OHOS::HDI::Light::V1_0::HdfLightColor> colors; [all …]
|
H A D | light_interface_proxy.cpp.txt | 29 namespace Light { 35 sptr<OHOS::HDI::Light::V1_0::ILightInterface> OHOS::HDI::Light::V1_0::ILightInterface::Get(bool isS… 40 sptr<OHOS::HDI::Light::V1_0::ILightInterface> OHOS::HDI::Light::V1_0::ILightInterface::Get(const st… 65 …sptr<OHOS::HDI::Light::V1_0::LightInterfaceProxy> proxy = new OHOS::HDI::Light::V1_0::LightInterfa… 92 int32_t OHOS::HDI::Light::V1_0::LightInterfaceProxy::Reconnect( 93 sptr<OHOS::HDI::Light::V1_0::LightInterfaceProxy> proxy) 139 int32_t OHOS::HDI::Light::V1_0::LightInterfaceProxy::GetLightInfo(std::vector<OHOS::HDI::Light::V1_… 145 const OHOS::HDI::Light::V1_0::HdfLightEffect& effect) 166 int32_t OHOS::HDI::Light::V1_0::LightInterfaceProxy::GetLightInfo_(std::vector<OHOS::HDI::Light::V1… 203 OHOS::HDI::Light::V1_0::HdfLightInfo value0; [all …]
|
H A D | light_types.h.txt | 50 namespace Light { 104 OHOS::HDI::Light::V1_0::WRGBColor wrgbColor; 105 OHOS::HDI::Light::V1_0::RGBColor rgbColor; 109 OHOS::HDI::Light::V1_0::ColorValue colorValue; 113 OHOS::HDI::Light::V1_0::HdfLightColor lightColor; 114 OHOS::HDI::Light::V1_0::HdfLightFlashEffect flashEffect; 125 bool RGBColorBlockMarshalling(OHOS::MessageParcel &data, const OHOS::HDI::Light::V1_0::RGBColor& da… 127 bool RGBColorBlockUnmarshalling(OHOS::MessageParcel &data, OHOS::HDI::Light::V1_0::RGBColor& dataBl… 129 bool WRGBColorBlockMarshalling(OHOS::MessageParcel &data, const OHOS::HDI::Light::V1_0::WRGBColor& … 131 bool WRGBColorBlockUnmarshalling(OHOS::MessageParcel &data, OHOS::HDI::Light::V1_0::WRGBColor& data… [all …]
|
H A D | light_interface_proxy.h.txt | 25 namespace Light { 28 class LightInterfaceProxy : public IProxyBroker<OHOS::HDI::Light::V1_0::ILightInterface> { 44 result = OHOS::HDI::Light::V1_0::LightInterfaceProxy::Reconnect(proxy); 50 wptr<OHOS::HDI::Light::V1_0::LightInterfaceProxy> proxy_; 70 int32_t GetLightInfo(std::vector<OHOS::HDI::Light::V1_0::HdfLightInfo>& info) override; 75 const std::vector<OHOS::HDI::Light::V1_0::HdfLightColor>& colors) override; 81 static int32_t GetLightInfo_(std::vector<OHOS::HDI::Light::V1_0::HdfLightInfo>& info, 94 static int32_t Reconnect(sptr<OHOS::HDI::Light::V1_0::LightInterfaceProxy> proxy); 103 … sptr<OHOS::HDI::Light::V1_0::LightInterfaceProxy::IServiceManagerDeathRecipient> deathRecipient_; 106 static inline BrokerDelegator<OHOS::HDI::Light::V1_0::LightInterfaceProxy> delegator_; [all …]
|
H A D | light_interface_stub.h.txt | 28 namespace Light { 39 …lightInterfaceReply, MessageOption& lightInterfaceOption, sptr<OHOS::HDI::Light::V1_0::ILightInter… 41 …lightInterfaceReply, MessageOption& lightInterfaceOption, sptr<OHOS::HDI::Light::V1_0::ILightInter… 43 …lightInterfaceReply, MessageOption& lightInterfaceOption, sptr<OHOS::HDI::Light::V1_0::ILightInter… 45 …lightInterfaceReply, MessageOption& lightInterfaceOption, sptr<OHOS::HDI::Light::V1_0::ILightInter… 47 …lightInterfaceReply, MessageOption& lightInterfaceOption, sptr<OHOS::HDI::Light::V1_0::ILightInter… 61 …static inline ObjectDelegator<OHOS::HDI::Light::V1_0::LightInterfaceStub, OHOS::HDI::Light::V1_0::… 62 sptr<OHOS::HDI::Light::V1_0::ILightInterface> impl_; 65 } // Light
|
H A D | light_interface_service.h.txt | 23 namespace Light { 25 class LightInterfaceService : public OHOS::HDI::Light::V1_0::ILightInterface { 30 int32_t GetLightInfo(std::vector<OHOS::HDI::Light::V1_0::HdfLightInfo>& info) override; 32 …int32_t TurnOnLight(int32_t lightId, const OHOS::HDI::Light::V1_0::HdfLightEffect& effect) overrid… 35 const std::vector<OHOS::HDI::Light::V1_0::HdfLightColor>& colors) override; 41 } // Light
|
H A D | ilight_interface.h.txt | 48 namespace Light { 67 static sptr<OHOS::HDI::Light::V1_0::ILightInterface> Get(bool isStub = false); 68 …static sptr<OHOS::HDI::Light::V1_0::ILightInterface> Get(const std::string &serviceName, bool isSt… 70 virtual int32_t GetLightInfo(std::vector<OHOS::HDI::Light::V1_0::HdfLightInfo>& info) = 0; 72 …virtual int32_t TurnOnLight(int32_t lightId, const OHOS::HDI::Light::V1_0::HdfLightEffect& effect)… 75 const std::vector<OHOS::HDI::Light::V1_0::HdfLightColor>& colors) = 0; 97 } // Light
|
H A D | light_interface_service.cpp.txt | 23 namespace Light { 30 int32_t LightInterfaceService::GetLightInfo(std::vector<OHOS::HDI::Light::V1_0::HdfLightInfo>& info) 35 int32_t LightInterfaceService::TurnOnLight(int32_t lightId, const OHOS::HDI::Light::V1_0::HdfLightE… 41 const std::vector<OHOS::HDI::Light::V1_0::HdfLightColor>& colors) 52 } // Light
|
/ohos5.0/drivers/peripheral/light/ |
H A D | README_zh.md | 13 …Light驱动模型为上层Light硬件服务层提供稳定的灯控制能力接口,包括获取灯类型、配置点灯模式、配置灯闪烁效果、点灯、熄灯等。基于HDF( Hardware Device Interface … 15 **图 1** Light驱动模型图 17  21 Light驱动下源代码目录结构如下所示: 38 Light驱动模型支持获取系统中所有灯的信息,动态配置闪烁模式和闪烁时间的能力。Light硬件服务调用GetLightInfo获取Light设备的基本信息;调用TurnOnLight接口启动配置的闪… 40 **表 1** Light的主要接口 67 /* 创建Light接口实例 */ 72 /* 获取设备支持的Light列表 */ 108 /* 释放Light接口实例 */
|
H A D | README.md | 1 # Light chapter 7 **Figure 1** Light driver model 9  83 effect.flashEffect.onTime = g_onTime; // Light on time in a blinking period, in ms 84 effect.flashEffect.offTime = g_offTime; // Light off time in a blinking period, in ms
|
/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-peripherals-light-des.md | 1 # Light chapter 8 Light驱动模型为上层Light硬件服务层提供稳定的灯控制能力接口,包括获取灯类型、配置点灯模式、配置灯闪烁效果、点灯、熄灯等。基于HDF(Hardware Driver Foundation)驱… 10 **图 1** Light驱动模型图 12  18 **图 2** Light驱动运行图 20  26 3. HCS Parser解析Light设备管理配置信息,加载对应的Light Host,并控制Host完成驱动的加载。 27 4. Light Proxy获取到Light HDI接口服务实例后,通过IPC(Inter-Process Communication)调用到Light Stub。 28 5. Light Stub主要处理与IPC相关的业务逻辑,完成参数反序列化后调用Light Controller。 29 6. Light Controller中是HDI接口的真正实现,通过IPC调用Light抽象驱动接口,进一步操作Light硬件设备。 [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics3d/ |
H A D | js-apis-inner-scene.md | 24 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 54 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 94 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 111 createLight(params: SceneNodeParameters, lightType: LightType): Promise\<Light> 126 | Promise\<[Light](js-apis-inner-scene-nodes.md#light)> | Promise对象,返回灯光对象。 | 131 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 133 function createLightPromise() : Promise<Light> { 140 … let light: Promise<Light> = sceneFactory.createLight(sceneLightParameter, LightType.DIRECTIONAL); 167 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 205 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… [all …]
|
H A D | js-apis-inner-scene-nodes.md | 9 import { LayerMask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLi… 35 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 68 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 113 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 144 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 173 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 207 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 231 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 351 ## Light section 367 点光源类型,继承自[Light](#light)。 [all …]
|
H A D | js-apis-inner-scene-resources.md | 51 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 162 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 195 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 221 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 245 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 274 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 298 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 322 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 345 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.…
|
/ohos5.0/docs/zh-cn/application-dev/graphics3d/ |
H A D | arkgraphics3D-scene.md | 20 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 35 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 90 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 129 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 131 function createLightPromise() : Promise<Light> { 138 … let light: Promise<Light> = sceneFactory.createLight(sceneLightParameter, LightType.DIRECTIONAL); 139 light.then(async (lightEntity: Light) => {
|
H A D | arkgraphics3D-animation.md | 8 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 32 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 59 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.…
|
H A D | arkgraphics3D-resource.md | 14 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 33 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 64 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 94 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.…
|
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics3d/ |
H A D | js-apis-inner-scene-nodes.md | 10 import { LayerMask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLi… 36 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 69 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 94 | LIGHT | 4 | Light node.| 114 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 352 ## Light section 353 Light node, which inherits from [Node](#node). 361 | lightType | [LightType](#lighttype) | Yes| No| Light type.| 363 | intensity | number | No| No| Light intensity. The value is a real number greater than 0.| 368 Spot light, which inherits from [Light](#light). [all …]
|
H A D | js-apis-inner-scene.md | 25 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 55 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 95 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 112 createLight(params: SceneNodeParameters, lightType: LightType): Promise\<Light> 122 | lightType | [LightType](js-apis-inner-scene-nodes.md#lighttype) | Yes| Light type.| 127 | Promise\<[Light](js-apis-inner-scene-nodes.md#light)> | Promise used to return the **Light** obje… 132 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 134 function createLightPromise() : Promise<Light> { 141 … let light: Promise<Light> = sceneFactory.createLight(sceneLightParameter, LightType.DIRECTIONAL); 168 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… [all …]
|
/ohos5.0/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/adapter/src/ |
H A D | hdi_light_connection.cpp | 57 std::vector<HDI::Light::V1_0::HdfLightInfo> lightInfos; in GetLightList() 78 HDI::Light::V1_0::HdfLightColor lightColor; in TurnOn() 81 HDI::Light::V1_0::HdfLightFlashEffect flashEffect; in TurnOn() 86 HDI::Light::V1_0::HdfLightEffect effect; in TurnOn()
|
/ohos5.0/docs/en/application-dev/graphics3d/ |
H A D | arkgraphics3D-scene.md | 4 - Light provides illumination for a 3D scene so that the models in the 3D scene become visible. Wit… 20 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 35 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 90 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 120 ## Creating and Managing Light 122 Light in a 3D scene is a data model that simulates the impact of the light in the physical world on… 129 …LightType, Light, Camera, SceneResourceParameters, SceneResourceFactory, Scene, Node } from '@kit.… 131 function createLightPromise() : Promise<Light> { 138 … let light: Promise<Light> = sceneFactory.createLight(sceneLightParameter, LightType.DIRECTIONAL); 139 light.then(async (lightEntity: Light) => {
|
/ohos5.0/docs/en/device-dev/driver/ |
H A D | driver-peripherals-light-des.md | 1 # Light chapter 12 **Figure 1** Light driver model 14  29 4. The Light Proxy obtains the light HDI service instance and calls the Light Stub over Inter-Proce… 30 5. The Light Stub processes IPC-related service logic and calls the Light Controller after paramete… 31 6. The Light Controller implements the HDI APIs and calls the Light Abstract Driver APIs to operate… 210 /* Obtain the Light basic configuration from the HCS file. */ 617 HDF_LOGE("%{public}s: Light write id failed", __func__); 624 HDF_LOGE("%{public}s: Light write enable failed", __func__); 645 HDF_LOGE("%{public}s: Light effect cpy faild", __func__); [all …]
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/light/ |
H A D | Readme-CN.md | 1 # Light HDI 参考 4 - [Light](_light.md)
|