shout3d.core
Class Viewpoint

java.lang.Object
  |
  +--shout3d.core.Node
        |
        +--shout3d.core.Bindable
              |
              +--shout3d.core.Viewpoint

public class Viewpoint
extends Bindable
implements FieldObserver

A Viewpoint


Field Summary
 StringField description
           
 FloatField fieldOfView
           
 StringField fovMapping
          This field can take any of 4 values -- "SHORTEST" (the default) "HORIZONTAL" "VERTICAL" or "DIAGONAL"
 FloatArrayField orientation
           
 FloatArrayField position
           
 
Fields inherited from class shout3d.core.Bindable
isBound
 
Constructor Summary
Viewpoint()
          Constructs a default Viewpoint
Viewpoint(Shout3DViewer viewer)
          Constructs that takes a viewer as an argument
 
Method Summary
 float[] getCameraToParent()
           
 float[] getParentToCamera()
           
 void onFieldChange(Field theField, java.lang.Object userData)
          Subclasses must call this from within their own onFieldChange() methods.
 
Methods inherited from class shout3d.core.Node
cleanUp, getDEFName, getField, getFieldByIndex, getFieldName, getNumFields, getTypeName, getViewer, isOfType, setDEFName, setViewer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

public final StringField description

fieldOfView

public final FloatField fieldOfView

fovMapping

public final StringField fovMapping
This field can take any of 4 values -- "SHORTEST" (the default) "HORIZONTAL" "VERTICAL" or "DIAGONAL"

orientation

public final FloatArrayField orientation

position

public final FloatArrayField position
Constructor Detail

Viewpoint

public Viewpoint()
Constructs a default Viewpoint

Viewpoint

public Viewpoint(Shout3DViewer viewer)
Constructs that takes a viewer as an argument
Method Detail

onFieldChange

public void onFieldChange(Field theField,
                          java.lang.Object userData)
Subclasses must call this from within their own onFieldChange() methods.
Specified by:
onFieldChange in interface FieldObserver
Overrides:
onFieldChange in class Bindable

getParentToCamera

public float[] getParentToCamera()

getCameraToParent

public float[] getCameraToParent()