|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.tudey.config.CameraConfig
public class CameraConfig
Contains the parameters of the camera (field of view, coordinates, etc.) and allows for interpolation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
com.threerings.io.Streamable.Closure |
| Field Summary | |
|---|---|
SphereCoords |
coords
The camera's coordinates about the target. |
float |
far
The distances to the camera's near and far clip planes. |
float |
fov
The camera's vertical field of view, in radians. |
float |
near
The distances to the camera's near and far clip planes. |
Vector3f |
offset
The camera's offset from the target. |
int |
priority
The priority of the parameters, for when multiple configs are active. |
| Constructor Summary | |
|---|---|
CameraConfig()
Creates a new config with default values. |
|
CameraConfig(CameraConfig other)
Copy constructor. |
|
CameraConfig(int priority,
float fov,
float near,
float far,
SphereCoords coords,
Vector3f offset)
Creates a new config with the supplied values. |
|
| Method Summary | |
|---|---|
void |
apply(OrbitCameraHandler camhand)
Applies this config (minus the offset) to the specified camera handler. |
CameraConfig |
lerp(CameraConfig other,
float t)
Interpolates between this and the specified other config. |
CameraConfig |
lerp(CameraConfig other,
float t,
CameraConfig result)
Interpolates between this and the specified other config, storing the result in the object provided. |
CameraConfig |
lerpLocal(CameraConfig other,
float t)
Interpolates between this and the specified other config, storing the result in this config. |
CameraConfig |
set(CameraConfig other)
Copies the parameters of another config. |
CameraConfig |
set(int priority,
float fov,
float near,
float far,
SphereCoords coords,
Vector3f offset)
Sets the parameters of this config. |
| Methods inherited from class com.threerings.util.DeepObject |
|---|
clone, copy, copy, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@Editable public int priority
@Editable(min=0.0,
max=180.0,
scale=0.017453292519943295,
hgroup="f")
public float fov
@Editable(min=0.0,
step=0.01,
hgroup="f")
public float near
@Editable(min=0.0,
step=0.01,
hgroup="f")
public float far
@Editable public SphereCoords coords
@Editable public Vector3f offset
| Constructor Detail |
|---|
public CameraConfig(int priority,
float fov,
float near,
float far,
SphereCoords coords,
Vector3f offset)
public CameraConfig(CameraConfig other)
public CameraConfig()
| Method Detail |
|---|
public void apply(OrbitCameraHandler camhand)
public CameraConfig lerpLocal(CameraConfig other,
float t)
public CameraConfig lerp(CameraConfig other,
float t)
public CameraConfig lerp(CameraConfig other,
float t,
CameraConfig result)
public CameraConfig set(CameraConfig other)
public CameraConfig set(int priority,
float fov,
float near,
float far,
SphereCoords coords,
Vector3f offset)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||