Class CopyPropertiesBuilder

java.lang.Object
com.j3d.engine.scene.copy.CopyPropertiesBuilder

public class CopyPropertiesBuilder extends Object
A builder class for creating CopyProperties instances. This class provides a fluent API to configure various properties related to the copying of GObject instances.
Author:
Lehlogonolo Poole
See Also:
  • Field Details

  • Constructor Details

    • CopyPropertiesBuilder

      protected CopyPropertiesBuilder(ArrayList<GObject> objects)
      Constructs a new CopyPropertiesBuilder with the initial list of GObject instances that are intended to be copied.
      Parameters:
      objects - The ArrayList of GObject instances for which these copy properties will apply.
  • Method Details

    • softDependencies

      public CopyPropertiesBuilder softDependencies(boolean sc)
      Sets whether soft dependencies should be considered during the copy operation. Soft dependencies typically refer to objects that are referenced but not necessarily part of the core set of objects being copied.
      Parameters:
      sc - A boolean value. true to enable soft dependency handling, false to disable it.
      Returns:
      The current CopyPropertiesBuilder instance for method chaining.
    • build

      public CopyProperties build()
      Builds and returns the configured CopyProperties object. This method should be called at the end of the builder chain to obtain the final immutable CopyProperties instance.
      Returns:
      The fully configured CopyProperties object.