Class OctTreeConfigurationD.Builder

  • Enclosing class:
    OctTreeConfigurationD

    public static final class OctTreeConfigurationD.Builder
    extends java.lang.Object
    Builds instances of type OctTreeConfigurationD. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        public final OctTreeConfigurationD.Builder from​(OctTreeConfigurationDType instance)
        Fill a builder with attribute values from the provided OctTreeConfigurationDType instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • setVolume

        public final OctTreeConfigurationD.Builder setVolume​(com.io7m.jregions.core.unparameterized.volumes.VolumeD volume)
        Initializes the value for the volume attribute.
        Parameters:
        volume - The value for volume
        Returns:
        this builder for use in a chained invocation
      • setMinimumOctantWidth

        public final OctTreeConfigurationD.Builder setMinimumOctantWidth​(double minimumOctantWidth)
        Initializes the value for the minimumOctantWidth attribute.

        If not set, this attribute will have a default value as returned by the initializer of minimumOctantWidth.

        Parameters:
        minimumOctantWidth - The value for minimumOctantWidth
        Returns:
        this builder for use in a chained invocation
      • setMinimumOctantHeight

        public final OctTreeConfigurationD.Builder setMinimumOctantHeight​(double minimumOctantHeight)
        Initializes the value for the minimumOctantHeight attribute.

        If not set, this attribute will have a default value as returned by the initializer of minimumOctantHeight.

        Parameters:
        minimumOctantHeight - The value for minimumOctantHeight
        Returns:
        this builder for use in a chained invocation
      • setMinimumOctantDepth

        public final OctTreeConfigurationD.Builder setMinimumOctantDepth​(double minimumOctantDepth)
        Initializes the value for the minimumOctantDepth attribute.

        If not set, this attribute will have a default value as returned by the initializer of minimumOctantDepth.

        Parameters:
        minimumOctantDepth - The value for minimumOctantDepth
        Returns:
        this builder for use in a chained invocation
      • setTrimOnRemove

        public final OctTreeConfigurationD.Builder setTrimOnRemove​(boolean trimOnRemove)
        Initializes the value for the trimOnRemove attribute.

        If not set, this attribute will have a default value as returned by the initializer of trimOnRemove.

        Parameters:
        trimOnRemove - The value for trimOnRemove
        Returns:
        this builder for use in a chained invocation
      • build

        public OctTreeConfigurationD build()
        Builds a new OctTreeConfigurationD.
        Returns:
        An immutable instance of OctTreeConfigurationD
        Throws:
        java.lang.IllegalStateException - if any required attributes are missing