Jeospace API

org.jeospace.x3d
Class Cockpit

java.lang.Object
  extended byorg.jeospace.x3d.PlatformStructure
      extended byorg.jeospace.x3d.Cockpit
All Implemented Interfaces:
CockpitPropertyListener, java.util.EventListener, Structure

public class Cockpit
extends PlatformStructure
implements CockpitPropertyListener

A view platform that is oriented and aligned with the gravitation vector and horizontal coordinate system of the System to which it is attached. It is an integrated node set consisting of a PlatformStructure which contains a Viewpoint and a NavigationInfo node.

Note: The CockpitPropertyListener implementation is necessary to configure the bindable properties of the Viewpoint and NavigationInfo nodes. The Xj3D browser will not configure these properties without an explicit bind operation being performed on these nodes.

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton
See Also:
PlatformStructure, CockpitProperties, Viewpoint, NavigationInfo

Field Summary
 Viewpoint viewpoint
          The viewpoint
 
Fields inherited from class org.jeospace.x3d.PlatformStructure
component, horizon
 
Constructor Summary
Cockpit(org.web3d.x3d.sai.X3DScene scene, CockpitProperties properties)
          Constructor
 
Method Summary
 void cockpitPropertyChanged(CockpitPropertyEvent cpe)
          The cockpit property listener, configures the cockpit's parameters due to changes in it's properties object.
 void dispose()
          Dispose of the resources of this Cockpit, prepare it for garbage collection.
 void setActive()
          Set this Cockpit to be the active user view.
 
Methods inherited from class org.jeospace.x3d.PlatformStructure
add, add, remove, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewpoint

public final Viewpoint viewpoint
The viewpoint

Constructor Detail

Cockpit

public Cockpit(org.web3d.x3d.sai.X3DScene scene,
               CockpitProperties properties)
Constructor

Parameters:
scene - the X3DScene object
properties - the bindable properties of the underlying nodes.
Method Detail

setActive

public void setActive()
Set this Cockpit to be the active user view.


dispose

public void dispose()
Dispose of the resources of this Cockpit, prepare it for garbage collection.

Specified by:
dispose in interface Structure
Overrides:
dispose in class PlatformStructure

cockpitPropertyChanged

public void cockpitPropertyChanged(CockpitPropertyEvent cpe)
The cockpit property listener, configures the cockpit's parameters due to changes in it's properties object.

Specified by:
cockpitPropertyChanged in interface CockpitPropertyListener

Jeospace API

Copyright © 2006 - jeospace.org