Tabnine Logo
View.setWindowEyepointPolicy
Code IndexAdd Tabnine to your IDE (free)

How to use
setWindowEyepointPolicy
method
in
javax.media.j3d.View

Best Java code snippets using javax.media.j3d.View.setWindowEyepointPolicy (Showing top 2 results out of 315)

origin: com.googlecode.princeton-java-introduction/stdlib

/**
 * Sets the projection mode to perspective projection with the
 * given field of view. In this mode, closer objects appear
 * larger, as in real life. A larger field of view means that
 * there is more perspective distortion. Reasonable values are
 * between 0.5 and 3.0.
 * 
 * @param fov The field of view to use. Try [0.5-3.0].
 */
public static void setPerspectiveProjection (double fov) {
  view.setProjectionPolicy(View.PERSPECTIVE_PROJECTION);
  view.setWindowEyepointPolicy(View.RELATIVE_TO_FIELD_OF_VIEW);
  view.setFieldOfView(fov);
  setScreenScale(1);
  orbit.setZoomEnable(true);
  perspectiveButton.setSelected(true);
  if ((Double)fovSpinner.getValue() != fov)
    fovSpinner.setValue(fov);
  //if (view.getProjectionPolicy() == View.PERSPECTIVE_PROJECTION) return;
}
origin: com.github.fracpete/princeton-java-stdlib

/**
 * Sets the projection mode to perspective projection with the
 * given field of view. In this mode, closer objects appear
 * larger, as in real life. A larger field of view means that
 * there is more perspective distortion. Reasonable values are
 * between 0.5 and 3.0.
 * 
 * @param fov The field of view to use. Try [0.5-3.0].
 */
public static void setPerspectiveProjection (double fov) {
  view.setProjectionPolicy(View.PERSPECTIVE_PROJECTION);
  view.setWindowEyepointPolicy(View.RELATIVE_TO_FIELD_OF_VIEW);
  view.setFieldOfView(fov);
  setScreenScale(1);
  orbit.setZoomEnable(true);
  perspectiveButton.setSelected(true);
  if ((Double)fovSpinner.getValue() != fov)
    fovSpinner.setValue(fov);
  //if (view.getProjectionPolicy() == View.PERSPECTIVE_PROJECTION) return;
}
javax.media.j3dViewsetWindowEyepointPolicy

Popular methods of View

  • setBackClipDistance
  • setFrontClipDistance
  • addCanvas3D
  • getBackClipDistance
  • getFrontClipDistance
  • getProjectionPolicy
  • getSceneAntialiasingEnable
  • getScreenScale
  • removeAllCanvas3Ds
  • setFieldOfView
  • setLocalEyeLightingEnable
  • setProjectionPolicy
  • setLocalEyeLightingEnable,
  • setProjectionPolicy,
  • setSceneAntialiasingEnable,
  • setScreenScale,
  • setScreenScalePolicy,
  • setTransparencySortingPolicy,
  • <init>,
  • attachViewPlatform,
  • getFieldOfView

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Menu (java.awt)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now