Record Class SceneTransform

java.lang.Object
java.lang.Record
ke.ric.renderer.api.SceneTransform
Record Components:
content - evidence to retain; cannot restore evidence removed from the source
environment - environment fields to override; unspecified fields inherit the source
appearance - appearance fields to override; unspecified fields inherit the source
lighting - replacement lighting, or null to inherit source lighting
occlusion - replacement primary visibility, or null to inherit source visibility
primaryEntities - primary-camera entity selection; null exactly when occlusion is null

public record SceneTransform(SceneContent content, RenderEnvironment environment, RenderAppearance appearance, RenderLighting lighting, Occlusion occlusion, EntitySelector primaryEntities) extends Record
Immutable scene evidence overrides. Omitted creative controls retain the source scene's controls; explicit values replace them, including world lighting and normal scene occlusion. Primary visibility affects camera rays only, preserving lighting geometry.
  • Constructor Details

  • Method Details

    • defaults

      public static SceneTransform defaults()
      Retains all source evidence and settings.
    • isIdentity

      public boolean isIdentity()
      True only when every setting is inherited; explicit creative defaults still require application.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • content

      public SceneContent content()
      Returns the value of the content record component.
      Returns:
      the value of the content record component
    • environment

      public RenderEnvironment environment()
      Returns the value of the environment record component.
      Returns:
      the value of the environment record component
    • appearance

      public RenderAppearance appearance()
      Returns the value of the appearance record component.
      Returns:
      the value of the appearance record component
    • lighting

      public RenderLighting lighting()
      Returns the value of the lighting record component.
      Returns:
      the value of the lighting record component
    • occlusion

      public Occlusion occlusion()
      Returns the value of the occlusion record component.
      Returns:
      the value of the occlusion record component
    • primaryEntities

      public EntitySelector primaryEntities()
      Returns the value of the primaryEntities record component.
      Returns:
      the value of the primaryEntities record component