---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/lightrig
---

# LightRig

## Overview

`LightRig` is a class in Aspose.Slides FOSS for Java.
Inherits from: `PVIObject`, `ILightRig`.

Represents a light rig for 3D scene.

This class declares 13 methods for LightRig objects in Java programs.
Available methods include: `LightRig`, `PVIObject`, `asIPresentationComponent`, `getDirection`, `getLightType`, `getPresentation`, `getRotation`, `getSlide`, `initInternal`, `setDirection`, `setLightType`, `setRotation`.
Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `direction`, `lightType`, `presentation`, `rotation`, `slide`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `lightType` | `LightRigPresetType` | Read/Write | Gets or sets the light type. |
| `direction` | `LightingDirection` | Read/Write | Gets or sets the direction. |
| `rotation` | `double[]` | Read | Gets the rotation. |
| `slide` | `IBaseSlide` | Read | Gets the slide. |
| `presentation` | `IPresentation` | Read | Gets the presentation. |

## Methods

| Signature | Description |
|-----------|-------------|
| `LightRig(scene3d: Element, saveCallback: Runnable)` | Creates a new LightRig backed by the given scene3d element. |
| `initInternal(scene3dElement: Element, saveCallback: Runnable, parentSlide: IBaseSlide)` | Initializes internal state for this light rig. |
| `getLightType()` → `LightRigPresetType` | Returns the light type. |
| `setLightType(value: LightRigPresetType)` | Sets the light type value. |
| `getDirection()` → `LightingDirection` | Returns the direction. |
| `setDirection(value: LightingDirection)` | Sets the direction value. |
| `setRotation(latitude: double, longitude: double, revolution: double)` | Sets the rotation value. |
| `getRotation()` → `double[]` | Returns the rotation. |
| `PVIObject()` | Creates a PVIObject with no parent slide. |
| `PVIObject(parentSlide: IBaseSlide)` | Creates a PVIObject associated with the given slide. |
| `getSlide()` → `IBaseSlide` | Returns the slide. |
| `getPresentation()` → `IPresentation` | Returns the presentation. |
| `asIPresentationComponent()` → `IPresentationComponent` | Returns this object as an {@link IPresentationComponent}. |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)