Example usage for javax.media.j3d ViewPlatform setViewAttachPolicy

List of usage examples for javax.media.j3d ViewPlatform setViewAttachPolicy

Introduction

In this page you can find the example usage for javax.media.j3d ViewPlatform setViewAttachPolicy.

Prototype

public void setViewAttachPolicy(int policy) 

Source Link

Document

Sets the view attach policy that determines the coexistence center in the virtual world.

Usage

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;/*  w ww. java2s.  c o  m*/
}

From source file:SwingTest.java

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

    return vp;
}