Jeospace API

org.jeospace.x3d
Class CockpitProperties

java.lang.Object
  extended byorg.jeospace.x3d.CockpitProperties

public class CockpitProperties
extends java.lang.Object

The set of properties used to configure the Cockpit.

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton
See Also:
Cockpit

Constructor Summary
protected CockpitProperties()
          Restricted Constructor
 
Method Summary
 void addCockpitPropertyListener(CockpitPropertyListener cpl)
          Add a Cockpit property listener
protected  void fireCockpitPropertyEvent(int id)
          Deliver the events.....
 float[] getAvatarSize(float[] size)
          Return the avatar size
 float getFieldOfView()
          Return the field of view
 boolean getHeadlight()
          Return the state of the headlight
static CockpitProperties getInstance()
          Return the instance of the properties
 float getVisibilityLimit()
          Return the visibility limit
 void removeCockpitPropertyListener(CockpitPropertyListener cpl)
          Remove a Cockpit property listener
 void setAvatarSize(float[] size)
          Set the avatar size
 void setFieldOfView(float fov)
          Set the field of view
 void setHeadlight(boolean state)
          Set the headlight state
 void setVisibilityLimit(float visLimit)
          Set the visibility limit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CockpitProperties

protected CockpitProperties()
Restricted Constructor

Method Detail

getInstance

public static CockpitProperties getInstance()
Return the instance of the properties

Returns:
the instance of the properties

setHeadlight

public void setHeadlight(boolean state)
Set the headlight state

Parameters:
state - the headlight state

getHeadlight

public boolean getHeadlight()
Return the state of the headlight

Returns:
the state of the headlight

setFieldOfView

public void setFieldOfView(float fov)
Set the field of view

Parameters:
fov - the field of view

getFieldOfView

public float getFieldOfView()
Return the field of view

Returns:
the field of view in radians

setVisibilityLimit

public void setVisibilityLimit(float visLimit)
Set the visibility limit

Parameters:
visLimit - the visibility limit

getVisibilityLimit

public float getVisibilityLimit()
Return the visibility limit

Returns:
the visibility limit

setAvatarSize

public void setAvatarSize(float[] size)
Set the avatar size

Parameters:
size - the avatar size

getAvatarSize

public float[] getAvatarSize(float[] size)
Return the avatar size

Returns:
the avatar size

addCockpitPropertyListener

public void addCockpitPropertyListener(CockpitPropertyListener cpl)
Add a Cockpit property listener

Parameters:
cpl - the listener

removeCockpitPropertyListener

public void removeCockpitPropertyListener(CockpitPropertyListener cpl)
Remove a Cockpit property listener

Parameters:
cpl - the listener

fireCockpitPropertyEvent

protected void fireCockpitPropertyEvent(int id)
Deliver the events.....


Jeospace API

Copyright © 2006 - jeospace.org