public static final class R2FilterDebugEyeZParameters.Builder extends Object
R2FilterDebugEyeZParameters
.
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.
Modifier and Type | Method and Description |
---|---|
R2FilterDebugEyeZParameters |
build()
Builds a new
R2FilterDebugEyeZParameters . |
R2FilterDebugEyeZParameters.Builder |
from(R2FilterDebugEyeZParametersType instance)
Fill a builder with attribute values from the provided
R2FilterDebugEyeZParametersType instance. |
R2FilterDebugEyeZParameters.Builder |
setEyeZBuffer(R2EyeZBufferUsableType eyeZBuffer)
Initializes the value for the
eyeZBuffer attribute. |
R2FilterDebugEyeZParameters.Builder |
setGeometryBuffer(R2GeometryBufferUsableType geometryBuffer)
Initializes the value for the
geometryBuffer attribute. |
R2FilterDebugEyeZParameters.Builder |
setObserverValues(R2MatricesObserverType observerValues)
Initializes the value for the
observerValues attribute. |
R2FilterDebugEyeZParameters.Builder |
setTextureDefaults(R2TextureDefaultsType textureDefaults)
Initializes the value for the
textureDefaults attribute. |
public final R2FilterDebugEyeZParameters.Builder from(R2FilterDebugEyeZParametersType instance)
R2FilterDebugEyeZParametersType
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final R2FilterDebugEyeZParameters.Builder setGeometryBuffer(R2GeometryBufferUsableType geometryBuffer)
geometryBuffer
attribute.geometryBuffer
- The value for geometryBufferthis
builder for use in a chained invocationpublic final R2FilterDebugEyeZParameters.Builder setEyeZBuffer(R2EyeZBufferUsableType eyeZBuffer)
eyeZBuffer
attribute.eyeZBuffer
- The value for eyeZBufferthis
builder for use in a chained invocationpublic final R2FilterDebugEyeZParameters.Builder setObserverValues(R2MatricesObserverType observerValues)
observerValues
attribute.observerValues
- The value for observerValuesthis
builder for use in a chained invocationpublic final R2FilterDebugEyeZParameters.Builder setTextureDefaults(R2TextureDefaultsType textureDefaults)
textureDefaults
attribute.textureDefaults
- The value for textureDefaultsthis
builder for use in a chained invocationpublic R2FilterDebugEyeZParameters build()
R2FilterDebugEyeZParameters
.IllegalStateException
- if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com