Example usage for javax.media.j3d ViewPlatform setActivationRadius

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

Introduction

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

Prototype

public void setActivationRadius(float activationRadius) 

Source Link

Document

Set the ViewPlatform's activation radius which defines an activation volume around the view platform.

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;/*  www  .  ja v a  2 s.com*/
}

From source file:SwingTest.java

/**
 * Creates the View Platform for the View
 *///  www.java  2 s  .c  o  m
protected ViewPlatform createViewPlatform() {
    ViewPlatform vp = new ViewPlatform();
    vp.setViewAttachPolicy(View.RELATIVE_TO_FIELD_OF_VIEW);
    vp.setActivationRadius(getViewPlatformActivationRadius());

    return vp;
}