Example usage for javax.media.j3d View RELATIVE_TO_FIELD_OF_VIEW

List of usage examples for javax.media.j3d View RELATIVE_TO_FIELD_OF_VIEW

Introduction

In this page you can find the example usage for javax.media.j3d View RELATIVE_TO_FIELD_OF_VIEW.

Prototype

int RELATIVE_TO_FIELD_OF_VIEW

To view the source code for javax.media.j3d View RELATIVE_TO_FIELD_OF_VIEW.

Click Source Link

Document

Policy for placing the eyepoint in non-head-tracked modes.

Usage

From source file:SwingTest.java

/**
 * Creates the View Platform for the View
 *///from ww  w.j  a v a 2s.  c  o  m
protected ViewPlatform createViewPlatform() {
    ViewPlatform vp = new ViewPlatform();
    vp.setViewAttachPolicy(View.RELATIVE_TO_FIELD_OF_VIEW);
    vp.setActivationRadius(getViewPlatformActivationRadius());

    return vp;
}

From source file:MixedTest.java

protected ViewPlatform createViewPlatform() {
    ViewPlatform vp = new ViewPlatform();
    vp.setViewAttachPolicy(View.RELATIVE_TO_FIELD_OF_VIEW);
    vp.setActivationRadius(getViewPlatformActivationRadius());

    return vp;/*from w w w .  j a v  a 2 s. c  om*/
}