public static final class JCameraFPSStyleSnapshot.Builder extends Object
JCameraFPSStyleSnapshot.
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 |
|---|---|
JCameraFPSStyleSnapshot |
build()
Builds a new
JCameraFPSStyleSnapshot. |
JCameraFPSStyleSnapshot.Builder |
from(JCameraFPSStyleReadableType instance)
Fill a builder with attribute values from the provided
com.io7m.jcamera.JCameraFPSStyleReadableType instance. |
JCameraFPSStyleSnapshot.Builder |
from(JCameraFPSStyleSnapshotType instance)
Fill a builder with attribute values from the provided
com.io7m.jcamera.JCameraFPSStyleSnapshotType instance. |
JCameraFPSStyleSnapshot.Builder |
setCameraGetAngleAroundHorizontal(double cameraGetAngleAroundHorizontal)
Initializes the value for the
cameraGetAngleAroundHorizontal attribute. |
JCameraFPSStyleSnapshot.Builder |
setCameraGetAngleAroundVertical(double cameraGetAngleAroundVertical)
Initializes the value for the
cameraGetAngleAroundVertical attribute. |
JCameraFPSStyleSnapshot.Builder |
setCameraGetForward(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetForward)
Initializes the value for the
cameraGetForward attribute. |
JCameraFPSStyleSnapshot.Builder |
setCameraGetPosition(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetPosition)
Initializes the value for the
cameraGetPosition attribute. |
JCameraFPSStyleSnapshot.Builder |
setCameraGetRight(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetRight)
Initializes the value for the
cameraGetRight attribute. |
JCameraFPSStyleSnapshot.Builder |
setCameraGetUp(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetUp)
Initializes the value for the
cameraGetUp attribute. |
public final JCameraFPSStyleSnapshot.Builder from(JCameraFPSStyleSnapshotType instance)
com.io7m.jcamera.JCameraFPSStyleSnapshotType instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final JCameraFPSStyleSnapshot.Builder from(JCameraFPSStyleReadableType instance)
com.io7m.jcamera.JCameraFPSStyleReadableType instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final JCameraFPSStyleSnapshot.Builder setCameraGetAngleAroundHorizontal(double cameraGetAngleAroundHorizontal)
cameraGetAngleAroundHorizontal attribute.cameraGetAngleAroundHorizontal - The value for cameraGetAngleAroundHorizontalthis builder for use in a chained invocationpublic final JCameraFPSStyleSnapshot.Builder setCameraGetAngleAroundVertical(double cameraGetAngleAroundVertical)
cameraGetAngleAroundVertical attribute.cameraGetAngleAroundVertical - The value for cameraGetAngleAroundVerticalthis builder for use in a chained invocationpublic final JCameraFPSStyleSnapshot.Builder setCameraGetRight(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetRight)
cameraGetRight attribute.cameraGetRight - The value for cameraGetRightthis builder for use in a chained invocationpublic final JCameraFPSStyleSnapshot.Builder setCameraGetUp(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetUp)
cameraGetUp attribute.cameraGetUp - The value for cameraGetUpthis builder for use in a chained invocationpublic final JCameraFPSStyleSnapshot.Builder setCameraGetForward(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetForward)
cameraGetForward attribute.cameraGetForward - The value for cameraGetForwardthis builder for use in a chained invocationpublic final JCameraFPSStyleSnapshot.Builder setCameraGetPosition(com.io7m.jtensors.core.unparameterized.vectors.Vector3D cameraGetPosition)
cameraGetPosition attribute.cameraGetPosition - The value for cameraGetPositionthis builder for use in a chained invocationpublic JCameraFPSStyleSnapshot build()
JCameraFPSStyleSnapshot.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com