ARLight class
AR lighting source model
Constructors
-
ARLight({required String id, required ARLightType type, required Vector3 position, required Quaternion rotation, required Vector3 direction, required double intensity, LightIntensityUnit intensityUnit = LightIntensityUnit.lux, Vector3 color = const Vector3(1.0, 1.0, 1.0), double range = 10.0, double innerConeAngle = 0.0, double outerConeAngle = 45.0, bool isEnabled = true, bool castShadows = true, ShadowQuality shadowQuality = ShadowQuality.medium, ShadowFilterMode shadowFilterMode = ShadowFilterMode.soft, double shadowBias = 0.005, double shadowNormalBias = 0.0, double shadowNearPlane = 0.1, double shadowFarPlane = 100.0, required DateTime createdAt, required DateTime lastModified, Map<
String, dynamic> metadata = const {}}) -
const
-
ARLight.fromMap(Map<
String, dynamic> map) -
Create from map
factory
Properties
- castShadows → bool
-
final
- color → Vector3
-
final
- createdAt → DateTime
-
final
- direction → Vector3
-
final
- effectiveRange → double
-
Get effective range for this light type
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
final
- innerConeAngle → double
-
final
- intensity → double
-
final
- intensityUnit → LightIntensityUnit
-
final
- isAmbient → bool
-
Check if this is an ambient light
no setter
- isDirectional → bool
-
Check if this is a directional light
no setter
- isEnabled → bool
-
final
- isEnvironment → bool
-
Check if this is an environment light
no setter
- isPoint → bool
-
Check if this is a point light
no setter
- isSpot → bool
-
Check if this is a spot light
no setter
- lastModified → DateTime
-
final
-
metadata
→ Map<
String, dynamic> -
final
- outerConeAngle → double
-
final
- position → Vector3
-
final
- range → double
-
final
- rotation → Quaternion
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowBias → double
-
final
- shadowFarPlane → double
-
final
- shadowFilterMode → ShadowFilterMode
-
final
- shadowMapResolution → int
-
Get shadow map resolution based on quality
no setter
- shadowNearPlane → double
-
final
- shadowNormalBias → double
-
final
- shadowQuality → ShadowQuality
-
final
- type → ARLightType
-
final
Methods
-
copyWith(
{String? id, ARLightType? type, Vector3? position, Quaternion? rotation, Vector3? direction, double? intensity, LightIntensityUnit? intensityUnit, Vector3? color, double? range, double? innerConeAngle, double? outerConeAngle, bool? isEnabled, bool? castShadows, ShadowQuality? shadowQuality, ShadowFilterMode? shadowFilterMode, double? shadowBias, double? shadowNormalBias, double? shadowNearPlane, double? shadowFarPlane, DateTime? createdAt, DateTime? lastModified, Map< String, dynamic> ? metadata}) → ARLight - Create a copy with modified properties
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Convert to map for serialization
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override